This week's giveaway is in the Spring forum.
We're giving away four copies of REST with Spring (video course) and have Eugen Paraschiv on-line!
See this thread for details.
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 REST with Spring (video course) 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

Using PopupMenu with awt components

Mala Gupta
Ranch Hand

Joined: Sep 27, 2002
Posts: 276
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
I agree. Here's the link:
subject: Using PopupMenu with awt components
It's not a secret anymore!