Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Register | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read
BOOK: Professional Java Native Interfaces with SWT/JFace Discuss the book Professional Java Native Interfaces with SWT/JFace, by Jackwind Li Guojie, ISBN: 0-470-09459-1
Welcome to the p2p.wrox.com Forums.

You are currently viewing the BOOK: Professional Java Native Interfaces with SWT/JFace section of the Wrox Programmer to Programmer discussions. This is a community of tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developers’ questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
Reply
 
Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old May 8th, 2007, 01:27 AM
Registered User
 
Join Date: May 2007
Location: Cochin, Kerala, India.
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default SWT Help

I am now doing a stand alone application in SWT. I have got a very basic doubt as i am a novice in SWT. My doubt is how we can go from one shell to another. For example if we are logging in a from a login page, we have to get a logged in page. ie from a shell to another shell passing some informations..
Please do some replies..
Thanks in advance
Reply With Quote
  #2 (permalink)  
Old May 11th, 2007, 11:08 PM
Registered User
 
Join Date: May 2007
Location: , , USA.
Posts: 6
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Hi Sunil-
passing information in constructors is one way for data to travel
between forms. another easy way is your text fields can be both public
and static. then you can refer to the field like MyForm.txtFld.getText().
remember that usually you only need one display variable even though
you have multiple forms/dialogs.

jigloo gui builder works really well.
i very rarely have to edit the code it generates because it wont parse.

i hope some of these tips work for you.
good luck,
jim

Reply With Quote
  #3 (permalink)  
Old May 11th, 2007, 11:37 PM
Registered User
 
Join Date: May 2007
Location: , , USA.
Posts: 6
Thanks: 0
Thanked 0 Times in 0 Posts
Default

hi Sunil-
one more quick way is getter and setter i believe.
those are public and the fields private using that method.
i prefer public and static fields for gui form because
you dont have a million getter and setter methods and you
dont have to instantiate but some people get angry about it.
hope it helps,
jim

Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
SWT: Tabs and Labels scoobie Java GUI 1 July 6th, 2006 07:01 AM
Video Stream Display using SWT nkrust Java GUI 1 June 9th, 2006 10:39 AM



All times are GMT -4. The time now is 05:36 PM.


Powered by vBulletin®
Copyright ©2000 - 2019, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.