views:

691

answers:

3
+3  Q: 

GUI Design in J2ME

I have been recently digging into Mobile Programming, I practically tried out the J2ME polish GUI framework,

Although the GUI made with Polish looked pretty decent, I realized that The User Interface was not what I was looking.

I started scourging the web most of all Stack Overflow and formulated certain rules :

  1. Java ME is ubiquitous, so this would be a good runtime to start my programming off with.
  2. The GUI framework should be such that it should give me full control of drawing on screen at a lower level a la Flash for Desktops.
  3. The application should be portable in tune with WORA, and run on variety of phones, independent of resolution, screen size etc.
  4. Support for Animation.

In my search for the ultimate GUI based on the above rules, I found several more than Polish, such as LWUIT, MiniME, Nemo. Although I have not been able to try them out.

What GUI framework would you recommend as per the rules formulated above?.

+2  A: 

Hello,

I think the best in j2me is to write you own custom GUI, with all the features you need, not more not less. That way you save space not having stuff that you don't want.

Lucas S.
How do I go about writing my own GUI, any suggestions?, links or references. Thanks.
Kevin Boyd
+1  A: 

I used LWUIT some time ago. It provides a lot of useful widgets and let's you arrange content on the screen using layout managers, similar to those used in Swing. Additionally it provides a tool to theme your GUI in a quite sophisticated way. It's worth giving it a try! I could realize almost every graphical idea I had in mind. Almost .. that was a problem for me. I guess whichever GUI toolkit you use, if you have rather specific ideas how your GUI should look and feel, you'll end up in missing certain capabilities and probably go better with writing your own small framework, as Lucas said.

Oben Sonne
+1  A: 

Using your criteria I would like to compare a library we are using at the moment, called J2ME GUI, which you can read up on at http://www.garcer.com/.

  1. It's in Java and targets MIDP2.0 / CLDC1.0 devices.
  2. Its predefined components can be extended and then you can override their Paint events to create any component of your choice.
  3. Compatibility is one of its main features, catering for the low-end handsets as well, so it's lightweight and compact.
  4. Animation is not supported directly in the version I am using at the moment. It could be implemented by creating an animation component and utilizing its built-in timer events. That's how we are currently planning to implement an animated downloading icon in one of our new projects.

Hope this helps.

mobi