Discussion Board

Results 1 to 2 of 2
  1. #1
    Registered User
    Join Date
    Nov 2009

    Question javax.microedition.lcdui.TextField not displayed on E75

    Hi everybody,

    I encountered a strange problem on a E75 device. The TextField instances for user input won't be displayed and I have no idea what the reason could be or where to search (you'll find the program here: http://www.friendsinapocket.com.au/download/ ). The application works fine on a E71 and (if I remove the location issues) also on a N73 as well on a Blackberry Curve.

    I'm happy to get any help or ideas! Thanks in advance.


  2. #2
    Registered User
    Join Date
    Nov 2009

    Question Re: javax.microedition.lcdui.TextField not displayed on E75

    Hello Java Mobile friends,

    I just could manage to reproduce the problem with less code. Maybe someone has also an E75 and can try the little program. It consists of two classes, the midlet and a form. If I define the form within the midlet, everything works fine, but if I do it the following way, the TextFields won't be diplayed at all (at least on my phone) but the labels are displayed:

    package info.junius.apps.j2meApiCheck;
    import javax.microedition.lcdui.Display;
    import javax.microedition.lcdui.Form;
    import javax.microedition.midlet.MIDlet;
    import javax.microedition.midlet.MIDletStateChangeException;
    public class CheckAPIs extends MIDlet {
    	private Form	form	= null;
    	public CheckAPIs() {
    		this.form = new SignInForm(this);
    	protected void destroyApp ( boolean arg0 ) throws MIDletStateChangeException {
    	protected void pauseApp () {
    	protected void startApp () throws MIDletStateChangeException {
    	public void exit () {
    and the Form:

    package info.junius.apps.j2meApiCheck;
    import javax.microedition.lcdui.Command;
    import javax.microedition.lcdui.CommandListener;
    import javax.microedition.lcdui.Displayable;
    import javax.microedition.lcdui.Form;
    import javax.microedition.lcdui.Item;
    import javax.microedition.lcdui.StringItem;
    import javax.microedition.lcdui.TextField;
    public class SignInForm extends Form {
    	private CheckAPIs		main		= null;
    	private TextField		mailAddress	= null;
    	private TextField		password	= null;
    	private StringItem[]	label		= new StringItem[2];
    	public SignInForm( CheckAPIs main ) {
    		this.main = main;
    	private void drawForm () {
    		// items
    		this.label[0] = new StringItem(null, "label0", Item.PLAIN);
    		this.label[1] = new StringItem(null, "label1", Item.PLAIN);
    		this.mailAddress = new TextField(null, null, 100, TextField.EMAILADDR);
    		this.password = new TextField(null, null, 10, TextField.PASSWORD);
    		// layout
    		this.mailAddress.setLayout(Item.LAYOUT_NEWLINE_AFTER | Item.LAYOUT_EXPAND);
    		this.password.setLayout(Item.LAYOUT_NEWLINE_AFTER | Item.LAYOUT_EXPAND);
    		// append the elements
    		// add the commands
    		this.addCommand(new Command("Exit", Command.EXIT, 1));
    		this.setCommandListener(new CommandListener() {
    			public void commandAction ( Command c, Displayable d ) {
    Hope, anyone has an idea what's wrong with the code above and can help. Thanks!


Similar Threads

  1. E75 SIP register problem
    By dekruif in forum VoIP
    Replies: 3
    Last Post: 2009-11-12, 08:14
  2. Problem facing with E75 QWERTY keypad
    By rakesh.jaiswal in forum Symbian
    Replies: 0
    Last Post: 2009-06-08, 13:38
  3. Replies: 0
    Last Post: 2008-11-07, 21:18
  4. How to know if global note is displayed or not
    By mfarooqkhan78 in forum Symbian User Interface
    Replies: 1
    Last Post: 2008-07-30, 12:48
  5. Custom item not displayed correctly
    By kakoskin in forum Mobile Java Media (Graphics & Sounds)
    Replies: 0
    Last Post: 2004-10-11, 21:50

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts