ComponentWidget

View: New views
2 Messages — Rating Filter:   Alert me  

ComponentWidget

by jenh :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi,



I'm working with ComponentTest from the Visual Library examples. It creates a ComponentWidget using a JList. What I would like to do is add a new string to the JList upon some action. I tried this and the JList does get updated, but the component is not resized to display all the items in my list. I tried repaint, revalidate, etc but nothing seems to work. Any idea what I need to do to get all the items in the JList to display?



Jennifer





Re: ComponentWidget

by Tim Boudreau :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

jenh wrote:
I'm working with ComponentTest from the Visual Library examples. It creates a ComponentWidget using a JList. What I would like to do is add a new string to the JList upon some action. I tried this and the JList does get updated, but the component is not resized to display all the items in my list. I tried repaint, revalidate, etc but nothing seems to work. Any idea what I need to do to get all the items in the JList to display?
Probably update the *widget's* preferred size.

-Tim