Dijkstra30
Programmer
Hello there!
I have a tabbedPane. Each tab contains a scrollPane.
Each scrollPane has variable sized editors.
If i set the scrollPane to a smaller preferred size it's not ok for the longer editors:a scroll bar appears even if there is enough space below for the entire editor.
If i set it bigger, the smaller editors show a scrollbar of cuorse, that i don't need.
If i don't set it at all, the editors display just a small stripe at first, but when i change the tab and come back to the editor, it looks ok. How can I make it look ok from the begining?
Setting the minimum size doesn't work.
So, how can I set the dimension of scrollPane to match the size of the editor as the editor changes?
I have a tabbedPane. Each tab contains a scrollPane.
Each scrollPane has variable sized editors.
If i set the scrollPane to a smaller preferred size it's not ok for the longer editors:a scroll bar appears even if there is enough space below for the entire editor.
If i set it bigger, the smaller editors show a scrollbar of cuorse, that i don't need.
If i don't set it at all, the editors display just a small stripe at first, but when i change the tab and come back to the editor, it looks ok. How can I make it look ok from the begining?
Setting the minimum size doesn't work.
So, how can I set the dimension of scrollPane to match the size of the editor as the editor changes?