• Post Reply Bookmark Topic Watch Topic
  • New Topic

Hiding DOS window with Swing GUI  RSS feed

 
Alfonso Powers
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

I am kind of a noob Java programmer. I am writing a program for school and I have it working just fine and doing everything I want it to, but one thing I cannot figure out to do is:

How do I hide the DOS window that opens when my GUI opens? The program would look so much better without that DOS window hanging in the background. I can't seem to find anything via Google (I'm probably searching with the wrong criteria).

Any help would be appreciated. If I need to post my code I will, but I wouldn't think I would have to for this.

Thanks!
 
Ulf Dittmer
Rancher
Posts: 42972
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello "apowers20"-

On your way in you may have missed that we have a policy on screen names here at JavaRanch. Basically, it must consist of a first name, a space, and a last name, and not be obviously fictitious. Since yours does not conform with it, please take a moment to change it, which you can do right here.
[ August 04, 2006: Message edited by: Ulf Dittmer ]
 
Alfonso Powers
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Fixed it ... now can I get some sort of answer to my question?
 
Paul Clapham
Sheriff
Posts: 22697
43
Eclipse IDE Firefox Browser MySQL Database
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Instead of starting your program like this:
java YourClass
start it like this instead:
javaw YourClass
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!