File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
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

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,
I agree. Here's the link:
subject: Event when displaying scrollbar
jQuery in Action, 3rd edition