java - Stacking JPanels in the same direction -
i stack jpanels on in same direction. i've searched , can't find anything. results show mean "overlap".
this mean:
i stack second jpanel underneath first. when using: add(borderlayout.north)
on both layouts overlaps them.
i appreciate help, thanks!
how code specific this, use gridlayout, , set 2 rows , 1 column so.
//this go boiler plate this.setlayout(new gridlayout(2,1));
this should fix problem of 2 jpanels, , can add more rows if needed.
Comments
Post a Comment