.

J2ME – Thinlet port

J2ME APIs Add comments

Overview:

Some time ago the thinlet project dropped support for J2ME, but during my search for a XUL API for J2ME, I could not find a more suitable one. Therefore, I first customized the old version for some of my requirements, later on some new features of the thinlet API for J2SE were back ported to this J2ME version. And now its in a state where I think CLDC can compete with CDC using thinlet and maybe more than that

Features:

  • Developed on j2me-wtk and Nokia Series 60, testing on Nokia 3650
  • MIDP 1.0, CLDC-1.0 Compliant, i.e. can be used on any kind of J2ME device
  • All features supported by thinlet API for J2SE
  • Full screen text editing for text boxes, with dictionary (T9) support
  • Jump mode support (left arrow to activate controls by mnemonic number)
  • Touch screen support

Status:

  • In production, and being used in my other projects
  • Also used by other developers, there used to be Yahoo! group
Download:

download

Download: tazzixthinlet.zip
Version: 0.1
Updated: March 11, 2008
Size: 469.95 KB

Powered by Drain Hole

Screenshots:

Initial version, modified color scheme, and an IM application:

34 Responses to “J2ME – Thinlet port”

  1. Jay Kris Says:

    Hi , is it possible to share the source code. Thanks, Jay Kris

  2. tazzix Says:

    Sure, actually there used to be a yahoo group where all the files and some patches could be found, I think it has been shut down. I am emailing you the files for now and in future will upload files here in post the links when and if there is an update.

  3. ken Says:

    hi, I would also like a copy of this code. Is there a link where I could download it? Thanks.

  4. tazzix Says:

    hello ken, sent you an email, I think I will just post the text and file in a new post in this category, but just being lazy for this ;)

  5. Kodis Says:

    Could u please send me the thinlet j2me port files. Appreciate it..

  6. doris Says:

    could you also email me the source code?
    thanks in advance!

  7. tazzix Says:

    kodis, doris, sorry for the delay, I was on vacations. Just sent you the files.

  8. Hans Says:

    Could you please send me the thinlet j2me port files. Do you alse have an example how to use it. Thanks.

  9. tazzix Says:

    Hans, sent you the files, there are samples with the code.

  10. nycrom Says:

    Hello,

    i need the thinlet j2me port files and samples too please!

  11. D|3-H4rD Says:

    Hi all,
    can i have sources of this Midlet?

  12. David Beers Says:

    I’m very interested in the thinlet port files, too. Thanks in advance!

  13. Ashish Says:

    Kindly send me this code also…. wating for you mail with code

  14. tazzix Says:

    I am looking for a download plugin to wordpress and soon you will see a download link here, maybe next weekend.

  15. tazzix Says:

    UPDATE:

    A version controlled download link has been added to this post. Please use it to download the code and samples.

  16. Elias Says:

    Thank you for posting the source code, I downloaded it and tried to compile the sample application and I get this error:

    java.lang.NullPointerException
    at com.sun.cldc.i18n.Helper.getStreamReader(+15)
    at com.sun.cldc.i18n.Helper.getStreamReader(+7)
    at java.io.InputStreamReader.(+9)
    at Thinlet.parse(+8)
    at Thinlet.parse(+8)
    at Thinlet.parse(+26)
    at Thinlet.parse(+6)
    at DemoCanvas.(+26)
    at Demo.startApp(+16)
    at javax.microedition.midlet.MIDletProxy.startApp(+7)
    at com.sun.midp.midlet.Scheduler.schedule(+270)
    at com.sun.midp.main.Main.runLocalClass(+28)
    at com.sun.midp.main.Main.main(+80)

    and this is the build file

    regards
    Elias

  17. tazzix Says:

    Elias,

    Please make sure the XML file is in the jar and is not obfuscated. If that does not help then you will need to debug the project in your IDE, I use netbeans and BB JDE so can help you with the specifics for these.

  18. wrappinguduke Says:

    wondering if thinlet widgets and awt components can be combined together in a project?

  19. tazzix Says:

    @wrappinguduke: on the desktop that should be possible, thought the new thinlets for J2SE look marvellous and you may not want to put AWT with it, but on the mobile side the javax.microedition.ui components can not be mixed with thinlets on the same screen because of the rule that you can either use high level or low level components only.

  20. lguo Says:

    I’m interested by your project “thinlet port”.
    Can you send me your codes for more research?

    And I have a question about how to include more than one screens which are defined by diferente xml files in a midlet.

    Thanks very much.

  21. tazzix Says:

    @Iguo: there is a download link in the original post, top of this page. You can switch XML whenever you want by calling the functions in the API, please refer to the sample application.

  22. MEMO Says:

    i am intersted in this solution
    please can u share or send me the source code

  23. Daniel Wernerr Says:

    Hi Mate,

    I was testing your files! I have a problem! I can not run your Demo-Application. My Sun WTK 3.0 says:
    “Application descriptor does not declare any MIDlet. Direct execution is not allowed.”

    My Nokia E61 doesnt start the .jar

    do you have any recommendations?

    If you want, you can answer in German (I just read your CV!)
    ;-)

    Cheers,
    Daniel

  24. Paul T. Says:

    Hi tazzix,
    i’m very interested to try your J2ME port of thinlet.
    But I have a 404 Not found error when downloading the .zip archive from the link above.
    Are the source files available somewhere?
    Thanks.
    Paul.

  25. tazzix Says:

    Thanks Paul for pointing it out, I had to restore a backup of wordpress which messed up the download manager “Drain-Hole”, I think I was able to fix it. Let me know if you face any issues. Regards, tazzix.

  26. Paul T. Says:

    Thanks tazzix!
    been able to download the archive fine. will try it out soon :)
    Cheers,
    Paul.

  27. Kevin Says:

    Tazzix:
    I have been try out your Thinlet port on S60(N73) its working fine on it however on a Series 40 phone (6020) it is throwing Null pointer exception.
    Why could this be happening?

  28. Kevin Says:

    Tazzix:
    Can I use the Thinlet and also draw on the screen at the same time using paint(), if so do you have some examples for it?
    I wish to use Thinlet widgets and also custom drawing for further customization.
    Rgds,
    Kevin

  29. tazzix Says:

    @Kevin, for the null pointer exception, you will have to either integrate a J2ME logging API to log to a RMS and retrieve it with another component you’ll find some on google to this. Or you can use an emulator to see the actual error causing null pointer exceptions, if you send it to me, I will try to help you out.

    Regarding drawing, Thinlet is inheriting from canvas ofcourse, so you can either first derive from canvas,override paint, and inherit ThinletCanvas from it, I will try to find some time on this Sunday to do a sample for that, however, integration with drawing on button clicks, etc. maybe more complicated and your requirement maybe to switch to an ordinary canvas and back. Let me know how it works for you and leave me your email address so I can send you the sample code / project.

    br.
    -tasnim

  30. dear tazzix Says:

    Tazzix,

    Thinlet is so sweety, please send your code to my email.
    Thanks in advance.

  31. Bart Says:

    Tazzix,

    Thanks so much for your effor with this project. I’ve been looking for a XUL renderer for J2ME for a while before I stumbled onto your project here. If possible, could you please send me the sources? I’d really like to play around with it a bit more. Thanks in advance!

  32. tazzix Says:

    Bart, you are most welcome, you can use the blue folder icon in the post to download the complete netbeans project.

  33. Francesco Says:

    Hy i have downloaded your folder i open project with netbeans but i can’t write in textfield.
    How i can do for resolve my problem?
    Thank you

  34. mg Says:

    Could you also sent me the source code please. Thanks a lot.

Leave a Reply

WP Theme & Icons by N.Design Studio
Entries RSS Comments RSS Log in