Just do something like tis :
Code:
ButtonField button = new ButtonField("Valider")
{
protected boolean trackwheelClick(int status, int time)
{
//Do what you want the button make
function() // for example
return true;
}
};
And don't forget to add your button to the screen after