swing - Choosing a Layout Manager - Java -


i'm having trouble find right layout manager. have images inside jpanel, different size wanted use flow layout let manager handle them. manager fills first row possible , warps line. ok, want stop @ second "warp". want show 2 rows of images , if want see more must click jbutton load others. flowlayout keeps inserting in third line , images cutted half because panel not "tall" enough. tips? i've tried flow layout , mig layout without success.

combine flowlayout(outerpanel) gridbaglayout(innerpannel) u can define rows yourself, , u put jscrollpane on wont cut pictures , u still able see them in full size(my suggestion)


Comments

Popular posts from this blog

gridview - Yii2 DataPorivider $totalSum for a column -

java - Suppress Jboss version details from HTTP error response -

Sass watch command compiles .scss files before full sftp upload -