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.
|
|
available on the web at: |
http://mindprod.com/jgloss/jmenuswing.html |
optional Replicator mirror
|
J:\mindprod\jgloss\jmenuswing.html | |
![]() |
Please email your
feedback for publication,
letters to the editor, errors, omissions, typos, formatting errors, ambiguities, unclear
wording, broken/redirected link reports, suggestions to improve this page or comments to
Roedy Green :
| |
| Blog | Canadian
Mind
Products
IP:[65.110.21.43] Your face IP:[50.16.166.175] |
|
| Feedback | You are visitor number 15,639. | |