Package de.aikiit.fotorenamer.util
Class ComponentGaugeUtil
java.lang.Object
de.aikiit.fotorenamer.util.ComponentGaugeUtil
Helper class to center Swing-components.
- Version:
- 2003-10-22
- Author:
- hirsch, 20.10.2003
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic ImageIcon
createImageIcon
(String path) Helper that transforms a given path into an ImageIcon.static void
makeCentered
(Component component) Gauge the given component on screen.
-
Constructor Details
-
ComponentGaugeUtil
public ComponentGaugeUtil()
-
-
Method Details
-
makeCentered
Gauge the given component on screen.- Parameters:
component
- Swing-component to gauge.
-
createImageIcon
Helper that transforms a given path into an ImageIcon. In case of errorsnull
is returned.- Parameters:
path
- File path that is to be converted into an icon.- Returns:
- ImageIcon, located at the given path.
-