Hi everyone,
I want to make a text box, can someone show me how please? And is it possible to check what I've typed in the text box using a boolean statement? Thank you!


1 | String inputValue = JOptionPane.showInputDialog( "Please input a value" ); |
1 2 3 4 5 6 | Robo j = new Robo(); j = (Robo) getOneObjectAtOffset( 0 , 0 ,Robo. class ); if (j != null ) { showInputBox(); } |
1 2 3 4 5 6 7 | public void showInputBox() { int a = Greenfoot.getRandomNumber( 11 ); int b = Greenfoot.getRandomNumber( 11 ); String inputValue = JOptionPane.showInputDialog(( int ) a + "+" + ( int ) b); } |