This week's book giveaway is in the Agile and other Processes forum. We're giving away four copies of The Mikado Method and have Ola Ellnestam and Daniel Brolund on-line! See this thread for details.
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.
BJ Grau
Ranch Hand
Joined: Jul 10, 2001
Posts: 234
posted
0
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.
Robin Underwood
Ranch Hand
Joined: May 01, 2002
Posts: 117
posted
0
JOptionPane is like a simple popup window. JDialog would be used for a more complicated popup window.