This week's giveaway is in the EJB and other Java EE Technologies forum.
We're giving away four copies of EJB 3 in Action and have Debu Panda, Reza Rahman, Ryan Cuprak, and Michael Remijan on-line!
See this thread for details.
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


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "Help with multiple Swing Popups" Watch "Help with multiple Swing Popups" New topic
Author

Help with multiple Swing Popups

Duke Matlock
Greenhorn

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
Greenhorn

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?
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
 
subject: Help with multiple Swing Popups
 
Similar Threads
FireFox, taking back the web?
Using ModalDialogs instead of Window.open for popups
How can I detect whether my popup window is blocked by a popup blocker?
JFrame positioning
Closing windows in JavaScript