Class ComponentGaugeUtil

java.lang.Object
de.aikiit.fotorenamer.util.ComponentGaugeUtil

public final class ComponentGaugeUtil extends Object
Helper class to center Swing-components.
Version:
2003-10-22
Author:
hirsch, 20.10.2003
  • Constructor Details

    • ComponentGaugeUtil

      public ComponentGaugeUtil()
  • Method Details

    • makeCentered

      public static void makeCentered(Component component)
      Gauge the given component on screen.
      Parameters:
      component - Swing-component to gauge.
    • createImageIcon

      public static ImageIcon createImageIcon(String path)
      Helper that transforms a given path into an ImageIcon. In case of errors null is returned.
      Parameters:
      path - File path that is to be converted into an icon.
      Returns:
      ImageIcon, located at the given path.