In AWT (Advanced Windowing Toolkit) you need: MenuBar, Menu and MenuItem. In Swing you use: JMenuBar, JMenu, JMenuItem, JRadioButtonMenuItem and JPopupMenu.
Even if you have only one JMenuItem, you still need to enclose it in a JMenuBar and and JMenu.
JMenuItems don’t have ticks to mark the selected item. To get that effect you must use a JRadioButtonMenuItem and a ButtonGroup.
This page is posted |
http://mindprod.com/jgloss/jmenuswing.html | |
Optional Replicator mirror
|
J:\mindprod\jgloss\jmenuswing.html | |
Please read the feedback from other visitors,
or send your own feedback about the site. Contact Roedy. Please feel free to link to this page without explicit permission. | ||
Canadian
Mind
Products
IP:[65.110.21.43] Your face IP:[3.149.24.143] |
| |
Feedback |
You are visitor number | |