Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Hide taskbar item for application

Status
Not open for further replies.

Wrathchild

Technical User
Aug 24, 2001
303
US
I have a shortcut application that will remain open and I don't want it to show in the windows taskbar. Somebody informed me that using JDialog instead of JFrame would get rid of the item in the taskbar. I tried and it did, however my line: super ("Launcher"); errored. I removed it and it ran, just without a name for the application. Also, the "X" button wouldn't close the app...is this the normal function for JDialog? Is there a way I can use JDialog, but also keep the Launcher title and have the close button work?

thanks!
 
You obviously havn't read the docs for JDialog. If you had, you'd see that the isn't a constructor taking just a String. You'll probably want the JDialog(Frame owner, String title) constructor. That way you can ensure that the main frame becomes the owner of your dialog.

To be an effective and productive Java programmer you need to be willing to look at Sun's documentation. This is downloadable from their site for free if you haven't already got it. Google for the link.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top