I am developing LWUIT Tab based Rss Application, initially I want to display default tab, where I am able to display the Rss related titles and images successfully, my next requirement is, if an end user I click on second tab, I should be able to load the details regarding the second tab How to capture the click event for LWUIT Tab? Here my code which is not working:

public class XMLMidlet extends MIDlet{
public void startApp() {
Display.init(this);

Process p;
try {
p = new Process(this);
p.process();

} catch (IOException ex) {
ex.printStackTrace();
}

}

public class Process extends Form {
public void keyReleased(int keyCode) {
System.out.println("str");

Component p=this.getFocused();
String str= p.getClass().getName();
if(str.toLowerCase().indexOf("radiobutton")!=-1){
process();
}