All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.valkyriercp.util.UIConstants Maven / Gradle / Ivy

There is a newer version: 1.3
Show newest version
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 JLabels, beyond which the text
     * will be truncated.
     */
    public static final int MAX_LABEL_LENGTH = 35;

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy