Package net.mcreator.ui.component.util
Class ComponentUtils
java.lang.Object
net.mcreator.ui.component.util.ComponentUtils
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic <T extends JComponent>
TapplyPadding(T what, int margin, boolean top, boolean left, boolean bottom, boolean right) static <T extends JComponent>
TderiveFont(T component, float param) static <T extends JComponent>
TsetForeground(T component, Color color) static JPanelsquareAndBorder(Component gor, Color color, String text) static JPanelsquareAndBorder(Component gor, String text) static voidupdateBorderTitle(JComponent toUpdate, String text) static ComponentwrapWithInfoButton(Component ca, String url)
-
Constructor Details
-
ComponentUtils
public ComponentUtils()
-
-
Method Details
-
applyPadding
public static <T extends JComponent> T applyPadding(T what, int margin, boolean top, boolean left, boolean bottom, boolean right) -
setForeground
-
deriveFont
-
wrapWithInfoButton
-
squareAndBorder
-
squareAndBorder
-
updateBorderTitle
-