• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

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

 
Chris Ben
Ranch Hand
Posts: 135
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 8521
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
Chris Ben
Ranch Hand
Posts: 135
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 8521
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 135
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks Cindy and have a great holiday
Chris
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic