Package jam.util
Class Utils
java.lang.Object
jam.util.Utils
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voidcenterComponent(Component component, Component reference) Center a component in reference to another, if the reference is null or not visible the screen is used as referencestatic doublegetDoubleFromTextField(JTextField textField, double defaultValue) static Stringstatic voidshowDefaultCursor(Component component) static voidshowPredefinedCursor(Component component, int cursor) static voidshowWaitCursor(Component component)
-
Constructor Details
-
Utils
public Utils()
-
-
Method Details
-
getDoubleFromTextField
- Returns:
- the value in a text field as a double. If the text field contents do not represent a valid double then the default value is inserted into the text field and returned.
-
centerComponent
Center a component in reference to another, if the reference is null or not visible the screen is used as reference -
showWaitCursor
-
showPredefinedCursor
-
showDefaultCursor
-
getEnv
-