Discussion Board

Results 1 to 3 of 3
  1. #1
    Registered User
    Join Date
    Aug 2007

    LWUIT VKB not working in landscape orientation


    I'm new to Java ME programming and I ran into problems with LWUIT. Maybe not LWUIT specific problem but with LWUIT it is reproduced perfectly both on simulator and on the device - Asha 310). In portrait mode the VKB is working as expected. Also, if you open the VKB in portrait mode and then rotate the phone, it is also working until you close VKB and then try to edit another field. The screen flickers but VKB does not appear and the blinking cursor does not appear in the text field.'

    The following code is the minimal test case where the problem appears. It is really frustrating as the only workaround seems to be to lock the midlet to portrait mode, which is not a good solution. Any ideas why is this happening and how to fix it?

    package com.test;
    import com.sun.lwuit.Form;
    import com.sun.lwuit.TextField;
    public class FolderForm extends Form {
    	FolderForm() {
    		super("my form");
    		addComponent(new TextField());

  2. #2
    Registered User
    Join Date
    Mar 2013
    United Kingdom

    Re: LWUIT VKB not working in landscape orientation

    I think this may be a bug with LWUIT, see this thread.


  3. #3
    Registered User
    Join Date
    Aug 2007

    Re: LWUIT VKB not working in landscape orientation

    Thanks for the response!

    Might be related but in this case the containers are resized/rearranged/redrawn properly when the orientation changes, it's just VKB that doesn't open in landscape. Actually, sometimes it opens but only after several taps and after that stops working properly again.

    If there is no solution for this, is there any way to lock the screen orientation to portrait for specific Form in LWIUT while allowing the other forms to rotate?

Similar Threads

  1. Nokia-MIDlet-App-Orientation: landscape
    By Utumno in forum Mobile Java General
    Replies: 3
    Last Post: 2010-04-13, 10:46
  2. portrait orientation and landscape orientation in N96
    By videoFx in forum [Archived] Flash Lite on Nokia Devices
    Replies: 0
    Last Post: 2009-05-20, 15:13
  3. Landscape/Portrait orientation
    By greumatt in forum Symbian User Interface
    Replies: 6
    Last Post: 2009-01-07, 09:46
  4. Landscape orientation on CEikRichTextEditor
    By dsiorpaes in forum Symbian User Interface
    Replies: 1
    Last Post: 2006-04-07, 10:18
  5. Landscape Orientation
    By mobilitymag in forum Browsing and Mark-ups
    Replies: 1
    Last Post: 1970-01-01, 02:00

Posting Permissions

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