my dog learned polymorphism*
The moose likes Swing / AWT / SWT and the fly likes MenuItem eventhandling Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "MenuItem eventhandling" Watch "MenuItem eventhandling" New topic
Author

MenuItem eventhandling

pankaj saxena
Ranch Hand

Joined: Nov 21, 2009
Posts: 46
Ques:
i have two menuitems : 1. Fill the form and 2. search the records.
Problem: i can't open the form when i click on first menuitem.
same problem is with second menuitem.

please provide me some links or your suggestions to solve this.

regards,
pankaj.
Rob Camick
Ranch Hand

Joined: Jun 13, 2009
Posts: 2157
    
    7
Start by reading the Swing tutorial for some Swing basics. Maybe the sections on "How to Use Menu Items" would be the place to start.
Bobby Smallman
Ranch Hand

Joined: Sep 09, 2010
Posts: 107
The Swing Tutorial Rob suggested is a great place to get some basics of Swing, after you go through the tutorials if you are still having difficulty, feel free to post the specific code which is troubling you.


Everyday in every way, we get a little better.
Rob Spoor
Sheriff

Joined: Oct 27, 2005
Posts: 19656
    
  18

Moving to our GUI forum.


SCJP 1.4 - SCJP 6 - SCWCD 5 - OCEEJBD 6
How To Ask Questions How To Answer Questions
 
Don't get me started about those stupid light bulbs.
 
subject: MenuItem eventhandling
 
Similar Threads
opening a frame on click on JMenuItem
How to make an Expanding Menu
why i'm not getting graph (output)?
Regarding MenuItem
ClassCastException in Tag Library