> i can't use JDialog. I need my popup to be partly transparent and you can't do this with JDialog.
Why?
What's the difference between JDialog and JWindow transparency wise?
Use JDialog.setUndecorated(true) before displaying the dialog to disable the dialog decorations.
You might be able to use Glasspane to block all the other windows. Its a round-about way of doing things, I would make sure that you can't get JDialog to do what you want first.
If you call getGlassPane()
on you Frame / JFrame / JWindow / whatever, you will get the GlassPane object associated with that frame, and set it to visible. This should block user interactions with the frame underneath. Of course, calling this method on all the necessary windows will be tricky.
e.g. frame.getGlassPane().setVisible(true);
This article explains root panes etc.:
http://java.sun.com/docs/books/tutorial/uiswing/components/rootpane.html
Hope that helps.
James
http://jamesjavablog.blogspot.com/
> If you call getGlassPane()
on you Frame
> / JFrame / JWindow / whatever, you will get the
> GlassPane object associated with that frame, and set
> it to visible. This should block user interactions
Sure. But you could make the frame even harder to interact with just by saying setEnabled(false)
> i wish to see through my window.
You can't, which was explained in your last posting on this topic:
http://forum.java.sun.com/thread.jspa?threadID=5144306
So learn to respond to your original posting and quit wasting everybodies time by creating new posting. Keep the conversation in one place.