02-08-2012 12:32 PM
private ButtonField btnCalc = new ButtonField("=")
{
public void run() -- WARNING: NEVER IS USED LOCALLY
{
my cod is here!
}
};
The btnCalc is called in the constructor with Add(btnCalc);. But, I don´t know why the void run is not called!.. Help please.
Solved! Go to Solution.
02-08-2012 04:19 PM
I have no idea what you are doing here.
If you want to capture the button event, you attach a field listener to it. You listener is called when the button is clicked.
02-08-2012 06:09 PM
And how attach a field listener? ![]()
02-08-2012 06:14 PM
setChangeListener - each Field has this method.