DZone Forums
Go Back   DZone Forums > Community > Languages & Frameworks > Java
Reload this Page Removing taskbar icon for a swing application.
Notices
Reply
 
LinkBack Thread Tools Display Modes
  (#1 (permalink)) Old
Member
 
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Join Date: Jan 2009
Default Removing taskbar icon for a swing application. - 01-07-2009, 07:15 AM

Hello.

How do I make a JFrame dissappear from the taskbar icon? I still wan't the window to be visible, but I don't want an icon to show in the taskbar on my windows box.

The goal of this is to create an application like the windows vista "bar" in the left side of the desktop. An application that is always open on the desktop, can't be closed or minimized and has no taskbar icon filling up space down there.
I have attained all this except to remove the taskbar icon.

If someone has a solution, please help me

- Dan
Reply With Quote
  (#2 (permalink)) Old
Moderator
 
gdboling's Avatar
 
Posts: 32
Thanks: 0
Thanked 0 Times in 0 Posts
Join Date: Jan 2008
Default 01-12-2009, 04:48 PM

Unless something has changed that I have missed you'll need your top level window to be a subclass of Window rather than Frame. So you could use JWindow which shouldn't register the same way with the OS as JFrame does.

The down side is that you will also lose your frame decorations so no title bar, min/max/close buttons.


Thanks

Gregg Bolinger
Reply With Quote
  (#3 (permalink)) Old
Member
 
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Join Date: Jan 2009
Default 01-13-2009, 08:29 AM

I've removed them anyway so that is no problem thanks a lot!
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
[Eclipse RCP]Change default icon LeDieu Eclipse 4 11-22-2008 08:03 AM
eclipse rcp: removing "workbench user guide" in Help kerspe Eclipse 0 09-01-2008 04:01 AM
Application fails on Mac - can't load application class kam_83 Eclipse 0 05-02-2008 11:21 AM
Removing Profile As ... from Explorer popup menu lubosp Eclipse 0 02-20-2008 01:49 PM
Post icon labels don't match glennji Feedback 0 02-15-2008 10:01 AM


Copyright 1997-2009, DZone, Inc.
vBulletin Skin developed by: vBStyles.com