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.
The moose likes Developer Certification (SCJD/OCMJD) and the fly likes How do I do form.show Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Certification » Developer Certification (SCJD/OCMJD)
Reply Bookmark "How do I do form.show" Watch "How do I do form.show" New topic
Author

How do I do form.show

Allen Chan
Ranch Hand

Joined: Jun 07, 2002
Posts: 64
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
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
JOptionPane is like a simple popup window. JDialog would be used for a more complicated popup window.
 
I agree. Here's the link: http://zeroturnaround.com/jrebel - it saves me about five hours per week
 
subject: How do I do form.show
 
Similar Threads
printing on an applet
JUnit and Cactus using strutstestCase
Adding oci804jdbc.dll to java library path
Assert stmt in Eclipse
Dynamic Data Types in Eclipse