View unanswered posts | View active topics It is currently Wed Mar 01, 2017 11:55 pm



Reply to topic  [ 8 posts ] 
 MigLayout for J2ME LWUIT 
Author Message

Joined: Wed Mar 21, 2012 5:57 pm
Posts: 3
Post MigLayout for J2ME LWUIT
Hi all
LWUIT is a popular UI toolkit used in J2ME. I like to implement MiG layout for J2ME.
Is it possible to do? Because J2ME do not support reflection, ArrayLIst etc,,,


Wed Mar 21, 2012 6:21 pm
Profile
Site Admin

Joined: Mon Dec 06, 2004 4:24 pm
Posts: 2485
Location: Sweden
Post Re: MigLayout for J2ME LWUIT
Hello there,

I'm not that familiar with J2ME unfortunately. I would recommend including the source code for the MigLayout core in a J2ME project and see what parts don't compile. Since the core is made of quite standard Java I don't think there should be that much to do.

MigLayout is made for porting so hopefully there will not be many problems. When you feel your project are ready to be exposed to the public you can contact me and I'll add it to the miglayout.com web site.

Also make sure to read the porting document before you start. It's linked from the site.

Cheers,
Mikael


Wed Mar 21, 2012 9:20 pm
Profile WWW

Joined: Wed Mar 21, 2012 5:57 pm
Posts: 3
Post Re: MigLayout for J2ME LWUIT
Hi Mig support

If i want to start from existing ports then what is the simplest one to start. I mean which port use less J2SE specific features? Pls tell me it is android or swing or swt


Thu Mar 22, 2012 4:46 am
Profile
Site Admin

Joined: Mon Dec 06, 2004 4:24 pm
Posts: 2485
Location: Sweden
Post Re: MigLayout for J2ME LWUIT
I think if you read the porting document it will clear things up. You will start with the core, which is without any GUI bindings. You just implement three classes basically and you're done.

Thanks,
Mikael


Thu Mar 22, 2012 2:21 pm
Profile WWW

Joined: Wed Mar 21, 2012 5:57 pm
Posts: 3
Post Re: MigLayout for J2ME LWUIT
I download and try to compile the code.
Core of mig means only net.miginfocom.layout package right?
But there are plenty of classes which are not supported by J2ME. Because J2ME source level is java 1.3.
I can put some workarounds as fallows.
1. for ArrayList -> can use Vectors
2.For iterators can use for loop
3.for import HashMap can use Hashtable;

But i do not really understand the usage of fallowing classes or Interfaces
1.Serializable
2.Externalizable
3.java.beans.*

So I have difficulties in finding any workaround for the above cases

Pls help


Thu Mar 22, 2012 6:04 pm
Profile
Site Admin

Joined: Mon Dec 06, 2004 4:24 pm
Posts: 2485
Location: Sweden
Post Re: MigLayout for J2ME LWUIT
You don't need those and can just remove them I think.


Thu Mar 22, 2012 6:34 pm
Profile WWW

Joined: Wed Mar 28, 2012 8:43 am
Posts: 1
Post Re: MigLayout for J2ME LWUIT
I'm the co-founder of LWUIT as well as Codename One ( http://www.codenameone.com/ ) currently.

I saw this post by chance through a Google Alert.

I had the MiG layout tab open in my browser for a few months now intending to migrate it to Codename One thus bringing it to the iPhone/Android/Blackberry/Windows Phone platforms we are working on. The work of porting shouldn't be as difficult, the main thing I want is deep GUI builder integration and GroupLayout is just overly complex.

I have so many things on my plate right now I haven't gotten around to it, but we are looking into integrating MiG into our platform.


Wed Mar 28, 2012 8:50 am
Profile
Site Admin

Joined: Mon Dec 06, 2004 4:24 pm
Posts: 2485
Location: Sweden
Post Re: MigLayout for J2ME LWUIT
That is good news!

Maybe you two can cooperate in some way?

Cheers,
Mikael


Wed Mar 28, 2012 8:48 pm
Profile WWW
Display posts from previous:  Sort by  
Reply to topic   [ 8 posts ] 

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group.
Designed by STSoftware for PTF.