Swing project does not load [newbie]

View: New views
1 Messages — Rating Filter:   Alert me  

Swing project does not load [newbie]

by jon80 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi,

I'm following a tutorial, and somehow when I select the Run button, the UI elements simply do not show up.  

You may note that I have added the following method manually:
 public static void main(String args[]) {
  java.awt.EventQueue.invokeLater(new Runnable() {
            public void run() {
                new CelsiusConverterGUI().setVisible(true);
            }
        });
 }

Is this a bug?

Any ideas?  Has anyone encountered similar issues?

Environment
Windows Server 2008 64 bit
Java(TM) SE Runtime Environment (build 1.6.0_13-b03)

Related links

:confused:

Thanks for your help,

--
Jonathan Camilleri

Mobile (MT): 00356 7982 7113
E-mail: camilleri.jon@...
Please consider your environmental responsibility before printing this e-mail.

I usually reply to e-mails within 2 business days.  If it's urgent, give me a call.