java - 2 Panels added to Frame are one on top of the other -
I am trying to add in JPRl, but the second one goes to the top of one and I do not You can understand why it should be corrected.
Below is the UI that I try to add. Thanks a lot,
rotum
create a private static zero and Shoogui () {Jeffram F = new Jeffram ("Maman 13 - Part 2"); f.setLayout (new border layout ()); //f.setResizable (false); F.setDefaultCloseOperation (JFrame.EXIT_ON_CLOSE); Flow layout alignment leftlight = new flow layout (flow layout. LEFT, 5, 5); // First line hashtable & lt; Integer, pocket button & gt; Hashtable = new hashtable & lt; Integer, pocket button & gt; (); LinkedHash & lt; String, integer & gt; Button = New Linkedhep & lt; String, integer & gt; (); AddFirstRow (button); JPNlLeOro = New KeyboardRaw (hashtables, buttons); firstRow.setLayout (alignLeftLayout); F.add (firstRow); // second line button = new linked hips & lt; String, integer & gt; (); addSecondRow (button); JPNL secs = new keyboard repair (hashtbol, button); secondRow.setLayout (alignLeftLayout); F.add (secondRow); f.pack (); f.setVisible (true); }
instead of
f.setLayout ( New border layout ()); Try
f.setLayout (new gridlate ());
Comments
Post a Comment