| Author |
No message dialog / dialog boxes?
|
Dan D'Apice
Greenhorn
Joined: Sep 26, 2012
Posts: 24
|
|
Hello All,
Well, in my wonderful journey through Java, I am now at the GUI / graphics phase. I type in the following code, but it runs in the command window and no message dialog / dialog box pops up (like it says it's supposed to). I tried doing a search online for dialog boxs / message dialogs without success. Is there a setting in Java or Netbeans I am missing? I am running Java JDK 7 update 7 and Netbeans 7.2
|
 |
Kemal Sokolovic
Bartender
Joined: Jun 19, 2010
Posts: 799
|
|
Code seems ok to me.
What do you mean by "but it runs in the command window..."?
|
The quieter you are, the more you are able to hear.
|
 |
Dan D'Apice
Greenhorn
Joined: Sep 26, 2012
Posts: 24
|
|
EDIT:
Hey Kemal,
Sorry for any confusion. When I run the code the output window says run: then the next line says BUILD SUCCESSFUL (total time: 0 seconds) I've tried undocking the window, but that didn't do anything. I get no dialog box or display saying "welcome to Java".
|
 |
Kemal Sokolovic
Bartender
Joined: Jun 19, 2010
Posts: 799
|
|
Well, that seems like the line where you are displaying dialog doesn't get executed.
Did you try to compile and run it from command line?
|
 |
Dan D'Apice
Greenhorn
Joined: Sep 26, 2012
Posts: 24
|
|
|
I figured it out: I was running 32 bit Java JRE and 64 bit Netbeans. Running 32 /32 now and the dialog box pops up as normal. Yet another rookie mistake. At least it works now....
|
 |
Darryl Burke
Bartender
Joined: May 03, 2008
Posts: 4201
|
|
Dan D'Apice wrote:When I run the code ...
There's more than one way to 'run code' in NetBeans. TellTheDetails.
|
luck, db
There are no new questions, but there may be new answers.
|
 |
Darryl Burke
Bartender
Joined: May 03, 2008
Posts: 4201
|
|
Dan D'Apice wrote:I figured it out: I was running 32 bit Java JRE and 64 bit Netbeans. Running 32 /32 now and the dialog box pops up as normal. Yet another rookie mistake. At least it works now....
Glad to know you figured it out.
|
 |
 |
|
|
subject: No message dialog / dialog boxes?
|
|
|