×

Discussion Board

Results 1 to 7 of 7
  1. #1
    Registered User
    Join Date
    Sep 2007
    Posts
    15

    Red face nokia 5800, touch screen and lwuit

    regards...

    I have a big problem, i´m developing one application in LWUIT for a Nokia 5800

    and I use the "Nokia-MIDlet-On-Screen-Keypad: no" in the jad file, because i don't need the keypad, but

    I can´t see the virtual keypad on the screen, and i don't have the option for show this....,

    any ideas??

    thanks in advance

  2. #2
    Super Contributor
    Join Date
    Mar 2008
    Location
    The Capital of INDIA
    Posts
    4,328

    Thumbs up Re: nokia 5800, touch screen and lwuit

    Quote Originally Posted by -Icaro- View Post
    regards...

    I have a big problem, i´m developing one application in LWUIT for a Nokia 5800

    and I use the "Nokia-MIDlet-On-Screen-Keypad: no" in the jad file, because i don't need the keypad, but

    I can´t see the virtual keypad on the screen, and i don't have the option for show this....,

    any ideas??

    thanks in advance
    I guess what you are setting is happening,can you read the lines that you have written here,once again.
    Thanks with Regards,

    R a j - The K e r n e l


    Join Delhi-NCR Nokia Developer's Community,

  3. #3
    Registered User
    Join Date
    Sep 2007
    Posts
    15

    Re: nokia 5800, touch screen and lwuit

    ahm.... soo sorry for my english, my problem is something like this:

    I am develop a project for touch screen phone specially for
    Nokia 5800 with LWUIT.

    the problem is in the textField, i found that lwuit is not
    support on screen keyword/qwerty right or I think so....

    when i push the textfield, but Nothing happens, i I need that the keyboard appears on the screen, to be able to introduce text...

    in adition y use the "Nokia-MIDlet-On-Screen-Keypad: no" atribute in the jad file, just like this http://wiki.forum.nokia.com/index.ph...dition_devices

  4. #4
    Registered User
    Join Date
    Jul 2003
    Posts
    26

    Smile Re: nokia 5800, touch screen and lwuit

    To see a full discussion on this goto: http://forums.java.net/jive/thread.j...333842&#333842

    ...
    extend TextField and override
    pointerReleased method:

    public void pointerReleased(int x, int y) {
    // prevent a drag operation from going into edit mode
    if(isDragActivated()) {
    super.pointerReleased(x, y);
    } else {
    super.pointerReleased(x, y);
    if(isEditable()){
    Display.getInstance().editString(this, getMaxSize(),
    getConstraint(), getText());
    }
    }
    }
    ...
    The extended class needs to be in com.sun.lwuit package not a nice
    patch, but this will do the trick.
    Anyway, this is an undocumented API so, it is not guaranteed to stay as
    it is today.

    Chen
    ........................
    I tried that and it works on the 5800.

  5. #5
    Registered User
    Join Date
    Sep 2007
    Posts
    15

    Thumbs up Re: nokia 5800, touch screen and lwuit

    yeah!!!! thank you so much!!! it works fine,

    you are right not it's the better , but it's very functional, I had to download the lwuit repository and change the textfield, with your code, and rebuild the project then add the library in the buildpath of my project and works!


    thanks a lot!

  6. #6
    Registered User
    Join Date
    Jul 2003
    Posts
    26

    Smile Re: nokia 5800, touch screen and lwuit

    It's mot a good idea to change the lwuit source. For two reasons:

    1. when a new version ships you have to put in the changes again.
    2. The lwuit license allows you to redistribute it freely, only if you have not changed its code.

    You should create a new class that extends Textfield:

    package com.sun.lwuit;
    ...
    ...
    public class JTextField extends TextField {
    ...
    ...
    }

    And in there override the methods to handle the text editor.

    It is quite possible that the LWUIT team will fix the problem, so on each release it's worth seeing if it has been fixed.

    As an aside, LWUIT is only early access, but it is really impressive, with it you can target all MIDP 2.0 phones, without worrying about screen resolutions, LWUIT does it for you.

  7. #7
    Registered User
    Join Date
    Sep 2007
    Posts
    15

    Re: nokia 5800, touch screen and lwuit

    ahm I dont know this kinds of things, i override the textfield because my project is in the final stage and it's cumbersome enough to change all the textfields, But with what you say to me, I think to do this change, thank you for your corrections!

Posting Permissions

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