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:
Powered by Drain Hole |
Screenshots:
Initial version, modified color scheme, and an IM application:
![]() |
![]() |



October 23rd, 2007 at 9:18 pm
Hi , is it possible to share the source code. Thanks, Jay Kris
October 24th, 2007 at 4:35 am
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.
November 20th, 2007 at 8:04 am
hi, I would also like a copy of this code. Is there a link where I could download it? Thanks.
November 20th, 2007 at 8:20 am
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
December 21st, 2007 at 9:43 pm
Could u please send me the thinlet j2me port files. Appreciate it..
December 28th, 2007 at 1:21 pm
could you also email me the source code?
thanks in advance!
December 31st, 2007 at 5:46 am
kodis, doris, sorry for the delay, I was on vacations. Just sent you the files.
January 29th, 2008 at 11:18 pm
Could you please send me the thinlet j2me port files. Do you alse have an example how to use it. Thanks.
January 30th, 2008 at 4:57 am
Hans, sent you the files, there are samples with the code.
February 7th, 2008 at 3:30 pm
Hello,
i need the thinlet j2me port files and samples too please!
February 16th, 2008 at 3:32 pm
Hi all,
can i have sources of this Midlet?
February 24th, 2008 at 7:51 pm
I’m very interested in the thinlet port files, too. Thanks in advance!
March 11th, 2008 at 5:41 am
Kindly send me this code also…. wating for you mail with code
March 11th, 2008 at 6:07 am
I am looking for a download plugin to wordpress and soon you will see a download link here, maybe next weekend.
March 12th, 2008 at 5:08 am
UPDATE:
A version controlled download link has been added to this post. Please use it to download the code and samples.
March 14th, 2008 at 6:02 am
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
March 17th, 2008 at 4:39 am
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.
April 7th, 2008 at 8:24 pm
wondering if thinlet widgets and awt components can be combined together in a project?
April 8th, 2008 at 5:41 am
@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.
July 29th, 2008 at 3:19 pm
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.
July 29th, 2008 at 3:57 pm
@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.
February 16th, 2009 at 4:35 pm
i am intersted in this solution
please can u share or send me the source code
March 9th, 2009 at 4:26 pm
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
July 10th, 2009 at 4:54 pm
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.
July 10th, 2009 at 6:42 pm
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.
July 23rd, 2009 at 8:12 pm
Thanks tazzix!
been able to download the archive fine. will try it out soon
Cheers,
Paul.
September 5th, 2009 at 3:04 am
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?
September 5th, 2009 at 8:11 pm
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
October 2nd, 2009 at 3:28 am
@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
October 8th, 2009 at 4:31 pm
Tazzix,
Thinlet is so sweety, please send your code to my email.
Thanks in advance.
January 8th, 2010 at 1:37 am
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!
February 8th, 2010 at 12:59 pm
Bart, you are most welcome, you can use the blue folder icon in the post to download the complete netbeans project.
April 27th, 2010 at 12:12 pm
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
June 11th, 2010 at 9:49 am
Could you also sent me the source code please. Thanks a lot.