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:

enter image description here

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

Popular posts from this blog

angularjs - ADAL JS Angular- WebAPI add a new role claim to the token -

php - CakePHP HttpSockets send array of paramms -

node.js - Using Node without global install -