Class SpringLayoutHelper

java.lang.Object
megameklab.ui.util.SpringLayoutHelper

public class SpringLayoutHelper extends Object
Helper which loops through container components in order to set up springs. Uses fixed buffers of 4 pixels between components and frame border.
  • Constructor Details

    • SpringLayoutHelper

      public SpringLayoutHelper()
  • Method Details

    • setupSpringGrid

      public static void setupSpringGrid(JPanel panel, int columns)
    • setupSpringGrid

      public static void setupSpringGrid(JPanel panel, int rows, int columns)