File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Swing / AWT / SWT and the fly likes Help with multiple Swing Popups Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "Help with multiple Swing Popups" Watch "Help with multiple Swing Popups" New topic

Help with multiple Swing Popups

Duke Matlock

Joined: May 05, 2005
Posts: 2
We have a system that we're using multiple swing popups for different events.

In our system, we have alerts that make popups. I work on a imaging tool that has a color change popup and a zoom/pan popup.

Once I'm done with one of my popups, I hide the popup. However, it still affects all alert popups that follow.

Any ideas? Thanks!

From the Ghostbusters School of Consulting,<br /> <br />Duke (SCJP, SCWCD)
Rachel Swailes
Ranch Hand

Joined: May 18, 2004
Posts: 434
Please post some code so that we can see why this could be happening.
Duke Matlock

Joined: May 05, 2005
Posts: 2
The popups are all being built with...

Popup popup = PopupFactory.getSharedInstance().getPopup(parentFrame, popupPanel, x, y)

I did notice that if I null my popup it works, but hiding it causes a failure.

Should I move away from popups?

Or should we change the priority popups to HeavyWeightPopup? What would that do for us?
I agree. Here's the link:
subject: Help with multiple Swing Popups
It's not a secret anymore!