org.valkyriercp.util.UIConstants Maven / Gradle / Ivy
package org.valkyriercp.util;
/**
* Constants for swing user interface classes.
*
* @author Keith Donald
*/
public class UIConstants {
private UIConstants() {
}
public static final String ELLIPSIS = "...";
/**
* The Java look and Feel standard for one screen space between GUI
* Components.
*/
public static final int ONE_SPACE = 5;
/**
* The Java look and Feel standard for two screen spaces between GUI
* Components.
*/
public static final int TWO_SPACES = 11;
/**
* The Java look and Feel standard for three screen spaces between GUI
* Components.
*/
public static final int THREE_SPACES = 17;
/**
* The Java look and Feel standard for border spacing.
*/
public static final int STANDARD_BORDER = TWO_SPACES;
/**
* Symbolic name for absence of keystroke mask.
*/
public static final int NO_KEYSTROKE_MASK = 0;
/**
* Suggested width for a JTextField
*/
public static final int SIMPLE_FIELD_WIDTH = 20;
/**
* Suggested width for a JTextField
storing a file path.
*/
public static final int FILE_PATH_FIELD_WIDTH = 30;
/**
* Maximum length for some JLabel
s, beyond which the text
* will be truncated.
*/
public static final int MAX_LABEL_LENGTH = 35;
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy