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!
String inputValue = JOptionPane.showInputDialog("Please input a value"); Robo j = new Robo();
j = (Robo) getOneObjectAtOffset(0,0,Robo.class);
if (j != null)
{
showInputBox();
}public void showInputBox()
{
int a = Greenfoot.getRandomNumber(11);
int b = Greenfoot.getRandomNumber(11);
String inputValue = JOptionPane.showInputDialog((int) a + "+" + (int) b);
}