Swing project does not load [newbie]
Jonathan Camilleri <[email protected]> Fri, 22 May 2009 16:25:14 +0200
| Newsgroups | gmane.comp.java.netbeans.user-interface |
|---|---|
| Message-ID | <[email protected]> |
--001485f8129070e824046a81070a
Content-Type: multipart/alternative; boundary=001485f8129070e81d046a810708
--001485f8129070e81d046a810708
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 7bit
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
Tutorial example at
http://java.sun.com/docs/books/tutorial/uiswing/examples/start/index.htm
:confused:
Thanks for your help,
--
Jonathan Camilleri
Mobile (MT): 00356 7982 7113
E-mail: [email protected]
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.
--001485f8129070e81d046a810708
Content-Type: text/html; charset=UTF-8
Content-Transfer-Encoding: quoted-printable
Hi,<div><br></div><div>I'm following a tutorial, and somehow when I sel=
ect the Run button, the UI elements simply do not show up. =C2=A0</div><div=
><br></div><div>You may note that I have added the following method manuall=
y:</div>
<div><div>=C2=A0public static void main(String args[]) {</div><div>=C2=A0=
=C2=A0java.awt.EventQueue.invokeLater(new Runnable() {</div><div>=C2=A0=C2=
=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0public void run() {</div><div>=C2=A0=
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0new CelsiusConverter=
GUI().setVisible(true);</div>
<div>=C2=A0=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0}</div><div>=C2=A0=C2=
=A0 =C2=A0 =C2=A0 =C2=A0});</div><div>=C2=A0}</div></div><div><br></div><di=
v>Is this a bug?</div><div><br></div><div>Any ideas? =C2=A0Has anyone encou=
ntered similar issues?</div><div><br></div><div><span class=3D"Apple-style-=
span" style=3D"font-weight: bold;">Environment</span></div>
<div>Windows Server 2008 64 bit</div><div>Java(TM) SE Runtime Environment (=
build 1.6.0_13-b03)<br></div><div><br></div><div><span class=3D"Apple-style=
-span" style=3D"font-weight: bold;">Related links</span></div><div>Tutorial=
example at=C2=A0<a href=3D"http://java.sun.com/docs/books/tutorial/uiswing=
/examples/start/index.htm">http://java.sun.com/docs/books/tutorial/uiswing/=
examples/start/index.htm</a></div>
<div><br></div><div>:confused:</div><div><br></div><div>Thanks for your hel=
p,<br clear=3D"all"><br>-- <br>Jonathan Camilleri<br><br>Mobile (MT): 00356=
7982 7113 <br>E-mail: <a href=3D"mailto:[email protected]">camilleri=
[email protected]</a><br>
Please consider your environmental responsibility before printing this e-ma=
il.<br> <br>I usually reply to e-mails within 2 business days. =C2=A0If it&=
#39;s urgent, give me a call.<br>
</div>
--001485f8129070e81d046a810708--
--001485f8129070e824046a81070a--