Class UIUtils
java.lang.Object
com.inductiveautomation.ignition.designer.util.UIUtils
-
Method Summary
Modifier and TypeMethodDescriptionstatic void
adjustSizeForAllComponents
(JPanel panel) This will adjust the size of all components in the panel to have a minimum width of 10px.
-
Method Details
-
adjustSizeForAllComponents
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.
-