How can I correct the deprecate code?



public boolean action(Event e, Object o) {

if (e.target instanceof Button) {

table.clear();

text.setText("");

checkStart(url.getText());

return true;

}

else if (e.target == url) {

table.clear();

text.setText("");

checkStart(url.getText());

return true;

}

return false;

}



thanx in advance.