How to update the scrollbar?
Hi,
I have a little problem with programming a vertical scroll bar for scrolling a Graphics panel.
At specific moments, the vertical scroll bar is being updated. This is, because a new item is drawn to the panel or an item is removed. As a consequence the height of the panel changes, and so, the vertical scroll bar has to be changed too.
But now I have the following problem. When you, for example, make the frame bigger, the scroll bar should update, but it did not succeed.
How can I update the scroll bar, when the size of the window/panel changes? It is an event. But, what event is that? Is that an event of WindowListener or WindowStateListener? Please help! Thank you in advance!