wood burning stoves 2.0*
The moose likes Beginning Java and the fly likes How can I get rid of the pop-out dos window? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "How can I get rid of the pop-out dos window?" Watch "How can I get rid of the pop-out dos window?" New topic
Author

How can I get rid of the pop-out dos window?

Chris Ben
Ranch Hand

Joined: Jan 15, 2001
Posts: 135
Hi,
I wrote a program with GUI. THe problem is whenenver I start the program, another DOS window will jump out. I saw this in some comercial software, too.
Does anyone know how I can run my single Graphic program without that DOS window?
Thanks
Chris
Cindy Glass
"The Hood"
Sheriff

Joined: Sep 29, 2000
Posts: 8521
If you use javaw instead of java to start the application, the window can be mimimized, or closed by the user. It used to not have any window at all, but then there were problems with not having any place to write out error messages if there was a problem, so . . . the best that you can do is make the window as unobstrusive a possible.

"JavaRanch, where the deer and the Certified play" - David O'Meara
Chris Ben
Ranch Hand

Joined: Jan 15, 2001
Posts: 135
Hi Cindy,
I wrote this program to let others to use, who may not know much about java at all. So I do not want to confuse them by the console window. That javaw is pretty cool, but there is still one console window there. Can I really get rid of it? Even if I have to use some C/C++ codes to encapsulate my java execution?
Thanks a lot
Chris
Cindy Glass
"The Hood"
Sheriff

Joined: Sep 29, 2000
Posts: 8521
I would expect that if you are willing to use some JNI you COULD do it. I just have never seen it done. We just make our application big enough to cover the darn thing up .
Chris Ben
Ranch Hand

Joined: Jan 15, 2001
Posts: 135
Thanks Cindy and have a great holiday
Chris
 
 
subject: How can I get rid of the pop-out dos window?
 
Similar Threads
Closing the DOS window?
DOS window still coming when I run the Application using javaw
how do save : set path= permenantly
DOS Window
How to catch the event when the program was terminated unexpected?