Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
Starting Swing GUI without extra console window?
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  7 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
Herman Jurjus  
View profile  
 More options May 20 2006, 3:04 am
Newsgroups: comp.lang.java.gui
From: Herman Jurjus <h.jur...@hetnet.nl>
Date: Sat, 20 May 2006 09:04:40 +0200
Local: Sat, May 20 2006 3:04 am
Subject: Starting Swing GUI without extra console window?
Hello,

Perhaps this is a stupid question.
If you use the usual way to start a Swing GUI

    public static void main(String[] args) {
         invokeLater(new Runnable() {
             public void run() { // etc.
             }
         });
     }

then (at least in Windows), if you start this with a .bat file, you
still see an extra console window. If you close that window, then the
Swing GUI goes away, too. How can i start 'just the Swing GUI'?

--
Cheers,
Herman Jurjus


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Andrey Kuznetsov  
View profile  
 More options May 20 2006, 3:15 am
Newsgroups: comp.lang.java.gui
From: "Andrey Kuznetsov" <sp...@imagero.com.invalid>
Date: Sat, 20 May 2006 09:15:21 +0200
Local: Sat, May 20 2006 3:15 am
Subject: Re: Starting Swing GUI without extra console window?

> Hello,

> Perhaps this is a stupid question.
> If you use the usual way to start a Swing GUI

>    public static void main(String[] args) {
>         invokeLater(new Runnable() {
>             public void run() { // etc.
>             }
>         });
>     }

> then (at least in Windows), if you start this with a .bat file, you still
> see an extra console window. If you close that window, then the Swing GUI
> goes away, too. How can i start 'just the Swing GUI'?

use javaw insead of java.

Andrey

--
http://uio.imagero.com Unified I/O for Java
http://reader.imagero.com Java image reader
http://jgui.imagero.com Java GUI components and utilities


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
VisionSet  
View profile  
 More options May 20 2006, 1:07 pm
Newsgroups: comp.lang.java.gui
From: "VisionSet" <s...@ntlworld.com>
Date: Sat, 20 May 2006 17:07:27 GMT
Local: Sat, May 20 2006 1:07 pm
Subject: Re: Starting Swing GUI without extra console window?

"Andrey Kuznetsov" <sp...@imagero.com.invalid> wrote in message

news:e4mfm5$jjh$1@online.de...

And use the dos START /B command in the bat file if necessary, you need to
on Win2000, as even with javaw the console window remains.

--
Mike W


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
jcsnippets.atspace.com  
View profile  
 More options May 20 2006, 8:03 pm
Newsgroups: comp.lang.java.gui
From: "jcsnippets.atspace.com" <ad...@jcsnippets.atspace.com>
Date: Sun, 21 May 2006 00:03:42 GMT
Local: Sat, May 20 2006 8:03 pm
Subject: Re: Starting Swing GUI without extra console window?
"VisionSet" <s...@ntlworld.com> wrote in message

news:j1Ibg.3452$Mm3.1792@newsfe6-win.ntli.net...
<snipped>

> And use the dos START /B command in the bat file if necessary, you need to
> on Win2000, as even with javaw the console window remains.

Isn't that only when you actually use "start javaw SomeClass" ?

I'd expect not to see a console window on Win2000, when you start an
application with "javaw SomeClass". That's the behaviour I'm used to on my
Win2000 machines.

Best regards,

JayCee
--
http://jcsnippets.atspace.com/
a collection of source code, tips and tricks


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Jeffrey Schwab  
View profile  
 More options May 21 2006, 12:58 am
Newsgroups: comp.lang.java.gui
From: Jeffrey Schwab <j...@schwabcenter.com>
Date: Sun, 21 May 2006 04:58:02 GMT
Local: Sun, May 21 2006 12:58 am
Subject: Re: Starting Swing GUI without extra console window?

jcsnippets.atspace.com wrote:
> "VisionSet" <s...@ntlworld.com> wrote in message
> news:j1Ibg.3452$Mm3.1792@newsfe6-win.ntli.net...
> <snipped>
>> And use the dos START /B command in the bat file if necessary, you need to
>> on Win2000, as even with javaw the console window remains.

> Isn't that only when you actually use "start javaw SomeClass" ?

> I'd expect not to see a console window on Win2000, when you start an
> application with "javaw SomeClass". That's the behaviour I'm used to on my
> Win2000 machines.

It's not javaw that opens/maintains the console window VisionSet
mentions, but the cmd.exe interpreter.  If a shortcut, rather than a
batch file, is used to launch javaw TheClass, then as you suggest, the
console window won't show up at all.

 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Herman Jurjus  
View profile  
 More options May 22 2006, 5:13 am
Newsgroups: comp.lang.java.gui
From: Herman Jurjus <h.jur...@hetnet.nl>
Date: Mon, 22 May 2006 11:13:37 +0200
Local: Mon, May 22 2006 5:13 am
Subject: Re: Starting Swing GUI without extra console window?

Many thanks to all respondents!
        start /b javaw TheClass
That did the trick. And using a shortcut works even nicer.

--
Cheers,
Herman Jurjus


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Denis  
View profile  
 More options May 22 2006, 9:58 am
Newsgroups: comp.lang.java.gui
From: "Denis" <denis.mazzuc...@libero.it>
Date: 22 May 2006 06:58:55 -0700
Local: Mon, May 22 2006 9:58 am
Subject: Re: Starting Swing GUI without extra console window?

Herman Jurjus ha scritto:

> Hello,

> Perhaps this is a stupid question.
> If you use the usual way to start a Swing GUI

>     public static void main(String[] args) {
>          invokeLater(new Runnable() {
>              public void run() { // etc.
>              }
>          });
>      }

> then (at least in Windows), if you start this with a .bat file, you
> still see an extra console window. If you close that window, then the
> Swing GUI goes away, too. How can i start 'just the Swing GUI'?

Use webstart! Is an xml file with extension .jnlp. Then double click on
the file and the application starts. In the same way you can insert a
link to the jnlp file on an html page.

See
http://java.sun.com/docs/books/tutorial/information/javawebstart.html

DM


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »