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 JPanel
squareAndBorder
(Component gor, Color color, String text) static JPanel
squareAndBorder
(Component gor, String text) static void
updateBorderTitle
(JComponent toUpdate, String text) static Component
wrapWithInfoButton
(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
-