When you create a new project in Codename One you specify a package, this is crucial since changing that package later is a bit hard. All native mobile apps rely on something similar to a package so Codename One uses this to identify your app.
Within this package is the main class baring the name of your application. It has 4 methods by default init(Object)
, start
, stop
, destroy
. For a GUI builder application you also have the initVars(Resources)
method in the Statemachine
class.
So generally use the init
methods.