java.lang.Object
com.inductiveautomation.ignition.designer.util.UIUtils

public class UIUtils extends Object
  • Method Details

    • adjustSizeForAllComponents

      public static void adjustSizeForAllComponents(JPanel panel)
      This will adjust the size of all components in the panel to have a minimum width of 10px. For components that are not JLabels or JCheckBoxes, the preferred size will also be set to 10px.

      This method is useful when a panel sits inside a JScrollPane and you want the most minimal width for the panel so that a horizontal scrollbar is only shown when absolutely necessary.