|JMenuItem Selection Event Handler [message #909151]
||Thu, 06 September 2012 16:13
| Jim Walsh
Registered: September 2012
I'm new to Eclipse, java, WindowBuilder, etc.|
Windows 7 32-bit; Eclipse: Juno; WindowBuilder 1.5
I followed the Eclipse Window Builder tutorial (developers.google.com/java-dev-tools/wbpro/quick_start) to create a new Windows app.
Followed the Java Developer Tutorial ("Menu Editing" - developers.google.com/java-dev-tools/wbpro/features/menu_editing) to create a main menu for this app.
Added a menu bar (JMenuBar), menu (JMenu), and menu item (JMenuItem), all using the design view. Source view showed the correct code.
Now, I need a handler to handle the user's selection of the JMenuItem. The menu tutorial says "Adding a selection event handler for the menu item is also easy. Simply double-click a menu item and a selection event handler will be created for you". Alas, double-clicking my JMenuItem in the design view does nothing.
Powered by FUDForum
. Page generated in 0.04745 seconds