Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsWhite Papers
Discussion GroupsFirst AidDatabasesJavaBeansGUIJava 3DVirtual MachineCORBASecurityToolsGeneral
Java DirectoryOpen Source ProjectsSample Book ChaptersUser GroupsWeb Resources
Related Topics
Databases.NETMore Topics ...

Java Forum / GUI / January 2005

Tip: Looking for answers? Try searching our database.

Question about SWT

Thread view: 
Benna - 17 Jan 2005 13:28 GMT
Hi, i'm new in the NG.

I'm writing a simple application with Eclipse using the Visual Editor
plugin. I've created 2 GUIs for my forms. These GUIs have been written with
SWT Library.
Now my question is: from my principal form, when i click on a button, i want
to create the second form (that is in a separated class inside my project),
how can i accomplish that?

The problem is i create the new class by this way

MyClass name = new MyClass();

but i can't do nothing else because all the methods of the new class are
private and not visible and so i can't call the method

name.open();

that will show my new form

Is there anyone can help me?

Thanks
Davide
nipspu - 17 Jan 2005 16:54 GMT
> project), how can i accomplish that?

why dont you change the visibility keywords? or maybe you could make the
second gui as an inner class?


Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.