aspose file tools*
The moose likes Swing / AWT / SWT and the fly likes custom control rendering with Graphic object  Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "custom control rendering with Graphic object  " Watch "custom control rendering with Graphic object  " New topic
Author

custom control rendering with Graphic object

Pratap koritala
Ranch Hand

Joined: Sep 27, 2006
Posts: 252
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.
Pratap koritala
Ranch Hand

Joined: Sep 27, 2006
Posts: 252
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

Joined: Jul 26, 2007
Posts: 10523
    
    9

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.


[How to ask questions] [Donate a pint, save a life!] [Onff-turn it on!]
Pratap koritala
Ranch Hand

Joined: Sep 27, 2006
Posts: 252
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)?
Pratap koritala
Ranch Hand

Joined: Sep 27, 2006
Posts: 252
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"
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: custom control rendering with Graphic object