aspose file tools*
The moose likes Swing / AWT / SWT and the fly likes No message dialog / dialog boxes? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "No message dialog / dialog boxes?" Watch "No message dialog / dialog boxes?" New topic
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: 825
    
    5

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: 825
    
    5

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: 4522
    
    5

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: 4522
    
    5

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.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: No message dialog / dialog boxes?
 
Similar Threads
JAVA architecture
JAVA architecture
pop-up frames display for a few seconds when i run my programs outside the IDE
Strange Tooltip Behaviour
Dialog box using Netbeans