aspose file tools*
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


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "JWindow problem...." Watch "JWindow problem...." New topic
Author

JWindow problem....

Jeff Smith
Ranch Hand

Joined: May 04, 2001
Posts: 50
Hello,
I'm creating a program where I don't want any of the window chrome visible (the titlebar, borders, etc...) so instead of using a JFrame i've used a JWindow. Everything's working fine, except that when I run the program it doesn't show up in the taskbar?? If I use a JFrame then it shows up, but I have the extra stuff I don't want on the frame. How do I get my program to show up on the taskbar when using a JWindow instead of JFrame, or how do I remove all the window chrome from a JFrame?
Thanks,
Jeff
Matt Senecal
Ranch Hand

Joined: Dec 01, 2000
Posts: 255
I've been working with the same problem for a while, and I'm not sure you can fix it. As far as I can tell, the taskbar button is provided by the system (and is associated with a specific JFrame), and you can't create your own.
Another programmer and I developed a floating button bar, similar to the Microsoft one. To keep it small, we used a JWindow to remove the titlebar from the application GUI. The only solution I've come up with to keep track of the window is to keep it always in front.
Originally posted by Jeff Smith:
Hello,
I'm creating a program where I don't want any of the window chrome visible (the titlebar, borders, etc...) so instead of using a JFrame i've used a JWindow. Everything's working fine, except that when I run the program it doesn't show up in the taskbar?? If I use a JFrame then it shows up, but I have the extra stuff I don't want on the frame. How do I get my program to show up on the taskbar when using a JWindow instead of JFrame, or how do I remove all the window chrome from a JFrame?
Thanks,
Jeff


There's nothing more dangerous than a resourceful idiot. ---Dilbert
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: JWindow problem....