JMenuItem

Hi! Guyz,How can use a JMenuItem to invoke a new window?
[70 byte] By [Abbeya] at [2007-11-26 16:04:20]
# 1
Register an ActionListener with the item.Mike
bellyrippera at 2007-7-8 22:26:16 > top of Java-index,Java Essentials,Java Programming...
# 2
Add an Action or ActionListener to the JMenuItem. The Action(Listener)must create a new window when the JMenuItem is selected).kind regards,Jos
JosAHa at 2007-7-8 22:26:16 > top of Java-index,Java Essentials,Java Programming...
# 3
1. on your menu item you add an ActionListener2. in the ActionListener you can do what you want like creating a new frame or window or internalframe
ProZa at 2007-7-8 22:26:16 > top of Java-index,Java Essentials,Java Programming...