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 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

JWindow problem

Stewart Griffin

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

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.
I agree. Here's the link:
subject: JWindow problem
Similar Threads
Bumper car errors
Messagebox with Mouseevent
Java Applet code
Checkerboard w/ 64 squares
Swing: Slow paint