BOOK: Professional Java Native Interfaces with SWT/JFaceDiscuss 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
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
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.
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,