wood burning stoves*
The moose likes Java Micro Edition and the fly likes How to have a drop down sort of an item? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Mobile » Java Micro Edition
Bookmark "How to have a drop down sort of an item?" Watch "How to have a drop down sort of an item?" New topic
Author

How to have a drop down sort of an item?

Ransika deSilva
Ranch Hand

Joined: Feb 18, 2003
Posts: 524
Hi all, I am writing a localized application and I am using a png to get the character set and use the GameCanvas to display. I am just curious whether I can have another GameCanvas on top of the already visible GameCavas so I can use the new canvas to display some suggestions, something like text suggestions on text prediction applicantion. Any alternative suggestion is also welcome. Thanks.


SCJP 1.4, SCMAD 1.0<br />SCWCD, SCBCD (in progress)
Ramender Mall
Ranch Hand

Joined: Sep 08, 2005
Posts: 311
I am not sure about this TWO canvas approach, BUT you can draw the drop-down list yourself, which is not a big problem in the canvas, just need to draw a rect and strings, then control the focus.

- Ramender.
Ransika deSilva
Ranch Hand

Joined: Feb 18, 2003
Posts: 524
Hi,
Thanks for the answer, I figured out a way. I am using 2 TiledLayers, one for main text entering area and another one to simulate the drop down,
and I am using the LayerManager to draw the 2nd Layer at the appropriate place. Thanks for the answer.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: How to have a drop down sort of an item?