This week's book giveaway is in the OO, Patterns, UML and Refactoring forum.
We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line!
See this thread for details.
The moose likes Java Micro Edition and the fly likes java swing conversion Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

JavaRanch » Java Forums » Mobile » Java Micro Edition
Bookmark "java swing conversion" Watch "java swing conversion" New topic

java swing conversion

mickey hendrix

Joined: May 08, 2005
Posts: 19

I'm new to j2me,so sorry for the questions

I have a Java 5 swing application that I would want to use on a Windows Mobile 6.1 device.
I have had the idea of integrate it in an applet.
I have read that the crme vm has a the swing package support,but it works only on window CE.Not good for me.
I have installed jbed jvm and I have thinked two possible scenario.
So the questions are these:

1) Are awt fully supported and can run by an applet in j2me?
2) Do I need some extra applet viewer to run applet with awt?
3) Do I need to rewrite all in a stand alone midlet with LCDUI? are there "event" item?
4) can I use midlet with awt?

thanks in advance
Tim Holloway
Saloon Keeper

Joined: Jun 25, 2001
Posts: 17023

J2ME does not support AWT. That's only available in the full Java.

AWT can be used in applets or stand-alone Applications. However, J2ME itself runs midlets.

So in summary, you cannot run unmodified AWT code on a J2ME sysem. You'd have to convert the GUI to use lcdui or one of the third-party extensions such as polish.

Customer surveys are for companies who didn't pay proper attention to begin with.
mickey hendrix

Joined: May 08, 2005
Posts: 19
thank you very much
I agree. Here's the link:
subject: java swing conversion
It's not a secret anymore!