Wrox Programmer Forums
| 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 software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
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
 
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

 
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





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





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.