Hi all, I wonder if anyone could give me some ideas about how to click an button and pop up a new window just like form.show in vb? Thanks in advance.
Joined: Jul 10, 2001
I don't know any VB, so I may be missing the point of your question. Create a button, assign an ActionListener to the button. In the actionPerformed method of the ActionListener, create a new JFrame or JDialog. I do something like this when the user books a flight. After they select a flight I pop up a JDialog that prompts them to select from a JList the number of seats they want to book.
Joined: May 01, 2002
JOptionPane is like a simple popup window. JDialog would be used for a more complicated popup window.