• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

No message dialog / dialog boxes?

 
Dan D'Apice
Greenhorn
Posts: 24
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 825
5
Java Python Ruby
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Code seems ok to me.

What do you mean by "but it runs in the command window..."?
 
Dan D'Apice
Greenhorn
Posts: 24
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 825
5
Java Python Ruby
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 24
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 5133
11
Java Netbeans IDE Opera
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Dan D'Apice wrote:When I run the code ...
There's more than one way to 'run code' in NetBeans. TellTheDetails.
 
Darryl Burke
Bartender
Posts: 5133
11
Java Netbeans IDE Opera
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic