Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsWhite Papers
Discussion GroupsFirst AidDatabasesJavaBeansGUIJava 3DVirtual MachineCORBASecurityToolsGeneral
Java DirectoryOpen Source ProjectsSample Book ChaptersUser GroupsWeb Resources
Related Topics
Databases.NETMore Topics ...

Java Forum / GUI / January 2005

Tip: Looking for answers? Try searching our database.

Hide JFrame Taskbar Button

Thread view: 
Peet - 31 Jan 2005 17:15 GMT
Does anyone know of a way to hide the taskbar button of a JFrame in
Windows?

My application opens a lot of windows, but only one is active at a
time, so only one taskbar button is required.

This is especially annoying in WinXP, as when the frames are grouped,
they are given the standard Java icon..

Cheers

Peet
Steve W. Jackson - 31 Jan 2005 21:41 GMT
> Does anyone know of a way to hide the taskbar button of a JFrame in
> Windows?
[quoted text clipped - 8 lines]
>
> Peet

I'm not aware of any way to do this in native Java.  But you can do
everything in a JDialog that you can do in a JFrame, for the most part,
so why not use dialogs instead of additional frames?  They don't result
in anything on the task bar.

= Steve =
Signature

Steve W. Jackson
Montgomery, Alabama

Paul van Rossem - 31 Jan 2005 22:43 GMT
> Does anyone know of a way to hide the taskbar button of a JFrame in
> Windows?
[quoted text clipped - 8 lines]
>
> Peet

From your description I wonder if you really want that many frames
open/visible at the same time. If the user really needs all those
windows, then you should *not* hide them from the taskbar. If the user
doesn't need them all visible at the same time, then hide the frames
your user doesn't need (setVisible(false)) and they will disappear from
the taskbar as well (without any extra effort from you).
paul.


Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.