wood burning stoves 2.0*
The moose likes Swing / AWT / SWT and the fly likes Using PopupMenu with awt components Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "Using PopupMenu with awt components" Watch "Using PopupMenu with awt components" New topic
Author

Using PopupMenu with awt components

Mala Gupta
Author
Ranch Hand

Joined: Sep 27, 2002
Posts: 251
    
    9
If I change the PopupMenu's to JPopupMenu's, Panel to JPanel and Frame to JFrame then the below code works, not otherwise. WHY??

[ June 03, 2003: Message edited by: Cindy Glass ]

Author of Manning's OCA Java SE 7 Programmer I Certification Guide and OCP Java SE 7 Programmer II Certification Guide
Cindy Glass
"The Hood"
Sheriff

Joined: Sep 29, 2000
Posts: 8521
Moving to the Swing and AWT forum.


"JavaRanch, where the deer and the Certified play" - David O'Meara
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Using PopupMenu with awt components