GridLayout

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • MiziaQ
    New Member
    • Nov 2007
    • 63

    GridLayout

    Is there a way to have an uneven (LARGER) horizontal gap between the 2nd and 3rd columns, using gridLayout, and leave the gaps between 1st, 2nd and 3rd and 4th the same (SMALLER)?

    container.setLa yout(new GridLayout(5, 4, 5, 5));
  • HxRLxY
    New Member
    • Sep 2008
    • 23

    #2
    My friend, you absolutely need to be using MigLayout. It is a free download available at MigLayout.com. It is far more flexible, and far easier to use than any of the layout managers provided by Java( for example: what took me 135 lines of code with GroupLayout, took 31 with Mig). It takes maybe 15 to 20 minutes to learn to create amazing GUIs. There are lots of examples on the website also. Trust me, try it.

    P.S. You can cast a vote to have MigLayout included in Java7.

    -HxRLxY

    Comment

    • JosAH
      Recognized Expert MVP
      • Mar 2007
      • 11453

      #3
      Or use the standard GridBagLayout; it's a bit of a burden to get used to but when you've got the hang of it it is very easy and convenient to use.

      kind regards,

      Jos

      Comment

      Working...