Forums Register Login

Implementing a Menu (Help)

+Pie Number of slices to send: Send
I am working on this project (java application) that I need to add a menu that give the user a Windows feel. I added "Help" to a menu and am going to add a next layer called "About". How would I go about displaying a pop up with text explaining the program when the user clicks on the "About" (similar to what happens when a user clicks "Help-About" in a Microsoft product).
+Pie Number of slices to send: Send
Check out the JDialog class. Should be just what you want. See this link from the Java Tutorial: How to Make Dialogs.
+Pie Number of slices to send: Send
Thank you. This looks like it will help.
+Pie Number of slices to send: Send
It might be even easier to do using the JOptionPane class, with its static showMessageDialog() method.
This method enables you to quickly set up the panel you want to display, the dialog title etc. You can even set the icon that gets shown to the left, and it all gets formatted properly.
Using this method saves you having to write a custom implementation of the individual gui components and the dialog itself.
Hope that helps.
30 seconds to difuse a loaf of bread ... here, use 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 735 times.
Similar Threads
listview item click
Menu
JMenuItems
User Documentation
Menu question
More...

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