Build a standalone SWT Application [message #20842] |
Mon, 31 January 2005 02:58  |
Eclipse User |
|
|
|
Originally posted by: antoi.darti.tiscali.fr
Hello i installed Eclipse 3.O.1
i am trying the tutorial "Hello World" for SWT standalone appli
After adding the external swt.jar libraries, as said in the tutorial,
I create a class HelloWorld main,
when I copy paste ;in the main :
Display display = new Display ();
Shell shell = new Shell (display);
Label label = new Label (shell, SWT.CENTER);
the three types are not recognized ?
Display cannot be resolved or is not a type
Is it because I have to add in the path where are the swt libraries ?
Thank you for help
Antoine
|
|
|
|
|
Re: Build a standalone SWT Application [message #25762 is a reply to message #20842] |
Sat, 05 February 2005 18:15  |
Eclipse User |
|
|
|
Originally posted by: mhoram.clandlan.net
antoine dartiguenave wrote:
> Hello i installed Eclipse 3.O.1
> i am trying the tutorial "Hello World" for SWT standalone appli
> After adding the external swt.jar libraries, as said in the tutorial,
> I create a class HelloWorld main,
> when I copy paste ;in the main :
> Display display = new Display ();
> Shell shell = new Shell (display);
> Label label = new Label (shell, SWT.CENTER);
> the three types are not recognized ?
> Display cannot be resolved or is not a type
>
> Is it because I have to add in the path where are the swt libraries ?
>
> Thank you for help
>
> Antoine
>
>
If you have already added swt.jar to Java Build Path you will need to
import the needed classes to the project, ctrl+shift+o will do it for
you, if asked choose the swt ones, no the awt.
|
|
|
Powered by
FUDForum. Page generated in 0.08001 seconds