Hi,
I was wondering if there is a way to minimize the DOS window when you start a GUI program in JAVA. If so, how do you do that?
Thanks,
Akee
Printable View
Hi,
I was wondering if there is a way to minimize the DOS window when you start a GUI program in JAVA. If so, how do you do that?
Thanks,
Akee
Use 'javaw' instead of 'java'.
It is a bad plan that admits of no modification...
P. Syrus
Hi,
Thanks for the tip. I tried that, but it does not minimize the DOS window. I want my GUI to come up with the DOS window already minimized. I'm using a batch file to do this. Is there a way to do that?
Thanks,
Akee
If you start from a console window, I don't know how you'd minimize it from Java...
javaw is intended to be run from a Windows shortcut or menu, etc.
One only needs two tools in life: WD-40 to make things go, and duct tape to make them stop...
G. Weilacher
Use javaw, just as dlorde said. Directly after the javaw call, insert a "cls" statement. That will clear the DOS window, resulting in its being closed. I guess that's what you actually want. If not, ignore me.