aspose file tools*
The moose likes Swing / AWT / SWT and the fly likes Event when displaying scrollbar Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "Event when displaying scrollbar" Watch "Event when displaying scrollbar" New topic
Author

Event when displaying scrollbar

Andreas Bystrom
Ranch Hand

Joined: Mar 05, 2003
Posts: 32
Hi all!
I have a scrollpane where the items shown is "tabbed" up from left to rigth in the pane. It is name (a tab) number (a tab) date ant that covers the entire scrollpane (this to make som space between the different colums).
Now when it is to many items in the list to show, a vertical scrollbar is added, I have set

My problem is that when the scrollbar is displayed, all my text dont fit in the scrollpane. What I need to do is to change the tabs when the scrollbar is added or removed. My question is if there are some event that will trigger when the scrollbar is added or deleted? If not, is there some other way to solve this?
Thanks in advance,
Andreas
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Event when displaying scrollbar