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_ques
Messages: 64
Registered: July 2009
Member
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 Clayberg
Messages: 873
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:why palette view is gone after re-import
Next Topic:Disambiguating wizards
Goto Forum:
  


Current Time: Fri Oct 24 08:01:17 GMT 2014

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

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