0

Listbox.renderAll() does not render all? [closed]

asked 2013-02-11 16:15:25 +0800

prometeo gravatar image prometeo flag of Italy
43 1 4

Hello

I build a Listbox by a ListModelList created by an ArrayList of Objects. If I call Listbox.renderAll() on this Listbox, not every Listitem is rendered They are only rendered when I scroll down with mouse wheel or scrollbar. Am I missing something?

Please suggest me how to render all items upon Listbox creation.

Thanks Best regards Gianluca Bonetti

delete flag offensive retag edit

The question has been closed for the following reason "the question is answered, right answer was accepted" by sjoshi
close date 2013-02-12 11:21:57

Comments

Please post your code?

sjoshi ( 2013-02-11 16:54:53 +0800 )edit

1 Answer

Sort by ยป oldest newest most voted
0

answered 2013-02-12 11:09:29 +0800

prometeo gravatar image prometeo flag of Italy
43 1 4

Sorry... it was my fault.

I was doing:

listbox.renderAll();
listbox.setItemRenderer(aRenderer);

Instead of:

listbox.setItemRenderer(aRenderer);
listbox.renderAll();

This way it works as expected.

Thank you

Best regards

gl

link publish delete flag offensive edit

Question tools

Follow
1 follower

RSS

Stats

Asked: 2013-02-11 16:15:25 +0800

Seen: 60 times

Last updated: Feb 12 '13

Support Options
  • Email Support
  • Training
  • Consulting
  • Outsourcing
Learn More