| Author |
black terminal window springs up before my swing window
|
Robert Alan Hall
Greenhorn
Joined: Oct 04, 2012
Posts: 2
|
|
Hi all,
I've just successfully launched my Swing app (developed in NetBeans) from the distributable files created automatically at building.
But here's the problem...
I've created a Windows short cut to the app using the java directory as the first command and the location of the jar file as the parameter... It runs...
Except first, it displays a black terminal window on the screen. If I close the terminal window, it closes the app. Probably it's because the GUI is launched from a non-swing component based class, no?
Is there a way to stop my jar file launching a black terminal window thing before launching my Swing app? It looks untidy!
thanks for help,
Robert
|
 |
fred rosenberger
lowercase baba
Bartender
Joined: Oct 02, 2003
Posts: 9952
|
|
|
See if this is of any help.
|
Never ascribe to malice that which can be adequately explained by stupidity.
|
 |
Campbell Ritchie
Sheriff
Joined: Oct 13, 2005
Posts: 32708
|
|
Welcome to the Ranch
I think the suggestion to use javaw in the thread Fred quoted will probably help.
|
 |
Robert Alan Hall
Greenhorn
Joined: Oct 04, 2012
Posts: 2
|
|
you guys are geniuses! it worked! I'll be back, I'm sure.
thanks very much :-)
|
 |
Campbell Ritchie
Sheriff
Joined: Oct 13, 2005
Posts: 32708
|
|
Robert Alan Hall wrote:you guys are geniuses! it worked! . . .
Unwarranted flattery will get you anywhere!
But, glad we could help
|
 |
 |
|
|
subject: black terminal window springs up before my swing window
|
|
|