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 Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "Using PopupMenu with awt components" Watch "Using PopupMenu with awt components" New topic

Using PopupMenu with awt components

Mala Gupta
Ranch Hand

Joined: Sep 27, 2002
Posts: 248
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"

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

"JavaRanch, where the deer and the Certified play" - David O'Meara
Don't get me started about those stupid light bulbs.
subject: Using PopupMenu with awt components
Similar Threads
HOw to add menu to a button ?
PopupMenu in Menu?
two jpopupmenus associates with two differents components
How to make popup invisible
System Tray - double click icon to set visible