I dont intend to throw code at you and ask you to complete it. Unless the following makes no sense in which case code may be a lot of help.
I have a JFrame set that has a scrollbar and 12 buttons on it in a GridLayout(12x1). Each button has a panel which displays different things.
The last button/panel changes size when an image is chosen from filechooser and displayed. But that last panel becomes too big and I cant scroll down to see the rest of it. I am left with just half the last panel. I have tried resize() and setPreferredSize() to the frame, scrollbar and jpanel but I dont think any are working :(
Can anyone offer some insight through personal experience or do you just know what I could do to fix this problem?
I could not upload pictures here so I used tinypic. This shows my problem example with before and after. Notice how the scrollbar is at maximum in both images.
SOLVED: I have been able to view the whole panel now by increasing the size of the scrollbar panel. However this also makes all other panels increase in size. If anyone knows how I can increase the scrollbar so that only that one panel increases that would be nice.