|
-
April 28th, 2003, 08:03 AM
#1
Minimize the DOS window
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
-
April 28th, 2003, 09:06 AM
#2
Use 'javaw' instead of 'java'.
It is a bad plan that admits of no modification...
P. Syrus
Please use [CODE]...your code here...[/CODE] tags when posting code. If you get an error, please post the full error message and stack trace, if present.
-
April 28th, 2003, 09:34 AM
#3
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
-
April 28th, 2003, 09:59 AM
#4
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
Please use [CODE]...your code here...[/CODE] tags when posting code. If you get an error, please post the full error message and stack trace, if present.
-
April 29th, 2003, 06:35 AM
#5
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.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|