initvars on new GUI Builder project

11 views
Skip to first unread message

mba...@guarumo.com

unread,
May 26, 2017, 5:55:53 PM5/26/17
to CodenameOne Discussions
Hey guys, 

I have a question, I'm starting a new project with the new GUI Builder and I used to initialize some variables and stuff on the old gui builder projects using the initVars() method.

I was wondering, what would be the equivalent of doing that in the new GUI Builder? or better said, what method would I use instead of the initVars?



Thanks for your help!

Shai Almog

unread,
May 27, 2017, 1:38:10 AM5/27/17
to CodenameOne Discussions
Hi,
since every form is now derived you can initialize variables as you normally would in a regular Java app. In the constructor or after the init call in the form class.
Reply all
Reply to author
Forward
0 new messages