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);
