This site requires JavaScript, please enable it in your browser!
Greenfoot back
Hersov
Hersov wrote ...

2014/2/24

The Input Box keeps appearing again

Hersov Hersov

2014/2/24

#
I have this Code and It makes a box come up allow to to input an "Code". When it input a "Code" It then puts that at the top of the screen, (which is what I want) but the Box keeps coming back and it is very fustrating, does anyone know the Error?
String inputstring1 = JOptionPane.showInputDialog("Enter Your Code Here");
        int number1=Integer.parseInt(inputstring1);
        
        GreenfootImage textImage = new GreenfootImage(" Your Code is"+number1 ,25, Color.WHITE, Color.BLACK);
            setImage(textImage);
danpost danpost

2014/2/24

#
There was no need to start a new discussion for this. It is a related issue to your previous one. Please refer to that discussion thread for my response.
You need to login to post a reply.