swing - Java JPanel Gets Too Big For The Frame/ScrollBar -


i dont intend throw code @ , ask complete it. unless following makes no sense in case code may lot of help.

i have jframe set has scrollbar , 12 buttons on in gridlayout(12x1). each button has panel displays different things.

the last button/panel changes size when image chosen filechooser , displayed. last panel becomes big , cant scroll down see rest of it. left half last panel. have tried resize() , setpreferredsize() frame, scrollbar , jpanel dont think working :(

can offer insight through personal experience or know fix problem?

http://oi59.tinypic.com/r0us79.jpg

i not upload pictures here used tinypic. shows problem example before , after. notice how scrollbar @ maximum in both images.

solved: have been able view whole panel increasing size of scrollbar panel. makes other panels increase in size. if knows how can increase scrollbar 1 panel increases nice.


Comments

Popular posts from this blog

java - WrongTypeOfReturnValue exception thrown when unit testing using mockito -

php - Magento - Deleted Base url key -

android - How to disable Button if EditText is empty ? -