Java Code Examples for javax.swing.border.TitledBorder#CENTER

The following examples show how to use javax.swing.border.TitledBorder#CENTER . You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: javax_swing_border_TitledBorder.java    From openjdk-jdk8u-backup with GNU General Public License v2.0 5 votes vote down vote up
protected TitledBorder getObject() {
    return new TitledBorder(
            new EmptyBorder(1, 2, 3, 4),
            "TITLE",
            TitledBorder.CENTER,
            TitledBorder.ABOVE_TOP,
            new Font("Arial", Font.ITALIC, 12),
            Color.RED);
}
 
Example 2
Source File: javax_swing_plaf_BorderUIResource_TitledBorderUIResource.java    From openjdk-8 with GNU General Public License v2.0 5 votes vote down vote up
protected TitledBorderUIResource getObject() {
    return new TitledBorderUIResource(
            new EmptyBorder(1, 2, 3, 4),
            "TITLE",
            TitledBorder.CENTER,
            TitledBorder.ABOVE_TOP,
            new Font("Serif", Font.ITALIC, 12),
            Color.RED);
}
 
Example 3
Source File: javax_swing_border_TitledBorder.java    From openjdk-8-source with GNU General Public License v2.0 5 votes vote down vote up
protected TitledBorder getObject() {
    return new TitledBorder(
            new EmptyBorder(1, 2, 3, 4),
            "TITLE",
            TitledBorder.CENTER,
            TitledBorder.ABOVE_TOP,
            new Font("Arial", Font.ITALIC, 12),
            Color.RED);
}
 
Example 4
Source File: javax_swing_plaf_BorderUIResource_TitledBorderUIResource.java    From openjdk-8-source with GNU General Public License v2.0 5 votes vote down vote up
protected TitledBorderUIResource getObject() {
    return new TitledBorderUIResource(
            new EmptyBorder(1, 2, 3, 4),
            "TITLE",
            TitledBorder.CENTER,
            TitledBorder.ABOVE_TOP,
            new Font("Serif", Font.ITALIC, 12),
            Color.RED);
}
 
Example 5
Source File: javax_swing_border_TitledBorder.java    From hottub with GNU General Public License v2.0 5 votes vote down vote up
protected TitledBorder getObject() {
    return new TitledBorder(
            new EmptyBorder(1, 2, 3, 4),
            "TITLE",
            TitledBorder.CENTER,
            TitledBorder.ABOVE_TOP,
            new Font("Arial", Font.ITALIC, 12),
            Color.RED);
}
 
Example 6
Source File: javax_swing_plaf_BorderUIResource_TitledBorderUIResource.java    From hottub with GNU General Public License v2.0 5 votes vote down vote up
protected TitledBorderUIResource getObject() {
    return new TitledBorderUIResource(
            new EmptyBorder(1, 2, 3, 4),
            "TITLE",
            TitledBorder.CENTER,
            TitledBorder.ABOVE_TOP,
            new Font("Serif", Font.ITALIC, 12),
            Color.RED);
}
 
Example 7
Source File: javax_swing_border_TitledBorder.java    From jdk8u-jdk with GNU General Public License v2.0 5 votes vote down vote up
protected TitledBorder getObject() {
    return new TitledBorder(
            new EmptyBorder(1, 2, 3, 4),
            "TITLE",
            TitledBorder.CENTER,
            TitledBorder.ABOVE_TOP,
            new Font("Arial", Font.ITALIC, 12),
            Color.RED);
}
 
Example 8
Source File: javax_swing_plaf_BorderUIResource_TitledBorderUIResource.java    From jdk8u-jdk with GNU General Public License v2.0 5 votes vote down vote up
protected TitledBorderUIResource getObject() {
    return new TitledBorderUIResource(
            new EmptyBorder(1, 2, 3, 4),
            "TITLE",
            TitledBorder.CENTER,
            TitledBorder.ABOVE_TOP,
            new Font("Serif", Font.ITALIC, 12),
            Color.RED);
}
 
Example 9
Source File: javax_swing_border_TitledBorder.java    From openjdk-jdk9 with GNU General Public License v2.0 5 votes vote down vote up
protected TitledBorder getObject() {
    return new TitledBorder(
            new EmptyBorder(1, 2, 3, 4),
            "TITLE",
            TitledBorder.CENTER,
            TitledBorder.ABOVE_TOP,
            new Font("Arial", Font.ITALIC, 12),
            Color.RED);
}
 
Example 10
Source File: javax_swing_plaf_BorderUIResource_TitledBorderUIResource.java    From openjdk-jdk9 with GNU General Public License v2.0 5 votes vote down vote up
protected TitledBorderUIResource getObject() {
    return new TitledBorderUIResource(
            new EmptyBorder(1, 2, 3, 4),
            "TITLE",
            TitledBorder.CENTER,
            TitledBorder.ABOVE_TOP,
            new Font("Serif", Font.ITALIC, 12),
            Color.RED);
}
 
Example 11
Source File: javax_swing_border_TitledBorder.java    From jdk8u-jdk with GNU General Public License v2.0 5 votes vote down vote up
protected TitledBorder getObject() {
    return new TitledBorder(
            new EmptyBorder(1, 2, 3, 4),
            "TITLE",
            TitledBorder.CENTER,
            TitledBorder.ABOVE_TOP,
            new Font("Arial", Font.ITALIC, 12),
            Color.RED);
}
 
Example 12
Source File: javax_swing_plaf_BorderUIResource_TitledBorderUIResource.java    From openjdk-jdk8u-backup with GNU General Public License v2.0 5 votes vote down vote up
protected TitledBorderUIResource getObject() {
    return new TitledBorderUIResource(
            new EmptyBorder(1, 2, 3, 4),
            "TITLE",
            TitledBorder.CENTER,
            TitledBorder.ABOVE_TOP,
            new Font("Serif", Font.ITALIC, 12),
            Color.RED);
}
 
Example 13
Source File: TitledBorderBeanInfo.java    From netbeans with Apache License 2.0 5 votes vote down vote up
public JustificationPropertyEditor() {
    super(
        new int[] {
            TitledBorder.DEFAULT_JUSTIFICATION,
            TitledBorder.LEFT,
            TitledBorder.CENTER,
            TitledBorder.RIGHT,
            TitledBorder.LEADING,
            TitledBorder.TRAILING,
        },
        new String[] {
            "javax.swing.border.TitledBorder.DEFAULT_JUSTIFICATION", // NOI18N
            "javax.swing.border.TitledBorder.LEFT", // NOI18N
            "javax.swing.border.TitledBorder.CENTER", // NOI18N
            "javax.swing.border.TitledBorder.RIGHT", // NOI18N
            "javax.swing.border.TitledBorder.LEADING", // NOI18N
            "javax.swing.border.TitledBorder.TRAILING", // NOI18N
        },
        new String[] {
            "VALUE_JustDefault", // NOI18N
            "VALUE_JustLeft", // NOI18N
            "VALUE_JustCenter", // NOI18N
            "VALUE_JustRight", // NOI18N
            "VALUE_JustLeading", // NOI18N
            "VALUE_JustTrailing", // NOI18N
        }
    );
}
 
Example 14
Source File: javax_swing_border_TitledBorder.java    From openjdk-jdk8u with GNU General Public License v2.0 5 votes vote down vote up
protected TitledBorder getObject() {
    return new TitledBorder(
            new EmptyBorder(1, 2, 3, 4),
            "TITLE",
            TitledBorder.CENTER,
            TitledBorder.ABOVE_TOP,
            new Font("Arial", Font.ITALIC, 12),
            Color.RED);
}
 
Example 15
Source File: javax_swing_plaf_BorderUIResource_TitledBorderUIResource.java    From jdk8u-dev-jdk with GNU General Public License v2.0 5 votes vote down vote up
protected TitledBorderUIResource getObject() {
    return new TitledBorderUIResource(
            new EmptyBorder(1, 2, 3, 4),
            "TITLE",
            TitledBorder.CENTER,
            TitledBorder.ABOVE_TOP,
            new Font("Serif", Font.ITALIC, 12),
            Color.RED);
}
 
Example 16
Source File: javax_swing_border_TitledBorder.java    From jdk8u60 with GNU General Public License v2.0 5 votes vote down vote up
protected TitledBorder getObject() {
    return new TitledBorder(
            new EmptyBorder(1, 2, 3, 4),
            "TITLE",
            TitledBorder.CENTER,
            TitledBorder.ABOVE_TOP,
            new Font("Arial", Font.ITALIC, 12),
            Color.RED);
}
 
Example 17
Source File: javax_swing_border_TitledBorder.java    From openjdk-8 with GNU General Public License v2.0 5 votes vote down vote up
protected TitledBorder getObject() {
    return new TitledBorder(
            new EmptyBorder(1, 2, 3, 4),
            "TITLE",
            TitledBorder.CENTER,
            TitledBorder.ABOVE_TOP,
            new Font("Arial", Font.ITALIC, 12),
            Color.RED);
}
 
Example 18
Source File: javax_swing_border_TitledBorder.java    From TencentKona-8 with GNU General Public License v2.0 5 votes vote down vote up
protected TitledBorder getObject() {
    return new TitledBorder(
            new EmptyBorder(1, 2, 3, 4),
            "TITLE",
            TitledBorder.CENTER,
            TitledBorder.ABOVE_TOP,
            new Font("Arial", Font.ITALIC, 12),
            Color.RED);
}
 
Example 19
Source File: javax_swing_plaf_BorderUIResource_TitledBorderUIResource.java    From TencentKona-8 with GNU General Public License v2.0 5 votes vote down vote up
protected TitledBorderUIResource getObject() {
    return new TitledBorderUIResource(
            new EmptyBorder(1, 2, 3, 4),
            "TITLE",
            TitledBorder.CENTER,
            TitledBorder.ABOVE_TOP,
            new Font("Serif", Font.ITALIC, 12),
            Color.RED);
}
 
Example 20
Source File: javax_swing_plaf_BorderUIResource_TitledBorderUIResource.java    From jdk8u_jdk with GNU General Public License v2.0 5 votes vote down vote up
protected TitledBorderUIResource getObject() {
    return new TitledBorderUIResource(
            new EmptyBorder(1, 2, 3, 4),
            "TITLE",
            TitledBorder.CENTER,
            TitledBorder.ABOVE_TOP,
            new Font("Serif", Font.ITALIC, 12),
            Color.RED);
}