Question just wants the GUI to look like this:
Here's the code I have
import javax.swing.JOptionPane;
class Customer
{
String n = JOptionPane.showInputDialog("Enter name");
String id = JOptionPane.showInputDialog("Enter id");
String sub = JOptionPane.showInputDialog("Enter Submit");
JOptionPane.showMessageDialog(null, null, null, JOptionPane.PLAIN_MESSAGE)
}
}
I want it everything to look horizontal
Enter Name [box to fill in name]
Enter id [box to fill in id]
Submit [box to enter submit]
Aucun commentaire:
Enregistrer un commentaire