Skip to main content

a problem about ListCellRender

1 reply [Last post]
huguang225
Offline
Joined: 2008-12-12
Points: 0

if a ListCellRender has a TextArea ,when the component offer by ListcellRender has a change,the setShouldCalcPreferredSize(true) has call,but in src, the (List) (selectedElemSize and elemSize) will not be afresh calculate,how i can solve this problem

Reply viewing options

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

Hi,
List won't change cells dynamically, recreate your List if the cells
should enlarge.

Regards,
Chen

lwuit-users@mobileandembedded.org wrote:
> if a ListCellRender has a TextArea ,when the component offer by ListcellRender has a change,the setShouldCalcPreferredSize(true) has call,but in src, the (List) (selectedElemSize and elemSize) will not be afresh calculate,how i can solve this problem
> [Message sent by forum member 'huguang225' (huguang225)]
>
> http://forums.java.net/jive/thread.jspa?messageID=361078
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@lwuit.dev.java.net
> For additional commands, e-mail: users-help@lwuit.dev.java.net
>
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@lwuit.dev.java.net
For additional commands, e-mail: users-help@lwuit.dev.java.net