• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

custom control rendering with Graphic object

 
Ramya Chowdary
Ranch Hand
Posts: 252
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Is there a way to render control like list box,combo box from groundup using graphic object and its methods ?
All I get is, public void paint( Graphics g);

Can you point me to any prior work which I can use.

To give you more background info,
It is for a mobile framework (Custom j2me, pretty old) where default control rendering is very primitive.
So, inorder to make controls more userfriendly some of the controls I need to render manually.
 
Ramya Chowdary
Ranch Hand
Posts: 252
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Is there a way to render control like list box,combo box from groundup using graphic object and its methods ?


I meant, Any example sources.
 
Maneesh Godbole
Saloon Keeper
Posts: 11021
12
Android Eclipse IDE Google Web Toolkit Java Mac Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
If you are considering AWT/Swing components "off the shelf" then you will find this thread interesting.
Check out LWUIT I personally have found its UI more appealing than the "standard j2me" version.
 
Ramya Chowdary
Ranch Hand
Posts: 252
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks for reply, I would be checking LWUIT source if I can have it as reference.

can you answer, Is it possible to render all the control with plain graphic object and its methods ?
So, I can put more efforts into it. I'll also be checking LWUIT source to have conclusion myself.


BTW, It is DOCOMO DOJA Framework (Similar in classes and methods with j2me/awt with different packages, but doesn't comply with J2ME) and UI needs customization.

I will be using code of any graphic libraries like LWUIT as reference, which renders controls from Graphics Object and event listeners.

Is there such more libraries ( Better if it is not mature, LOC will be less)?
 
Ramya Chowdary
Ranch Hand
Posts: 252
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Also,

From project description of https://lwuit.dev.java.net/
In addition much of the advanced UI functionality is not accessible in LCDUI and requires the developer to write very low level "paint" type code. The Lightweight UI Toolkit was developed to address these issues


I can able to find lot of j2me gui libraries, but not "requires the developer to write very low level "paint" type code"
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic