Skip to main content

Not numbered List

3 replies [Last post]
german_moblast
Offline
Joined: 2008-07-25
Points: 0

Hello,

I am working on a autocomplete select list. I followed the example posted in Shai's blog: http://lwuit.blogspot.com/2008/06/lightweight-text-input-in-lwuit.html
When the list is added to the screen the list is numbered by default. I was wondering if there is a way to show the list without numbers. I looked into the documentation but I did not find a method or other way to do it. Any help will be appreciated.
Thank you,

German

Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
Shai Almog

Hi,
the simplest solution is:
list.setListCellRenderer(new DefaultListCellRenderer(false));

> Hello,
>
> I am working on a autocomplete select list. I followed the
> example posted in Shai's blog: http://lwuit.blogspot.com/2008/06/
> lightweight-text-input-in-lwuit.html
> When the list is added to the screen the list is numbered by
> default. I was wondering if there is a way to show the list
> without numbers. I looked into the documentation but I did not
> find a method or other way to do it. Any help will be appreciated.
> Thank you,
>
> German
> [Message sent by forum member 'german_moblast' (german_moblast)]
>
> http://forums.java.net/jive/thread.jspa?messageID=289487
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@lwuit.dev.java.net
> For additional commands, e-mail: users-help@lwuit.dev.java.net
>

Shai Almog
http://lwuit.blogspot.com/

[att1.html]

german_moblast
Offline
Joined: 2008-07-25
Points: 0

Thank you Shai. The list is shown without numbers now. Thank you.

raheman
Offline
Joined: 2008-07-20
Points: 0

>I am working on a autocomplete select list. I followed the example posted in >Shai's blog: http://lwuit.blogspot.com/2008/06/lightweight-text-input-in->lwuit.html
>When the list is added to the screen the list is numbered by default. I was >wondering if there is a way to show the list without numbers. I looked into >the documentation but I did not find a method or other way to do it.

Hello

you can look at ScrollDemo, it shows this without numbers.
Thanks

Persian

Message was edited by: raheman