my dog learned polymorphism*
The moose likes Swing / AWT / SWT and the fly likes JWindow problem Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "JWindow problem" Watch "JWindow problem" New topic
Author

JWindow problem

Stewart Griffin
Greenhorn

Joined: Dec 02, 2002
Posts: 23
Does anyone know how to keep a JWindow on top of the screen?
If I click any part of the screen the JWindow stays on top.
But if I click on any part of the JWindow, it disappears under the main JFrame, eventhough I dont implement any of the listeners.
Here's my code

Any ideas ppl?
Stewart Griffin
Greenhorn

Joined: Dec 02, 2002
Posts: 23
Its ok,
I realised where the prob is.
I forgot to add the action listeners to the window.
I just added them in the class constructor.
 
Consider Paul's rocket mass heater.
 
subject: JWindow problem