dynamically adding panels to a scroll pane
1 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   Deepa_G
Posted On:   Wednesday, September 11, 2002 12:52 AM


Need to dynamically add the panels to scrollpane. the number of panels depends on the user input. i need to add these panels to a scroll pane and then the scroll pane to a frame. Sometimes there will one record and sometimes it will be 100. how do i dynamically add these panels to a scrollpane?

Re: dynamically adding panels to a scroll pane

Posted By:   Mike_Friedrich  
Posted On:   Thursday, September 12, 2002 12:13 AM

Use one panel as viewport of the scrollpane. Add all your panels to this viewport-panel and call revalidate or invalidate on the view-port-panel after inserting.


Regards, Mike

About | Sitemap | Contact