Skip to main content

Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Standard Widget Toolkit (SWT) » Beginner's question TitleAreaDialog as main Window
Beginner's question TitleAreaDialog as main Window [message #448951] Sun, 16 January 2005 15:58
Thomas is currently offline ThomasFriend
Messages: 151
Registered: July 2009
Senior Member
I tried to open a TitleAreaDialog as the main application dialog. As you=

see in the source code below, I tried different ways, but there was no =

The MessagBox sample worked ver well - so I have no idea why the =

TitleAreaDialog doesn't work.

I got a heavy error, the JVM launcher (java 1.4) gives an error window -=

"fatal exceptionn occured. Program will exit"
and within the eclipse workbench I can read the message
"java.lang.NoClassDefFoundError: org/eclipse/core/runtime/IStatus
at Main.main("
The line concerned by this is
"TitleAreaDialog dlg =3D new TitleAreaDialog(new Shell());"

When I confirm the message window of the JVM launcher, eclipse closes =


public class Main
{ public static void main(String[] args)
{ //Display display =3D new Display();
//Shell shell =3D new Shell(display);
//shell.setSize(500, 500);

TitleAreaDialog dlg =3D new TitleAreaDialog(new Shell());

/*MessageBox m =3D new MessageBox(new Shell());
m.setMessage("Hello, World");;*/

Another question: I found documentations about the classes and hierarchi=
es =

provided by the Eclipse project. However, I didn't find any documentatio=
n =

how to use these classes in small und easy-to-understand examples (see m=
y =

try of a source code above). Are there any good onlinedocumentations ?

Thomas Ballmann
Previous Topic:Newbie using Views
Next Topic:Anyone used an SWT editor such as Swede?
Goto Forum:

Current Time: Sun Aug 09 21:07:36 GMT 2020

Powered by FUDForum. Page generated in 0.01998 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top