I figured I would post here since this is related. I'm trying to do something similar. I put this together by looking at some of the examples in the Developers Guide. But I'm getting a java:16 error, "MyTextInput is not abstract and does not override abstract method keyStatus(int,int) in net.rim.device.api.system.KeyListener"
Here's my sample code:
Code:
import net.rim.device.api.ui.*;
import net.rim.device.api.ui.component.*;
import net.rim.device.api.ui.container.*;
import net.rim.device.api.system.*;
import net.rim.device.api.util.*;
import java.util.*;
// MyTextInput.java Class --------------------------------------------------------------------------
public class MyTextInput extends net.rim.device.api.ui.UiApplication implements KeyListener
{
private AutoTextEditField inputField;
private LabelField appTitle;
public static void main(String[] args)
{
MyTextInput TIinstance = new MyTextInput();
TIinstance.enterEventDispatcher();
}
public MyTextInput()
{
MainScreen inputScreen = new MainScreen();
appTitle = new LabelField("Input Test");
inputField = new AutoTextEditField("Input:","");
inputScreen.setTitle(appTitle);
inputScreen.add(inputField);
inputScreen.addKeyListener(this);
pushScreen(inputScreen);
}
public void onExit()
{
Dialog.alert("Exiting.");
}
}
What am I missing here?
__________________
===================================
"There are 10 types of people in the world.
Those that understand binary and those that don't!"
www.timothytrimble.info - The ART of S/W Development
==================================