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 a panel (except for JLabels, and JCheckBoxes) to have a minimum width of 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.