Forums Register Login

How do I do form.show

+Pie Number of slices to send: Send
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.
+Pie Number of slices to send: Send
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.
+Pie Number of slices to send: Send
JOptionPane is like a simple popup window. JDialog would be used for a more complicated popup window.
If you open the box, you will find Heisenberg strangling Shrodenger's cat. And waving this tiny ad:
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com


reply
reply
This thread has been viewed 568 times.
Similar Threads
printing on an applet
Assert stmt in Eclipse
Dynamic Data Types in Eclipse
JUnit and Cactus using strutstestCase
Adding oci804jdbc.dll to java library path
More...

All times above are in ranch (not your local) time.
The current ranch time is
Mar 28, 2024 12:21:11.