aspose file tools*
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
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: 245
    
    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
 
Similar Threads
two jpopupmenus associates with two differents components
System Tray - double click icon to set visible
HOw to add menu to a button ?
PopupMenu in Menu?
How to make popup invisible