Wednesday, July 15, 2009

LWUIT Designer Help & Tutorial

This post serves as a destination for LWUIT Designer help and reference, it will be updated with additional videos and clarifications as time goes by. Feel free to use the comments to ask for specific clarifications regarding the tool and its usage, we will try to fill up this post with more text and explanations as time goes by.

Bellow you can see a new HD tutorial for some of the features in the current tool.

15 comments:

  1. Hi,

    I have created a Glass pane in my form and drawn a list over the glass pane in its paint (). But list is not being focused. when fire button is clicked its action performed () is not called. How can i make the list, function like normal list placed in form ???

    ReplyDelete
  2. Hi, can you tell me the link to download the software LWUIT Designer( Resources Editor)? Thanks so much.
    GioLao!

    ReplyDelete
  3. Is there a way to add a new preview resolution to the LWUITDesigner?

    There is 640x320 but the new Nokia phones are 640x360. How can I add this resolution to the preview options?

    ReplyDelete
  4. Hi,

    iam trying to apply a theme to my application but i get some error,

    this is the error:

    java.lang.NullPointerException
    at
    java.io.DataInputStream.read
    java.io.DataInputStream.readUnsignedShort(+4)
    java.io.DataInputStream.readShort(+4)
    com.sun.lwuit.util.Resources.openFile
    com.sun.lwuit.util.Resources.init
    com.sun.lwuit.util.Resources.open
    login.loginscreen.startApp

    java.io.IOException
    at com.sun.lwuit.util.Resources.open
    login.loginscreen.startApp

    I wrote it in the function startApp like this:

    Resources res = Resources.open("src/myTheme.res")

    All the build process do it well in fact, the application runs but, it doesnt load the Theme.

    Please help me to figure out whats going on.

    Thanx.

    ReplyDelete
  5. May be because of wrong path

    Resources res = Resources.open("src/myTheme.res")

    Try this

    Resources res = Resources.open("/src/myTheme.res")

    ReplyDelete
  6. Is it possible to copy and paste a theme inside a Resource file by using the ResourceEdit tool?

    I just need to have a second resource file with minor changes and I don't want to add everything from the scracth..

    I hope somebody will see this as it's been quite a while that someone has posted here..

    Thanx :)

    ReplyDelete
  7. @Micha: use an action listener.

    @Taxiarchis: It is not possible to copy a theme but we have something better. You can load a theme using setThemeProps() then use addThemeProps() to add properties or perform minor tweaks to the theme.

    ReplyDelete
  8. The new resource editor has a new file format which won't work with older versions of LWUIT.
    Newer versions of LWUIT only read the new file format (we dropped backwards compatibility to the really old format).

    ReplyDelete
  9. LWUIT Designer is getting stuck when I open a Theme. I open editor.jar fine. I open my RES file fine. I pick the MIDlet fine. I select the Theme (which I created several weeks ago and haven't touched since) and it all freezes. This also happened to me at first with the LWUIT Demo and its theme, but picking the MIDlet seemed to have solved the problem there.
    I went back to my app and selected the LWUIT Demo as the MIDlet with my RES file and it opened. So what's wrong with my MIDlet? Thanks :-)

    ReplyDelete
  10. LWUIT Designer does not seem to preview the Gradient X/Y parameters - using LWUIT demo, playing with the Gradient colors is immediately visible in the demo midlet on the side. But playing with the X/Y params - nothing seems to change. What am I missing?

    ReplyDelete
  11. There seems to be a bug in JavaSE's ImageIO API that causes some images to trigger a security exception (not your fault). I worked around that bug in the current SVN and pick MIDlet should now work fine (make sure to update the link to the new resource editor link mentioned in my latest posts).
    The positioning of the radial gradient seems to be always the center right now. This is probably a regression I did a couple of weeks ago. I'll try and fix it.

    ReplyDelete
  12. Hi, How To Implement Costum Style like DemoButton, in J2ME Code?

    ReplyDelete
  13. new Style(...), setStyle* methods...

    ReplyDelete
  14. Kindly,send me any lwuit rss reader code on kuriadedan@gmail.com that utilizes kxml

    ReplyDelete