mixalissen
02-27-2008, 01:48 PM
import javax.swing.JOptionPane;
public class HelloTester
{
public static void main(String args[])
{
JOptionPane.showMessageDialog(null,"What would you like me to do?!");
String name = JOptionPane.showInputDialog("What is your name?!");
JOptionPane.showMessageDialog(null,"xxxxxxxxxxxxxx x");
System.exit(0);
}
}
sorry for asking this but can you help me?I want the user to be able to insert a name and everytime the return to be something like sorry StringName I cannot blablabla. i thing the problem is in the last JOptionPane where the xxxxxs are.
public class HelloTester
{
public static void main(String args[])
{
JOptionPane.showMessageDialog(null,"What would you like me to do?!");
String name = JOptionPane.showInputDialog("What is your name?!");
JOptionPane.showMessageDialog(null,"xxxxxxxxxxxxxx x");
System.exit(0);
}
}
sorry for asking this but can you help me?I want the user to be able to insert a name and everytime the return to be something like sorry StringName I cannot blablabla. i thing the problem is in the last JOptionPane where the xxxxxs are.