Changing insets in a ScrollPane
1 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   Ari_Steinberg
Posted On:   Saturday, May 11, 2002 01:58 PM

I add a Panel to a scrollpane but I don't want the scrollpane to have any insets. It seems to defauls to having insets = (2,2,2,2). Is there any way to change this?

Re: Changing insets in a ScrollPane

Posted By:   Lunkwill_Vroomfondel  
Posted On:   Sunday, May 12, 2002 03:10 PM

i would give this a try:


Insets i=scrollpane.getInsets();
i.bottom=0;i.top=0;i.left=0;i.right=0;
About | Sitemap | Contact