• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

custom control rendering with Graphic object

 
Ranch Hand
Posts: 252
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Bartender
Posts: 11497
19
Android Google Web Toolkit Mac Eclipse IDE Ubuntu Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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"
 
Don't get me started about those stupid light bulbs.
reply
    Bookmark Topic Watch Topic
  • New Topic