Hi,

You could add a ComponentListener to the JViewport of the JScrollPane (or
something like that). Check the javadocs/implementation on where the
JScrollBars exactly are in the JScrollPane implementation.

Jeroen

On Mon, 26 Feb 2001, Bharat Dighe wrote:

> Hi Folks,
> 
> I have a JPanel added to a scrollpane.
> I want to add border to this scrollpane only if size of panel exceeds and scroll bar 
>appears.
> Is there any way to get notified when the scrollbar of that scrollpane get displayed 
>?
> 
> Thanks
> 
> - Bharat
> 
> 
> 

_______________________________________________
Advanced-swing mailing list
[EMAIL PROTECTED]
http://eos.dk/mailman/listinfo/advanced-swing

Reply via email to