Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » WindowBuilder » why class attribute is not generated
why class attribute is not generated [message #908704] Wed, 05 September 2012 21:08 Go to next message
wws_ques wws_ques is currently offline wws_ques wws_quesFriend
Messages: 64
Registered: July 2009
I drag some elements such as JTextField onto the Frame. Sometimes, the generate code declares the textField as a class attribute. But, sometimes the textField becomes a local variable in method initialize(). How can I avoid the latter case? Thanks.
Re: why class attribute is not generated [message #908752 is a reply to message #908704] Thu, 06 September 2012 00:18 Go to previous message
Eric Clayberg is currently offline Eric ClaybergFriend
Messages: 967
Registered: July 2009
Location: Boston, MA
Senior Member
That is entirely controlled by the code generation prefs you have in place and whether you converted any of the text fields into local variables or not. It only take one click to convert a widget from a field to a local and vice versa.
Previous Topic:Wrong display of components.
Next Topic:Disambiguating wizards
Goto Forum:

Current Time: Mon Apr 24 11:40:32 GMT 2017

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

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