Class ComponentUtils

java.lang.Object
net.mcreator.ui.component.util.ComponentUtils

public class ComponentUtils extends Object
  • 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

      public static <T extends JComponent> T setForeground(T component, Color color)
    • deriveFont

      public static <T extends JComponent> T deriveFont(T component, float param)
    • wrapWithInfoButton

      public static Component wrapWithInfoButton(Component ca, String url)
    • squareAndBorder

      public static JPanel squareAndBorder(Component gor, Color color, String text)
    • squareAndBorder

      public static JPanel squareAndBorder(Component gor, String text)