A bout game

I know a little English
I bought 14000gems in the warriors2 =エターニティーウオー. Shop on Saturday
But there write 3000free,altogether 6000,
I'm not receive just receive 14000
these is what situation
My apple Id is. [email protected]
Please help me

I know a little English
I bought 14000gems in the warriors2 =エターニティーウオー. Shop on Saturday
But there write 3000free,altogether 6000,
I'm not receive just receive 14000
these is what situation
My apple Id is. [email protected]
Please help me

Similar Messages

  • Try 2 get free app 4 game says verify account when do it says wrong security code it not wrong n if it free y ask bout the billing

    Try 2 download free game from app store says verify account n when i do it says invalid securoty code n it is not wrong code. Besides it free y it asking that

    means three thing
    -code is wrong
    -zip code doesnt match what the bank has
    - or you have a out standing balance with itunes and you can go to expresslane.apple.com to email them and see if you do

  • When I go to play a Candy Crush and I want to buy a life or and thing to do with this Game I might get to buy some thing but not all of the thing it say to get the go to the support team at iTunes so can you Help me Please

    I don't know how to get a picture on here for you . It's Candy Crush SAGA Game . I had a 3s iPhone and now I have a 4 iPhone and the game worked fine on the 3 s but it dose not work right on the 4 and bout phone are iPhones and I just need to Help me . I hope you can and if not then all I can do is just delete all of my apple ID so I hope you can Help me Please

    These are user-to-user forums, you are not talking to Apple here. You can contact iTunes support via this page and ask them why the message is appearing : http://www.apple.com/support/itunes/contact/ - click on Contact iTunes Store Support on the right-hand side of the page, then probably Purchases, Billing & Redemption

  • How do i remove an Object (aliens/ bullets) from my Space Invaders game??

    Creating Space Invaders game and im getting confused on removing objects from my game. How do you actually remove an object (i.e bullets and aliens).
    I know this isnt the right way to do it, but for the bullets i had an array of the Objects bullets[] and set the x and y coordinates off screen so u cant see then wen they are painted you cant see them, then wen the player fires them, the x and y coordinates change so they come from the players ship till it hits an alien or goes off screen, then i reset the coordinates so they are pasted off screen again. Im relatively new to this so i would appreciate any help. Im going to have to do the same with aliens wen a collision is detected. Is there a way of actually removing an object?
    Here is sum code incase you need to see it:
    public void checkCollision()
              Rectangle playerRec = new Rectangle(player1.getBoundingBox());
              for(int i=0; i<alienRow; i++)
                   for(int j=0; j<alienCol; j++){
                        if(playerRec.intersects(aliens[i][j].getBoundingBox()))
                             collisionDetected();
                        for(int k=0; k<bulletNum; k++){
                             Rectangle bulletRec = new Rectangle(bullets[k].getBoundingBox());
                             if(bulletRec.intersects(aliens[i][j].getBoundingBox()))
                                  removeBullet(bullets[k]);
                                  collisionDetected();
         public static void collisionDetected()
              System.out.println("COLLISION");
    private void removeBullet(Bullets bullet){
              bullet.fired=false;
              bullet.setX(-10);
              bullet.setY(-10);
         }Edited by: deathwings on Nov 25, 2009 8:20 AM

    deathwings wrote:
    I was thinking bout that arraylist angle before, but it makes sense now so i think that will work ok. Thx kevin.Not a problem.
    Taking the List idea one step further, you could have a parent Object/Interface that all of your game objects extend/implement. Let's call it GameObject.
    A GameObject would have a draw(Graphics g) function that you call from your paintComponent( ) method, and for example an act( ) function as well.
    You'd have a single List of GameObjects that you add everything in your game into. Now painting is simply a matter of looping over a single List. And in your game logic loop, you could do a similar thing with the act( ) function: your bullet's act( ) would simply move it forward and check for collisions and going off screen. An alien's act( ) function would move it around and maybe shoot a weapon every so often.
    Just an idea.

  • Blue screen appears for 1 second after closing my games apps

    I'm the only one here having this issue ?
    after i played a game like clash of clans, and i'm bout' to close the apps in multitasking tab,
    suddenly blue screen appears and  flickering for one second...
    i don't know if my unit having a error or there is something like bugs? but its a brand new...
    here's the link of video of that issue:
    httpswww.youtube.comwatchv=zy55sqScu7g&feature=youtu.be
    please help me.. what to do to fix this problem
    co'z i cant get a peace of mind with my unit!

    Try to reset the phone by holding the sleep and home button for about 10sec, until the Apple logo comes back again. You will not lose any data by resetting, but it can cure some glitches.
    If this does not help, setting it up as new device would be the next step:
    How to erase your iOS device and then set it up as a new device or restore it from backups

  • Fullscreen games in window

    is there a way to run games that would normally run fullscreen in a window? i remember seeing Tiger Woods PGA running in "window'ed" mode in the guided tour. i have the game & there's no option in the game to run in window mode, so i imagine there's a way to force the program to run in a window.
    thank you, in advance

    try using the property list editor to edit the preferences file. i play around with sim city 4 sometimes and it's defaults don't fit this screen ratio and by tweaking the pref file u can set either a windowed mode or set a "custom" screen resolution. dunno bout other programs, though, but this was great for me after playing it with the screen all stretched out for so long, and really nice for multitasking if i'm not really into the game and switch it to windowed mode.

  • Video and game performance Satellite P100-434

    I got myself a nice new P100-434 just 2 weeks ago, When tring to play a game or a DVD It starts of ok but after a short time the frame rate drops right of then comes back up then back down..
    I took it back to the shop and they gave me a new one but the same thing happens.
    Anyone else had noticed the same. If so tell me how to handle with it.

    I've had the exact same problem for a number of weeks, exchanged for a new one (identical notebook) and I still have the problem. I've even tried to get it fixed but to no avail. The guy I took it to seemed to think it had something to do with the DVD drive but to me it looks like a power supply issue. I put the videocard slider down to "balanced" and the problem essentially goes away, no more random bouts of extreme slowdown. However, this forces me to play at far lower settings that what I could originally achieve without lowering the power. (but suffering the said bouts of extreme slowdown)
    The difference here is that i'm running XP and still get the problem. Anyone know what causes this? I'd like to actually be able to use my videocard at its full potential.

  • Pblm with clicking game

    hi all
    iam trying write a program for a simple clicking game where in there are a number of buttons displayed and randomly one of the buttons displays "click me " which if user clicks earns points .I tried a lot but of little use only.I am trying to generate randomly using timedelays by adding some big loop but still the purpose is not solved Can u pls look at the code and advice me .Also the click me once displayed should disappear from that button and then again randomly one button should display click me
    import javax.swing.*;
    import java.awt.*;
    import java.awt.event.*;
    import java.util.*;
    public class newClickGame3 extends JApplet implements ActionListener
    String click;
    int digit=1,intclick;
    int points=0;
    int time;
    int starttimesec,clickedtimesec;
    JLabel label;
    JButton buttons[] = new JButton[40];
    JButton end,start;
    public void init()
    label = new JLabel("CLICK START BUTTON AND THEN CLICK THE CLICK ME BUTTON TO EARN POINTS");
    Container container = getContentPane();
    container.setLayout(new FlowLayout());
    container.add(label);
    end= new JButton("Click to end game");
    end.addActionListener(this);
    container.add(end);
    start = new JButton("START");
    start.addActionListener(this);
    container.add(start);
    for(int i=0;i<40;i++)
    buttons=new JButton(Integer.toString(i));
    buttons[i].addActionListener(this);
    container.add(buttons[i]);
    }//for ends
    }//init ends
    public void actionPerformed(ActionEvent e)
    click = e.getActionCommand();
    if(click.equals("START"))
    {Calendar now = Calendar.getInstance();
      starttimesec = (now.get(Calendar.SECOND));
    for(int m=0;m<40;m++)
    digit = (int)(Math.random()*19);
    buttons[digit].setText("Click Me");
    for(int t=0;t<=9000;t++)
    time = (int) (Math.random()*200);
    // repaint();
    //buttons[digit].setText(Integer.toString(digit));
    }//for ends
    }//IF ENDS
    else
    Calendar clickedtime = Calendar.getInstance();
    clickedtimesec = (clickedtime.get(Calendar.SECOND));
    decideClick();
    }//actionPerformed ends
    public void paint (Graphics g)
         super.paint(g);
    }//paint ends
    public void decideClick()
         System.out.println("st" + starttimesec + " clickedtimesec" + clickedtimesec);
    if( clickedtimesec - starttimesec < 10)
         System.out.println("starttimesec " + starttimesec + " digit" + digit + "intclick" + intclick);
              if(click.equals("Click Me"))
              ++points;
              System.out.println( "plus points");
              System.out.println(points);
              }//if ends
         } // ENDS IF
    }//decideClick ends
    }//ClickGame ends

    How 'bout this one? I'm not sure if it fits your needs...
    import javax.swing.*;
    import java.awt.*;
    import java.awt.event.*;
    import java.util.*;
    public class newClickGame3 extends JApplet implements ActionListener {
        private static String STARTBTN = "START";
        private static String STOPBTN = "STOP";
        private static String CLICKBTN = "CLICK";
        int digit = 1;
        int points = 0;
        int starttimesec, clickedtimesec;
        JLabel label;
        JButton buttons[] = new JButton[40];
        JButton end, start;
        javax.swing.Timer delay;
        public void init() {
            label = new JLabel(
                "CLICK START BUTTON AND THEN CLICK THE CLICK ME BUTTON TO EARN POINTS");
            Container container = getContentPane();
            container.setLayout(new FlowLayout());
            container.add(label);
            end = new JButton("Click to end game");
            end.setActionCommand(STOPBTN);
            end.addActionListener(this);
            end.setEnabled(false);
            container.add(end);
            start = new JButton("Start");
            start.setActionCommand(STARTBTN);
            start.addActionListener(this);
            container.add(start);
            for (int index = 0; index < 40; index++) {
                buttons[index] = new JButton();
                buttons[index].addActionListener(this);
                buttons[index].setPreferredSize(new Dimension(80, 25));
                container.add(buttons[index]);
            } //for ends
            clearButtons();
            delay = new javax.swing.Timer(5000, this);
            delay.stop();
        } //init ends
        public void actionPerformed(ActionEvent e) {
            String click = e.getActionCommand();
            if (click == null) {
                nextButton();
            } else if (click.equals(STARTBTN)) {
                start.setEnabled(false);
                end.setEnabled(true);
                nextButton();
            } else if (click.equals(STOPBTN)) {
                delay.stop();
                start.setEnabled(true);
                end.setEnabled(false);
                clearButtons();
            } else if (click.equals(CLICKBTN)) {
                Calendar clickedtime = Calendar.getInstance();
                clickedtimesec = (clickedtime.get(Calendar.SECOND));
                decideClick(click);
                nextButton();
        } //actionPerformed ends
        private void nextButton() {
            delay.stop();
            Calendar now = Calendar.getInstance();
            starttimesec = (now.get(Calendar.SECOND));
            digit = (int) (Math.random() * 40);
            clearButtons();
            buttons[digit].setText("Click Me");
            buttons[digit].setActionCommand(CLICKBTN);
            delay.start();
        private void clearButtons() {
            for (int m = 0; m < 40; m++) {
                buttons[m].setText(Integer.toString(m));
                buttons[m].setActionCommand("");
        public void paint(Graphics g) {
            super.paint(g);
        } //paint ends
        public void decideClick(String click) {
            //System.out.println("st" + starttimesec + " clickedtimesec" +
            //                   clickedtimesec);
            if (clickedtimesec - starttimesec < 10) {
                //System.out.println("starttimesec " + starttimesec + " digit" +
                //                   digit + "intclick" + intclick);
                if (click.equals(CLICKBTN)) {
                    ++points;
                    System.out.println("plus points");
                    System.out.println(points);
                } //if ends
            } // ENDS IF
        } //decideClick ends
    } //ClickGame ends

  • Drag n drop prblem in game application

    Hi guys, i have previously posted a topic bout this, but didn't get d reply i was looking for, i have searched online also but cant seem to find the solution to ma problem.
    I am creating a game application(scrabble) for project in java.
    I want to drag one panel, from an array of panels, and drop it onto another panel on an array of other panels.
    . The scrabble rack consists of an array of seven panels, while the gameboard consists of another array of 225 panels. I want to drag a panel out of the racket[] panel , and drop it onto the gameboard panel. I have searched online for solutions, but the only ones i have seen is using the JLayered pane, which(from what ive seen) has been applied only on objects in the same panel.
    I have attached some parts of the code that is concerned with this problem.
    ScrabbleBoard class:
    import javax.swing.*;
    import java.awt.*;
    import java.awt.event.*;
    class ScrabbleBoard implements MouseMotionListener, MouseListener {
    JFrame f;
    JPanel cell[];
    JPanel racket[];
    JPanel gameboard, background, rack, leftmenu, boardback, rightmenu, extraPanel;
    public ScrabbleBoard() {
    f = new JFrame("Scrabble");
    cell = new JPanel[225];
    racket = new JPanel[7];
    rack = new JPanel() {
    public void paintComponent(Graphics b) {
    b.drawImage(new ImageIcon(getClass().getResource("images/rack.jpg")).getImage(), 0, 0, 300, 60, rack);
    super.paintComponent(b);
    arrangeRack();
    arrangeScrabbleBoard();
    setBoard();
    public void mouseClicked(MouseEvent e) {
    public void mousePressed(MouseEvent e) {
    public void mouseDragged(MouseEvent e) {
    public void mouseExited(MouseEvent e) {
    public void mouseEntered(MouseEvent e) {
    public void mouseMoved(MouseEvent e) {
    //add the panels unto the rack randomly from a vector in another class)
    private void arrangeRack() {
    for (int i = 0; i < racket.length; i++) {
    racket[i] = new JPanel();
    racket.setBorder(javax.swing.BorderFactory.createLineBorder(Color.black));
    racket[i].setLayout(new GridLayout(1, 1));
    racket[i].setOpaque(false);
    lbag.addRackTile(lbag.getIndex(), racket[i]);
    rack.add(racket[i]);
    // final JPanel b = (JPanel) racket[i].getComponent(0);
    //arrange the gameboard
    private void arrangeScrabbleBoard() {
    for (int i = 0; i < cell.length; i++) {
    cell[i] = new JPanel();
    cell[i].setBorder(javax.swing.BorderFactory.createLineBorder(Color.white));
    cell[i].setLayout(new GridLayout(1, 1));
    cell[i].setOpaque(false);
    gameboard.add(cell[i]);
    gameboard.setOpaque(false);
    //add the gameboard and rack unto another panel (boardback)
    private void setBoard() {
    boardback.setBounds(410, 20, 650, 750);
    boardback.setLayout(null);
    boardback.add(gameboard);
    boardback.add(rack);
    boardback.setOpaque(false);
    rack.setBounds(0, 680, 280, 40);
    rack.setLayout(new GridLayout(1, 7, 2, 2));
    rack.setOpaque(false);
    background.setOpaque(false);
    background.setSize(1280, 800);
    background.setLayout(null);
    background.add(boardback);
    gameboard.setBounds(25, 20, 600, 600);
    gameboard.setLayout(new GridLayout(15, 15));
    f.add(background);
    f.setLayout(null);
    f.setExtendedState(JFrame.MAXIMIZED_BOTH);
    f.setVisible(true);
    f.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
    public static void main(String args[]) {
    try {
    UIManager.setLookAndFeel("com.sun.java.swing.plaf.windows.WindowsLookAndFeel");
    } catch (Exception e) {
    e.printStackTrace();
    new ScrabbleBoard();

    Note: This thread was originally posted in the [Java Programming|http://forums.sun.com/forum.jspa?forumID=31] forum, but moved to this forum for closer topic alignment.

  • No "Speakers" device on Vista x64 with X-treme Gamer Fatality Edit

    I wrote this already to the support, and been "speaking" with 'em for 'bout THREE months, but still no use....
    Well the problem is as follows in the title. When I just bought the card it worked smoothly on my PC (MB: ASUS P5B, ,5 Gbs of RAM (at that time). But after updating the BIOS for the card (well, I guess that, that's the time the problem occured) the "Speakers" device from the list of sound devices dissapeared. Only SPDIF remained. I've tried a lot of things: uninstalling the drivers and installing them again, uninstalling drivers then cleaning the register and then installing them again, unistalling the device then cleaning the trash files and installing the drivers again, uninstalling the drivers with the Creative tool (found in their drivers if they are unpacked) then disable the integrated card both through Windows and BIOS (when I've just bought the card I didn't disable the integrated one and still everything was fine) and then installing again...
    The last thing I did was disabling the X-Fi card with the integrated one through windows, rebooting PC with X-Fi card deattached and integrated card disabled through BIOS, cleaning the register and trash files, then rebooting again twice, then rebooting with the X-Fi card attached properly... And now Vista doesn't see the card... I'll try to update the CHipset Drivers, but still... I need the Speakers device!
    ?BTW, when I try to install the drivers through the Device Manager it knocks me off with a message 'bout time out for the operation, though the X-Fi device appears in the manager. And twice windows showed a message 'bout the device being deleted by the OS. Furthermore I've tried not only the new beta drivers but also the old ones. No use...
    Can someone help me? Please?

    ? I have an X-Fi Xtreme Gamer, but I think we might use the same drivers.
    Using the same method you used (uninstall via Device Manager, etc.), I installed the newest drivers (SBXF_PCDRV_LB_2_8_0008),? and they did not work. As in, they did not work at all. So i uninstalled the new drivers (I again used Device Manager) and reinstalled my older drivers (SBXF_PCDRV_LB_2_6_0006).
    Fortunately I had those old drivers on a flash-dri've memory stick, but I think you can find websites that archi've old drivers by doing a web search for the drivers you want. For example, I did a Web search for 2.6.0006, and I got a hit that linked me to a place where I could download the 63MB Creative drivers' file. Or you can scroll down in this message board to pbeten's post and try using the link that I posted in a reply. That should take you to the 2.6.0006 drivers. They are not the newest, but they have been working well enough for my Xtreme Gamer, though I do use Windows XP SP2.

  • Make a High score for a game....

    Hello
    I'm tring to use RMS code to make a highscore to game - puzzle, but i have some problems
    // file 1 - Hiscore.java
    import java.io.*;
    import javax.microedition.midlet.*;
    import javax.microedition.lcdui.*;
    import javax.microedition.rms.*;
    public class Hiscore
    implements CommandListener {
    private Display display;
    private RecordStore rs;
    private EnumList enumListScreen;
    private byte[] data = new byte[200];
    private ByteArrayInputStream bin = new ByteArrayInputStream(data);
    private DataInputStream din = new DataInputStream(bin);
    // Polecenia na soft keys w telefonie
    private Command exitCommand = new Command("Wyjscie",Command.EXIT,1);
    // Rekord danych
    private static class Record
         String firstName;
         String lastName;
    // Dane
    private static final String[][] names = {
         {"Jan","Kowalski"},
         {"Jakub","Sosna"}
    // stworzyc metode to pobierania imienia
    // Inicjalizacja i otwarcie magazynu rekordow
    public Hiscore()
    //throws MIDletStateChangeException
         // Midlet wywolany poraz pierwszy
         if (display == null)
              begin();
         if (rs == null)
              openRecordStore();
    private void begin()
    //     display = Display.getDisplay(this);
         enumListScreen = new EnumList();
         if(openRecordStore())
              enumListScreen.addDate();
              display.setCurrent(enumListScreen);
    public void exitMIDlet()
         closeRecordStore();
    // dodanie rekordu do magazynu
    private void addName (String first, String last,
              ByteArrayOutputStream bout,
              DataOutputStream dout)
         try{
              dout.writeUTF(first);
              dout.writeUTF(last);
              dout.flush();
              byte[] data = bout.toByteArray();
              rs.addRecord(data,0,data.length);
              bout.reset();
         catch(Exception e) {}
    // Wypelnianie magazynu danymi
    private void fillRecordStore()
         ByteArrayOutputStream bout = new ByteArrayOutputStream();
         DataOutputStream dout = new DataOutputStream(bout);
         for (int i = 0; i < names.length; ++i)
              addName(names[0],names[i][1],bout,dout);
    // Otwarcie magazynu rekordow
    private boolean openRecordStore()
         try{
              if (rs!=null) closeRecordStore();
              rs = RecordStore.openRecordStore("HiScore",true);
              fillRecordStore();
              return true;
         catch(RecordStoreException e){
              return false;
    private void closeRecordStore()
         if(rs!=null)
              try{
                   rs.closeRecordStore();
         catch(RecordStoreException e) {}
         rs = null;
    // odczytywanie recordow
    private boolean readRecord(int id, Record r)
         boolean ok = false;
         r.firstName = null;
         r.lastName = null;
         if (rs != null)
              try{
                   rs.getRecord(id,data,0);
                   r.firstName = din.readUTF();
                   r.lastName = din.readUTF();
                   din.reset();
                   ok = true;
              catch(Exception e) {}
         return ok;
    // Obsluga polecen
    public void commandAction(Command c, Displayable d)
         if (c == exitCommand)
              exitMIDlet();
         else
              display.setCurrent(enumListScreen);
    // Klasa obslugi glownego okna
    class EnumList extends List
         public EnumList()
              super("Magazyn Rekordow",IMPLICIT);
              addCommand(exitCommand);
              setCommandListener(Hiscore.this);
         public void addDate()
              try{
                   //utworz wyliczenie uzywajac
                   RecordEnumeration enum = rs.enumerateRecords(null,null,false);
                   Record r = new Record();
                   //odczytywanie rekordow i wypelnianie listy danymi
                   while(enum.hasNextElement())
                        int id = enum.nextRecordId();
                        if (readRecord(id,r))
                             append(r.lastName+", "+r.firstName,null);
              enum.destroy();
              catch(RecordStoreException e) {}
    // File 2 - Puzzle.java
    import javax.microedition.midlet.MIDlet;
    import javax.microedition.lcdui.*;
    public class Puzzle extends MIDlet
    implements CommandListener,ItemCommandListener {
        private Command exitCommand = new Command("Wyjscie", Command.EXIT, 1);
        private final static Command CMD_PRESS = new Command("Gram", Command.ITEM, 1);
        private Form mainForm;
        Board b;
        String zasady = "Rulles.\n";
        TextField imie = new TextField("Podaj imie:", "", 15, TextField.ANY);
        public static String name;
        public Puzzle() {
             mainForm = new Form("Puzzle");
        public void startApp()
                mainForm.setTitle("Puzzle");
                mainForm.append(zasady);
                StringItem item = new StringItem("Gram","", Item.BUTTON);
                item.setDefaultCommand(CMD_PRESS);
                item.setItemCommandListener(this);
                mainForm.append(imie);
                mainForm.append(item);
                //Hiscore.EnumList();
                mainForm.addCommand(exitCommand);
                mainForm.setCommandListener(this);
                name=imie.getString();
                mainForm.append(name);
                Display.getDisplay(this).setCurrent(mainForm);
        public void commandAction(Command c, Displayable s) {
             destroyApp(false);
             notifyDestroyed();
        public void commandAction(Command c, Item item) {
             b = new Board(this);
             Display.getDisplay(this).setCurrent(b);
        protected void destroyApp(boolean unconditional) {
        protected void pauseApp() {
    } I want to launch Hiscore after winning game (name and time of winnig) but i can't (don't know what i'm doing wrong) lanuch it. Durring of testing I make a hiscore on beging but later it will be at the end of game after winnig.
    What are my mistekes. Why I can't launch it?
    Does anybody make a simple Hiscore, using RMS?

    Hello
    I'm tring to use RMS code to make a highscore to game - puzzle, but i have some problems
    // file 1 - Hiscore.java
    import java.io.*;
    import javax.microedition.midlet.*;
    import javax.microedition.lcdui.*;
    import javax.microedition.rms.*;
    public class Hiscore
    implements CommandListener {
    private Display display;
    private RecordStore rs;
    private EnumList enumListScreen;
    private byte[] data = new byte[200];
    private ByteArrayInputStream bin = new ByteArrayInputStream(data);
    private DataInputStream din = new DataInputStream(bin);
    // Polecenia na soft keys w telefonie
    private Command exitCommand = new Command("Wyjscie",Command.EXIT,1);
    // Rekord danych
    private static class Record
         String firstName;
         String lastName;
    // Dane
    private static final String[][] names = {
         {"Jan","Kowalski"},
         {"Jakub","Sosna"}
    // stworzyc metode to pobierania imienia
    // Inicjalizacja i otwarcie magazynu rekordow
    public Hiscore()
    //throws MIDletStateChangeException
         // Midlet wywolany poraz pierwszy
         if (display == null)
              begin();
         if (rs == null)
              openRecordStore();
    private void begin()
    //     display = Display.getDisplay(this);
         enumListScreen = new EnumList();
         if(openRecordStore())
              enumListScreen.addDate();
              display.setCurrent(enumListScreen);
    public void exitMIDlet()
         closeRecordStore();
    // dodanie rekordu do magazynu
    private void addName (String first, String last,
              ByteArrayOutputStream bout,
              DataOutputStream dout)
         try{
              dout.writeUTF(first);
              dout.writeUTF(last);
              dout.flush();
              byte[] data = bout.toByteArray();
              rs.addRecord(data,0,data.length);
              bout.reset();
         catch(Exception e) {}
    // Wypelnianie magazynu danymi
    private void fillRecordStore()
         ByteArrayOutputStream bout = new ByteArrayOutputStream();
         DataOutputStream dout = new DataOutputStream(bout);
         for (int i = 0; i < names.length; ++i)
              addName(names[0],names[i][1],bout,dout);
    // Otwarcie magazynu rekordow
    private boolean openRecordStore()
         try{
              if (rs!=null) closeRecordStore();
              rs = RecordStore.openRecordStore("HiScore",true);
              fillRecordStore();
              return true;
         catch(RecordStoreException e){
              return false;
    private void closeRecordStore()
         if(rs!=null)
              try{
                   rs.closeRecordStore();
         catch(RecordStoreException e) {}
         rs = null;
    // odczytywanie recordow
    private boolean readRecord(int id, Record r)
         boolean ok = false;
         r.firstName = null;
         r.lastName = null;
         if (rs != null)
              try{
                   rs.getRecord(id,data,0);
                   r.firstName = din.readUTF();
                   r.lastName = din.readUTF();
                   din.reset();
                   ok = true;
              catch(Exception e) {}
         return ok;
    // Obsluga polecen
    public void commandAction(Command c, Displayable d)
         if (c == exitCommand)
              exitMIDlet();
         else
              display.setCurrent(enumListScreen);
    // Klasa obslugi glownego okna
    class EnumList extends List
         public EnumList()
              super("Magazyn Rekordow",IMPLICIT);
              addCommand(exitCommand);
              setCommandListener(Hiscore.this);
         public void addDate()
              try{
                   //utworz wyliczenie uzywajac
                   RecordEnumeration enum = rs.enumerateRecords(null,null,false);
                   Record r = new Record();
                   //odczytywanie rekordow i wypelnianie listy danymi
                   while(enum.hasNextElement())
                        int id = enum.nextRecordId();
                        if (readRecord(id,r))
                             append(r.lastName+", "+r.firstName,null);
              enum.destroy();
              catch(RecordStoreException e) {}
    // File 2 - Puzzle.java
    import javax.microedition.midlet.MIDlet;
    import javax.microedition.lcdui.*;
    public class Puzzle extends MIDlet
    implements CommandListener,ItemCommandListener {
        private Command exitCommand = new Command("Wyjscie", Command.EXIT, 1);
        private final static Command CMD_PRESS = new Command("Gram", Command.ITEM, 1);
        private Form mainForm;
        Board b;
        String zasady = "Rulles.\n";
        TextField imie = new TextField("Podaj imie:", "", 15, TextField.ANY);
        public static String name;
        public Puzzle() {
             mainForm = new Form("Puzzle");
        public void startApp()
                mainForm.setTitle("Puzzle");
                mainForm.append(zasady);
                StringItem item = new StringItem("Gram","", Item.BUTTON);
                item.setDefaultCommand(CMD_PRESS);
                item.setItemCommandListener(this);
                mainForm.append(imie);
                mainForm.append(item);
                //Hiscore.EnumList();
                mainForm.addCommand(exitCommand);
                mainForm.setCommandListener(this);
                name=imie.getString();
                mainForm.append(name);
                Display.getDisplay(this).setCurrent(mainForm);
        public void commandAction(Command c, Displayable s) {
             destroyApp(false);
             notifyDestroyed();
        public void commandAction(Command c, Item item) {
             b = new Board(this);
             Display.getDisplay(this).setCurrent(b);
        protected void destroyApp(boolean unconditional) {
        protected void pauseApp() {
    } I want to launch Hiscore after winning game (name and time of winnig) but i can't (don't know what i'm doing wrong) lanuch it. Durring of testing I make a hiscore on beging but later it will be at the end of game after winnig.
    What are my mistekes. Why I can't launch it?
    Does anybody make a simple Hiscore, using RMS?

  • Problem - computer freezes every time a 3D game / Wine game is run

    Hello. My brother's computer is a quite powerful machine. He would be very satisfied with it if it wasn't for one thing: it freezes every time he runs any 3D game or any game using Wine.
    I have tried to do some troubleshooting, but after long time I still cannot find the cause. The problem persists. No update has fixed it yet.
    Some 3D games seem to run, some don't. I have tried AssaultCube and it worked, but when I tried Sauerbraten it froze.
    Wine games seem not to work at all, or at least that's my general impression. As a test, I tried a freeware DirectX 7 game. Froze straightaway. More complex games of course also froze.
    The problem seems to be related either to hardware or to some NVidia-specific stuff. I tried a test run of XP on this computer. It ran when it was a clean install, but when I installed NVidia drivers, it didn't boot again correctly. There was no error description as far as I remember.
    I have swapped a power supply to a higher wattage thinking that it maybe was energy starvation that took the system down. No luck.
    Output of different commands:
    "hwinfo --short": http://pastebin.com/Sj8SbvZy
    "lsmod": http://pastebin.com/dtchwqAF
    "pacman -Qi nvidia": http://pastebin.com/rhKcLUpH
    "uname -a": "Linux 2.6.35-ARCH #1 SMP PREEMPT Sat Aug 21 07:23:08 UTC 2010 i686 AMD Athlon(tm) 64 Processor 3500+ AuthenticAMD GNU/Linux"
    One more thing. Even though it's a 64-bit CPU, I'm running a 32-bit system. Would that create a problem? From what I've read online, it doesn't really seem to make that much of a difference.
    Please help me with this. I really don't know what to do.

    hello again.
    glxinfo looks good and normal
    Right.. i have been reading bout similiar issues ..like that of your system freezing..
    a reported fix would be to
      echo 1 | tee /sys/devices/system/cpu/sched_mc_power_savings
    as root
    and add it to the /etc/rc.local for it to be applied every boot up..
    Link of where i have gotten the info from
    https://bugs.launchpad.net/ubuntu/+sour … bug/151382
    Apart from that ,  i have noticed your kernel isnot up to date.. Please run your updates.. the latest kernel in the core repo at the time of writing is 2.6.36.
    Hope it works out for you
    and if the above doesnt work out..
    i would need to see your
    /var/log/Xorg.0.log
    Have a good day

  • Weirdness when i bought a Game App!!!!!!

    I had $4.54 remaining in my iTunes Wallet. I decided to buy Eternal Legacy for $.99 cents. Well i bought it but my balance is now $4.24. Now anyone know why this happened? My Balance should not be $4 something. I accidently hit this Gift App feature when tryin to scroll through Cut the Rope and it took out $.99 cents yesterday which i wasent to thrilled bout. So im thinking that Apple gave me this game for $.30 cents because of the Gift App Error. Has this happened to anyone else? I just bought my iPhone 4 on Oct 9th by the way.

    i notices that sometimes itunes on the mac shows a different value left ( i use only gift cards for apple ) then my ipod. For example itunes on mac says I have 10 Euro left while in fact I have only 5 Euro .
    keeping an eye on that is good practice, but I never have been "betrayed" in that a negative value has been shown. When there is not enough left ( no matter what the store shows ) it simply wont let me buy it. I tried it, and no wonder it then corrected the sum left . So there might be some delays in the updating of value left, but it refreshes whenver necessary..

  • Can I play Game Center Games with other family members sharing one Apple ID

    I have several IOS devices sharing the same Apple ID that my sons and wife use. I have set up a game center account using that ID and can find no way that we can play head to head games on those multiple devices against each other using that one Apple ID login, even if I create multiple Nicknames. Am I missing something?

    An Apple ID is just an account that uses an email address and password. It does not have to be tied to iTunes. You can create one here. Create one each for your sons and wife.

  • How to repaint a JPanel in bouncing balls game?

    I want to repaint the canvas panel in this bouncing balls game, but i do something wrong i don't know what, and the JPanel doesn't repaint?
    The first class defines a BALL as a THREAD
    If anyone knows how to correct the code please to write....
    package fuck;
    //THE FIRST CLASS
    class CollideBall extends Thread{
        int width, height;
        public static final int diameter=15;
        //coordinates and value of increment
        double x, y, xinc, yinc, coll_x, coll_y;
        boolean collide;
        Color color;
        Rectangle r;
        bold BouncingBalls balls; //A REFERENCE TO SECOND CLASS
        //the constructor
        public CollideBall(int w, int h, int x, int y, double xinc, double yinc, Color c, BouncingBalls balls) {
            width=w;
            height=h;
            this.x=x;
            this.y=y;
            this.xinc=xinc;
            this.yinc=yinc;
            this.balls=balls;
            color=c;
            r=new Rectangle(150,80,130,90);
        public double getCenterX() {return x+diameter/2;}
        public double getCenterY() {return y+diameter/2;}
        public void move() {
            if (collide) {
            x+=xinc;
            y+=yinc;
            //when the ball bumps against a boundary, it bounces off
            //bounce off the obstacle
        public void hit(CollideBall b) {
            if(!collide) {
                coll_x=b.getCenterX();
                coll_y=b.getCenterY();
                collide=true;
        public void paint(Graphics gr) {
            Graphics g = gr;
            g.setColor(color);
            //the coordinates in fillOval have to be int, so we cast
            //explicitly from double to int
            g.fillOval((int)x,(int)y,diameter,diameter);
            g.setColor(Color.white);
            g.drawArc((int)x,(int)y,diameter,diameter,45,180);
            g.setColor(Color.darkGray);
            g.drawArc((int)x,(int)y,diameter,diameter,225,180);
            g.dispose(); ////////
        ///// Here is the buggy code/////
        public void run() {
            while(true) {
                try {Thread.sleep(15);} catch (Exception e) { }
                synchronized(balls)
                    move();
                    balls.repairCollisions(this);
                paint(balls.gBuffer);
                balls.canvas.repaint();
    //THE SECOND CLASS
    public class BouncingBalls extends JFrame{
        public Graphics gBuffer;
        public BufferedImage buffer;
        private Obstacle o;
        private List<CollideBall> balls=new ArrayList();
        private static final int SPEED_MIN = 0;
        private static final int SPEED_MAX = 15;
        private static final int SPEED_INIT = 3;
        private static final int INIT_X = 30;
        private static final int INIT_Y = 30;
        private JSlider slider;
        private ChangeListener listener;
        private MouseListener mlistener;
        private int speedToSet = SPEED_INIT;
        public JPanel canvas;
        private JPanel p;
        public BouncingBalls() {
            super("fuck");
            setSize(800, 600);
            p = new JPanel();
            Container contentPane = getContentPane();
            final BouncingBalls xxxx=this;
            o=new Obstacle(150,80,130,90);
            buffer=new BufferedImage(getSize().width, getSize().height, BufferedImage.TYPE_INT_RGB);
            gBuffer=buffer.getGraphics();
            //JPanel canvas start
            final JPanel canvas = new JPanel() {
                final int w=getSize().width-5;
                final int h=getSize().height-5;
                @Override
                public void update(Graphics g)
                   paintComponent(g);
                @Override
                public void paintComponent(Graphics g) {
                    super.paintComponent(g);
                    gBuffer.setColor(Color.ORANGE);
                    gBuffer.fillRect(0,0,getSize().width,getSize().height);
                    gBuffer.draw3DRect(5,5,getSize().width-10,getSize().height-10,false);
                    //paint the obstacle rectangle
                    o.paint(gBuffer);
                    g.drawImage(buffer,0,0, null);
                    //gBuffer.dispose();
            };//JPanel canvas end
            addWindowListener(new WindowAdapter() {
                @Override
                public void windowClosing(WindowEvent e) {
                    System.exit(0);
            addButton(p, "Start", new ActionListener() {
                public void actionPerformed(ActionEvent evt) {
                    CollideBall b = new CollideBall(canvas.getSize().width,canvas.getSize().height
                            ,INIT_X,INIT_Y,speedToSet,speedToSet,Color.BLUE,xxxx);
                    balls.add(b);
                    b.start();
            contentPane.add(canvas, "Center");
            contentPane.add(p, "South");
        public void addButton(Container c, String title, ActionListener a) {
            JButton b = new JButton(title);
            c.add(b);
            b.addActionListener(a);
        public boolean collide(CollideBall b1, CollideBall b2) {
            double wx=b1.getCenterX()-b2.getCenterX();
            double wy=b1.getCenterY()-b2.getCenterY();
            //we calculate the distance between the centers two
            //colliding balls (theorem of Pythagoras)
            double distance=Math.sqrt(wx*wx+wy*wy);
            if(distance<b1.diameter)
                return true;
            return false;
        synchronized void repairCollisions(CollideBall a) {
            for (CollideBall x:balls) if (x!=a && collide(x,a)) {
                x.hit(a);
                a.hit(x);
        public static void main(String[] args) {
            JFrame frame = new BouncingBalls();
            frame.setVisible(true);
    }  And when i press start button:
    Exception in thread "Thread-2" java.lang.NullPointerException
    at fuck.CollideBall.run(CollideBall.java:153)
    Exception in thread "Thread-3" java.lang.NullPointerException
    at fuck.CollideBall.run(CollideBall.java:153)
    Exception in thread "Thread-4" java.lang.NullPointerException
    at fuck.CollideBall.run(CollideBall.java:153)
    and line 153 is: balls.canvas.repaint(); in Method run() in First class.
    Please help.

    public RepaintManager manager;
    public BouncingBalls() {
            manager = new RepaintManager();
            manager.addDirtyRegion(canvas, 0, 0,canvas.getSize().width, canvas.getSize().height);
        public void run() {
            while(true) {
                try {Thread.sleep(15);} catch (Exception e) { }
                synchronized(balls)
                    move();
                    balls.repairCollisions(this);
                paint(balls.gBuffer);
                balls.manager.paintDirtyRegions(); //////// line 153
       but when push start:
    Exception in thread "Thread-2" java.lang.IllegalMonitorStateException
    at java.lang.Object.notifyAll(Native Method)
    at fuck.CollideBall.run(CollideBall.java:153)
    Exception in thread "Thread-3" java.lang.IllegalMonitorStateException
    at java.lang.Object.notifyAll(Native Method)
    at fuck.CollideBall.run(CollideBall.java:153)
    i'm newbie with Concurrency and i cant handle this exceptons.
    Is this the right way to do repaint?

Maybe you are looking for

  • Convert long to varchar2

    Hi there, I am looking for a convertion, long to varchar2, in a sql statement. If I run the following query : select data_default from user_tab_columns It works fine in sql developper but when I execute it in my PHP code it returns: Notice: Undefined

  • Link various visio file in 1 Webpage

    Hi, I am having issue with Visio while using the hyperlink when i generate the web page of the Visio file. I am using Visio 2007 & have 5 different Visio files, each having about 30+ processes documented. For illustration only: Let's say, I have crea

  • My desktop doesn't work

    I wanted to change the folder icons, and I copied and pasted the desktop into a new folder. I deleted the old one, and now, it doesn't work. I can't add neither delete programs that were put in my desktop in the past. Does anybody know how to create

  • Solved frequent browser crashing problem

    I'm using Firefox and Safari. Both browsers have been crashing frequently on certain web sites. I thought it was a Flash issue but it was not. The problem had to do with duplicate and invalid fonts. I found this article and performed steps #1 and 2.

  • Adobe Acrobat 8 - Inserting pages

    I have Adobe Acrobat 8 Professional and for some reason when I insert a page it does not insert that particular page where it is suppose to.  For example, I went to page 13 and inserted page 14 after page 13 and it actually inserted as page 4.  Any i