layout - Organizing jbuttons in flowLayout java -


I am struggling to make a good looking layout.

I am trying to add a button on the left and 2 buttons on the right side I tried several ways to look good, therefore, does not work well. Any help would be great.

  JPNL BTN 1 = new JPNL (); Btn1.setLayout (New Flow Layout (Flow Layout. Wright)); Btn1.add (new pocket ("btn 1"); Jebton BTN2 = New Pocket ("BTN 2"); btn1.add (btn2); Pane.add (btn1, border layout. SOTH);   

Since I do not allow the image to be posted:

  ------------------- ---------------------- | ------------------------------------- | | | | | | | | | | | | | | | | | | ------------------------------------- | | [Enter] [BTN1] [BTN 2] | -----------------------------------------   < p> How do I make the login button on the left side?  

Thank you.

Effort 3:

  JpnL SouthPainel = new zpinal (new gridlate (1,2)); Zippy answer = new zpn (); Jepinal btn 1_btn2 = new zpn (); enter.add (new pocket ("ant"); Enter.setLayout ((New Flow Layout (Flow Layouts. LEADING))); southPanel.add (login); Btn1_btn2.add (new pocket ("BTN 1"); Btn1_btn2.add (new pocket ("BTN 2"); btn1_btn2.setLayout ((new flow layout (flowout trailing)); southPanel.add (btn1_btn2); You can create a Nest panel with different floating layout (leading, trafficking)   

Enter image details here

Comments

Popular posts from this blog

Verilog Error: output or inout port "Q" must be connected to a structural net expression -

jasper reports - How to center align barcode using jasperreports and barcode4j -

c# - ASP.NET MVC - Attaching an entity of type 'MODELNAME' failed because another entity of the same type already has the same primary key value -