Java 类javax.swing.plaf.basic.BasicBorders 实例源码

项目:OpenJSharp    文件:ContrastMetalTheme.java   
@Override
public void addCustomEntriesToTable(UIDefaults table) {

    Border blackLineBorder =
            new BorderUIResource(new LineBorder(getBlack()));
    Border whiteLineBorder =
            new BorderUIResource(new LineBorder(getWhite()));

    Object textBorder = new BorderUIResource(new CompoundBorder(
            blackLineBorder,
            new BasicBorders.MarginBorder()));

    table.put("ToolTip.border", blackLineBorder);
    table.put("TitledBorder.border", blackLineBorder);
    table.put("Table.focusCellHighlightBorder", whiteLineBorder);
    table.put("Table.focusCellForeground", getWhite());

    table.put("TextField.border", textBorder);
    table.put("PasswordField.border", textBorder);
    table.put("TextArea.border", textBorder);
    table.put("TextPane.font", textBorder);


}
项目:jdk8u-jdk    文件:ContrastMetalTheme.java   
@Override
public void addCustomEntriesToTable(UIDefaults table) {

    Border blackLineBorder =
            new BorderUIResource(new LineBorder(getBlack()));
    Border whiteLineBorder =
            new BorderUIResource(new LineBorder(getWhite()));

    Object textBorder = new BorderUIResource(new CompoundBorder(
            blackLineBorder,
            new BasicBorders.MarginBorder()));

    table.put("ToolTip.border", blackLineBorder);
    table.put("TitledBorder.border", blackLineBorder);
    table.put("Table.focusCellHighlightBorder", whiteLineBorder);
    table.put("Table.focusCellForeground", getWhite());

    table.put("TextField.border", textBorder);
    table.put("PasswordField.border", textBorder);
    table.put("TextArea.border", textBorder);
    table.put("TextPane.font", textBorder);


}
项目:openjdk-jdk10    文件:ContrastMetalTheme.java   
@Override
public void addCustomEntriesToTable(UIDefaults table) {

    Border blackLineBorder =
            new BorderUIResource(new LineBorder(getBlack()));
    Border whiteLineBorder =
            new BorderUIResource(new LineBorder(getWhite()));

    Object textBorder = new BorderUIResource(new CompoundBorder(
            blackLineBorder,
            new BasicBorders.MarginBorder()));

    table.put("ToolTip.border", blackLineBorder);
    table.put("TitledBorder.border", blackLineBorder);
    table.put("Table.focusCellHighlightBorder", whiteLineBorder);
    table.put("Table.focusCellForeground", getWhite());

    table.put("TextField.border", textBorder);
    table.put("PasswordField.border", textBorder);
    table.put("TextArea.border", textBorder);
    table.put("TextPane.font", textBorder);


}
项目:openjdk9    文件:ContrastMetalTheme.java   
@Override
public void addCustomEntriesToTable(UIDefaults table) {

    Border blackLineBorder =
            new BorderUIResource(new LineBorder(getBlack()));
    Border whiteLineBorder =
            new BorderUIResource(new LineBorder(getWhite()));

    Object textBorder = new BorderUIResource(new CompoundBorder(
            blackLineBorder,
            new BasicBorders.MarginBorder()));

    table.put("ToolTip.border", blackLineBorder);
    table.put("TitledBorder.border", blackLineBorder);
    table.put("Table.focusCellHighlightBorder", whiteLineBorder);
    table.put("Table.focusCellForeground", getWhite());

    table.put("TextField.border", textBorder);
    table.put("PasswordField.border", textBorder);
    table.put("TextArea.border", textBorder);
    table.put("TextPane.font", textBorder);


}
项目:geokuk    文件:ContrastTheme.java   
@Override
public void addCustomEntriesToTable(final UIDefaults table) {

    final Border blackLineBorder = new BorderUIResource(new LineBorder(getBlack()));

    final Object textBorder = new BorderUIResource(new CompoundBorder(blackLineBorder, new BasicBorders.MarginBorder()));

    table.put("ToolTip.border", blackLineBorder);
    table.put("TitledBorder.border", blackLineBorder);

    table.put("TextField.border", textBorder);
    table.put("PasswordField.border", textBorder);
    table.put("TextArea.border", textBorder);
    table.put("TextPane.border", textBorder);
    table.put("EditorPane.border", textBorder);

}
项目:jdk8u_jdk    文件:ContrastMetalTheme.java   
@Override
public void addCustomEntriesToTable(UIDefaults table) {

    Border blackLineBorder =
            new BorderUIResource(new LineBorder(getBlack()));
    Border whiteLineBorder =
            new BorderUIResource(new LineBorder(getWhite()));

    Object textBorder = new BorderUIResource(new CompoundBorder(
            blackLineBorder,
            new BasicBorders.MarginBorder()));

    table.put("ToolTip.border", blackLineBorder);
    table.put("TitledBorder.border", blackLineBorder);
    table.put("Table.focusCellHighlightBorder", whiteLineBorder);
    table.put("Table.focusCellForeground", getWhite());

    table.put("TextField.border", textBorder);
    table.put("PasswordField.border", textBorder);
    table.put("TextArea.border", textBorder);
    table.put("TextPane.font", textBorder);


}
项目:lookaside_java-1.8.0-openjdk    文件:ContrastMetalTheme.java   
@Override
public void addCustomEntriesToTable(UIDefaults table) {

    Border blackLineBorder =
            new BorderUIResource(new LineBorder(getBlack()));
    Border whiteLineBorder =
            new BorderUIResource(new LineBorder(getWhite()));

    Object textBorder = new BorderUIResource(new CompoundBorder(
            blackLineBorder,
            new BasicBorders.MarginBorder()));

    table.put("ToolTip.border", blackLineBorder);
    table.put("TitledBorder.border", blackLineBorder);
    table.put("Table.focusCellHighlightBorder", whiteLineBorder);
    table.put("Table.focusCellForeground", getWhite());

    table.put("TextField.border", textBorder);
    table.put("PasswordField.border", textBorder);
    table.put("TextArea.border", textBorder);
    table.put("TextPane.font", textBorder);


}
项目:ALEA    文件:IGVMenuBar.java   
private IGVMenuBar(IGV igv) {
    this.igv = igv;
    setBorder(new BasicBorders.MenuBarBorder(Color.GRAY, Color.GRAY));
    setBorderPainted(true);

    for (AbstractButton menu : createMenus()) {
        add(menu);
    }

    //This is for Macs, so showing the about dialog
    //from the command bar does what we want.
    if (Globals.IS_MAC) {
        try {
            OSXAdapter.setAboutHandler(this, getClass().getDeclaredMethod("showAboutDialog", (Class[]) null));
            OSXAdapter.setQuitHandler(ShutdownThread.class, ShutdownThread.class.getDeclaredMethod("runS", (Class[]) null));
        } catch (Exception e) {
            log.error("Error setting apple-specific about and quit handlers", e);
        }

    }
}
项目:infobip-open-jdk-8    文件:ContrastMetalTheme.java   
@Override
public void addCustomEntriesToTable(UIDefaults table) {

    Border blackLineBorder =
            new BorderUIResource(new LineBorder(getBlack()));
    Border whiteLineBorder =
            new BorderUIResource(new LineBorder(getWhite()));

    Object textBorder = new BorderUIResource(new CompoundBorder(
            blackLineBorder,
            new BasicBorders.MarginBorder()));

    table.put("ToolTip.border", blackLineBorder);
    table.put("TitledBorder.border", blackLineBorder);
    table.put("Table.focusCellHighlightBorder", whiteLineBorder);
    table.put("Table.focusCellForeground", getWhite());

    table.put("TextField.border", textBorder);
    table.put("PasswordField.border", textBorder);
    table.put("TextArea.border", textBorder);
    table.put("TextPane.font", textBorder);


}
项目:jdk8u-dev-jdk    文件:ContrastMetalTheme.java   
@Override
public void addCustomEntriesToTable(UIDefaults table) {

    Border blackLineBorder =
            new BorderUIResource(new LineBorder(getBlack()));
    Border whiteLineBorder =
            new BorderUIResource(new LineBorder(getWhite()));

    Object textBorder = new BorderUIResource(new CompoundBorder(
            blackLineBorder,
            new BasicBorders.MarginBorder()));

    table.put("ToolTip.border", blackLineBorder);
    table.put("TitledBorder.border", blackLineBorder);
    table.put("Table.focusCellHighlightBorder", whiteLineBorder);
    table.put("Table.focusCellForeground", getWhite());

    table.put("TextField.border", textBorder);
    table.put("PasswordField.border", textBorder);
    table.put("TextArea.border", textBorder);
    table.put("TextPane.font", textBorder);


}
项目:minimal-j    文件:PrintLookAndFeel.java   
@Override
protected void initComponentDefaults(UIDefaults table) {
    super.initComponentDefaults(table);

    Border lineBorder = new BorderUIResource(new MatteBorder(1, 1, 1, 1, Color.LIGHT_GRAY));
    Object textBorder = new BorderUIResource(new CompoundBorder(lineBorder, new BasicBorders.MarginBorder()));

    Object[] defaults = new Object[] { "ComboBox.selectionForeground", getHighlightedTextColor(), "Panel.font", getControlTextFont(), 
            "ToolTip.border", lineBorder,
            "TitledBorder.border", lineBorder,
            "TextField.border", textBorder,
            "PasswordField.border", textBorder,
            "TextArea.border", textBorder,
            "TextPane.border", textBorder,
            "EditorPane.border", textBorder,
            "Button.border", lineBorder,
            };
    table.putDefaults(defaults);
}
项目:jdk7-jdk    文件:ContrastMetalTheme.java   
@Override
public void addCustomEntriesToTable(UIDefaults table) {

    Border blackLineBorder =
            new BorderUIResource(new LineBorder(getBlack()));
    Border whiteLineBorder =
            new BorderUIResource(new LineBorder(getWhite()));

    Object textBorder = new BorderUIResource(new CompoundBorder(
            blackLineBorder,
            new BasicBorders.MarginBorder()));

    table.put("ToolTip.border", blackLineBorder);
    table.put("TitledBorder.border", blackLineBorder);
    table.put("Table.focusCellHighlightBorder", whiteLineBorder);
    table.put("Table.focusCellForeground", getWhite());

    table.put("TextField.border", textBorder);
    table.put("PasswordField.border", textBorder);
    table.put("TextArea.border", textBorder);
    table.put("TextPane.font", textBorder);


}
项目:openjdk-source-code-learn    文件:ContrastMetalTheme.java   
@Override
public void addCustomEntriesToTable(UIDefaults table) {

    Border blackLineBorder =
            new BorderUIResource(new LineBorder(getBlack()));
    Border whiteLineBorder =
            new BorderUIResource(new LineBorder(getWhite()));

    Object textBorder = new BorderUIResource(new CompoundBorder(
            blackLineBorder,
            new BasicBorders.MarginBorder()));

    table.put("ToolTip.border", blackLineBorder);
    table.put("TitledBorder.border", blackLineBorder);
    table.put("Table.focusCellHighlightBorder", whiteLineBorder);
    table.put("Table.focusCellForeground", getWhite());

    table.put("TextField.border", textBorder);
    table.put("PasswordField.border", textBorder);
    table.put("TextArea.border", textBorder);
    table.put("TextPane.font", textBorder);


}
项目:OLD-OpenJDK8    文件:ContrastMetalTheme.java   
@Override
public void addCustomEntriesToTable(UIDefaults table) {

    Border blackLineBorder =
            new BorderUIResource(new LineBorder(getBlack()));
    Border whiteLineBorder =
            new BorderUIResource(new LineBorder(getWhite()));

    Object textBorder = new BorderUIResource(new CompoundBorder(
            blackLineBorder,
            new BasicBorders.MarginBorder()));

    table.put("ToolTip.border", blackLineBorder);
    table.put("TitledBorder.border", blackLineBorder);
    table.put("Table.focusCellHighlightBorder", whiteLineBorder);
    table.put("Table.focusCellForeground", getWhite());

    table.put("TextField.border", textBorder);
    table.put("PasswordField.border", textBorder);
    table.put("TextArea.border", textBorder);
    table.put("TextPane.font", textBorder);


}
项目:cn1    文件:MetalBordersTest.java   
public void testGetToggleButtonBorder() {
    JComponent testButton = newJComponent();
    assertTrue(MetalBorders.getToggleButtonBorder() instanceof BorderUIResource.CompoundBorderUIResource);
    BorderUIResource.CompoundBorderUIResource border = (BorderUIResource.CompoundBorderUIResource) MetalBorders
            .getToggleButtonBorder();
    assertTrue(border.getInsideBorder() instanceof BasicBorders.MarginBorder);
    BasicBorders.MarginBorder insideBorder = (BasicBorders.MarginBorder) border
            .getInsideBorder();
    assertTrue(border.getOutsideBorder() instanceof MetalBorders.ToggleButtonBorder);
    MetalBorders.ToggleButtonBorder outsideBorder = (MetalBorders.ToggleButtonBorder) border
            .getOutsideBorder();
    //        assertEquals(new Insets(2, 14, 2, 14), insideBorder.getBorderInsets(testButton));
    assertEquals(new Insets(3, 3, 3, 3), outsideBorder.getBorderInsets(testButton));
    assertFalse(insideBorder.isBorderOpaque());
    assertFalse(outsideBorder.isBorderOpaque());
}
项目:cn1    文件:MetalBordersTest.java   
public void testGetTextFieldBorder() {
    JComponent testButton = newJComponent();
    assertTrue(MetalBorders.getTextFieldBorder() instanceof BorderUIResource.CompoundBorderUIResource);
    BorderUIResource.CompoundBorderUIResource border = (BorderUIResource.CompoundBorderUIResource) MetalBorders
            .getTextFieldBorder();
    assertTrue(border.getInsideBorder() instanceof BasicBorders.MarginBorder);
    BasicBorders.MarginBorder insideBorder = (BasicBorders.MarginBorder) border
            .getInsideBorder();
    assertTrue(border.getOutsideBorder() instanceof MetalBorders.TextFieldBorder);
    MetalBorders.TextFieldBorder outsideBorder = (MetalBorders.TextFieldBorder) border
            .getOutsideBorder();
    //        assertEquals(new Insets(2, 14, 2, 14), insideBorder.getBorderInsets(testButton));
    assertEquals(new Insets(2, 2, 2, 2), outsideBorder.getBorderInsets(testButton));
    assertFalse(insideBorder.isBorderOpaque());
    assertFalse(outsideBorder.isBorderOpaque());
}
项目:cn1    文件:MetalBordersTest.java   
public void testGetTextBorder() {
    JComponent testButton = newJComponent();
    assertTrue(MetalBorders.getTextBorder() instanceof BorderUIResource.CompoundBorderUIResource);
    BorderUIResource.CompoundBorderUIResource border = (BorderUIResource.CompoundBorderUIResource) MetalBorders
            .getTextBorder();
    assertTrue(border.getInsideBorder() instanceof BasicBorders.MarginBorder);
    BasicBorders.MarginBorder insideBorder = (BasicBorders.MarginBorder) border
            .getInsideBorder();
    assertTrue(border.getOutsideBorder() instanceof MetalBorders.Flush3DBorder);
    MetalBorders.Flush3DBorder outsideBorder = (MetalBorders.Flush3DBorder) border
            .getOutsideBorder();
    //        assertEquals(new Insets(2, 14, 2, 14), insideBorder.getBorderInsets(testButton));
    assertEquals(new Insets(2, 2, 2, 2), outsideBorder.getBorderInsets(testButton));
    assertFalse(insideBorder.isBorderOpaque());
    assertFalse(outsideBorder.isBorderOpaque());
}
项目:openjdk-jdk7u-jdk    文件:ContrastMetalTheme.java   
@Override
public void addCustomEntriesToTable(UIDefaults table) {

    Border blackLineBorder =
            new BorderUIResource(new LineBorder(getBlack()));
    Border whiteLineBorder =
            new BorderUIResource(new LineBorder(getWhite()));

    Object textBorder = new BorderUIResource(new CompoundBorder(
            blackLineBorder,
            new BasicBorders.MarginBorder()));

    table.put("ToolTip.border", blackLineBorder);
    table.put("TitledBorder.border", blackLineBorder);
    table.put("Table.focusCellHighlightBorder", whiteLineBorder);
    table.put("Table.focusCellForeground", getWhite());

    table.put("TextField.border", textBorder);
    table.put("PasswordField.border", textBorder);
    table.put("TextArea.border", textBorder);
    table.put("TextPane.font", textBorder);


}
项目:IBMDataMovementTool    文件:WindowsLookAndFeel.java   
/**
  * Initializes component defaults required in classic mode only.
  */
 private void initComponentDefaultsClassic(UIDefaults table) {
     Object checkBoxIcon = new SimpleProxyLazyValue(
             "com.jgoodies.looks.windows.WindowsLookAndFeel",
             "getCheckBoxIcon");

     Object radioButtonIcon = new SimpleProxyLazyValue(
             "com.jgoodies.looks.windows.WindowsLookAndFeel",
             "getRadioButtonIcon");

     Border winInsetBorder = new BasicBorders.FieldBorder(table
             .getColor("controlShadow"), table
             .getColor("controlDkShadow"),
             table.getColor("controlHighlight"), table
                     .getColor("controlLtHighlight"));

     Object[] defaults = {
         "CheckBox.checkColor",    table.get("controlText"), // kind-of black
         "CheckBox.icon",          checkBoxIcon,
"RadioButton.checkColor", table.get("controlText"), // kind-of black
         "RadioButton.icon",       radioButtonIcon,
         "Table.scrollPaneBorder", winInsetBorder, // 1.4.1 Bug

     };
     table.putDefaults(defaults);
 }
项目:freeVM    文件:MetalBordersTest.java   
public void testGetToggleButtonBorder() {
    JComponent testButton = newJComponent();
    assertTrue(MetalBorders.getToggleButtonBorder() instanceof BorderUIResource.CompoundBorderUIResource);
    BorderUIResource.CompoundBorderUIResource border = (BorderUIResource.CompoundBorderUIResource) MetalBorders
            .getToggleButtonBorder();
    assertTrue(border.getInsideBorder() instanceof BasicBorders.MarginBorder);
    BasicBorders.MarginBorder insideBorder = (BasicBorders.MarginBorder) border
            .getInsideBorder();
    assertTrue(border.getOutsideBorder() instanceof MetalBorders.ToggleButtonBorder);
    MetalBorders.ToggleButtonBorder outsideBorder = (MetalBorders.ToggleButtonBorder) border
            .getOutsideBorder();
    //        assertEquals(new Insets(2, 14, 2, 14), insideBorder.getBorderInsets(testButton));
    assertEquals(new Insets(3, 3, 3, 3), outsideBorder.getBorderInsets(testButton));
    assertFalse(insideBorder.isBorderOpaque());
    assertFalse(outsideBorder.isBorderOpaque());
}
项目:freeVM    文件:MetalBordersTest.java   
public void testGetTextFieldBorder() {
    JComponent testButton = newJComponent();
    assertTrue(MetalBorders.getTextFieldBorder() instanceof BorderUIResource.CompoundBorderUIResource);
    BorderUIResource.CompoundBorderUIResource border = (BorderUIResource.CompoundBorderUIResource) MetalBorders
            .getTextFieldBorder();
    assertTrue(border.getInsideBorder() instanceof BasicBorders.MarginBorder);
    BasicBorders.MarginBorder insideBorder = (BasicBorders.MarginBorder) border
            .getInsideBorder();
    assertTrue(border.getOutsideBorder() instanceof MetalBorders.TextFieldBorder);
    MetalBorders.TextFieldBorder outsideBorder = (MetalBorders.TextFieldBorder) border
            .getOutsideBorder();
    //        assertEquals(new Insets(2, 14, 2, 14), insideBorder.getBorderInsets(testButton));
    assertEquals(new Insets(2, 2, 2, 2), outsideBorder.getBorderInsets(testButton));
    assertFalse(insideBorder.isBorderOpaque());
    assertFalse(outsideBorder.isBorderOpaque());
}
项目:freeVM    文件:MetalBordersTest.java   
public void testGetTextBorder() {
    JComponent testButton = newJComponent();
    assertTrue(MetalBorders.getTextBorder() instanceof BorderUIResource.CompoundBorderUIResource);
    BorderUIResource.CompoundBorderUIResource border = (BorderUIResource.CompoundBorderUIResource) MetalBorders
            .getTextBorder();
    assertTrue(border.getInsideBorder() instanceof BasicBorders.MarginBorder);
    BasicBorders.MarginBorder insideBorder = (BasicBorders.MarginBorder) border
            .getInsideBorder();
    assertTrue(border.getOutsideBorder() instanceof MetalBorders.Flush3DBorder);
    MetalBorders.Flush3DBorder outsideBorder = (MetalBorders.Flush3DBorder) border
            .getOutsideBorder();
    //        assertEquals(new Insets(2, 14, 2, 14), insideBorder.getBorderInsets(testButton));
    assertEquals(new Insets(2, 2, 2, 2), outsideBorder.getBorderInsets(testButton));
    assertFalse(insideBorder.isBorderOpaque());
    assertFalse(outsideBorder.isBorderOpaque());
}
项目:freeVM    文件:MetalBordersTest.java   
public void testGetToggleButtonBorder() {
    JComponent testButton = newJComponent();
    assertTrue(MetalBorders.getToggleButtonBorder() instanceof BorderUIResource.CompoundBorderUIResource);
    BorderUIResource.CompoundBorderUIResource border = (BorderUIResource.CompoundBorderUIResource) MetalBorders
            .getToggleButtonBorder();
    assertTrue(border.getInsideBorder() instanceof BasicBorders.MarginBorder);
    BasicBorders.MarginBorder insideBorder = (BasicBorders.MarginBorder) border
            .getInsideBorder();
    assertTrue(border.getOutsideBorder() instanceof MetalBorders.ToggleButtonBorder);
    MetalBorders.ToggleButtonBorder outsideBorder = (MetalBorders.ToggleButtonBorder) border
            .getOutsideBorder();
    //        assertEquals(new Insets(2, 14, 2, 14), insideBorder.getBorderInsets(testButton));
    assertEquals(new Insets(3, 3, 3, 3), outsideBorder.getBorderInsets(testButton));
    assertFalse(insideBorder.isBorderOpaque());
    assertFalse(outsideBorder.isBorderOpaque());
}
项目:freeVM    文件:MetalBordersTest.java   
public void testGetTextFieldBorder() {
    JComponent testButton = newJComponent();
    assertTrue(MetalBorders.getTextFieldBorder() instanceof BorderUIResource.CompoundBorderUIResource);
    BorderUIResource.CompoundBorderUIResource border = (BorderUIResource.CompoundBorderUIResource) MetalBorders
            .getTextFieldBorder();
    assertTrue(border.getInsideBorder() instanceof BasicBorders.MarginBorder);
    BasicBorders.MarginBorder insideBorder = (BasicBorders.MarginBorder) border
            .getInsideBorder();
    assertTrue(border.getOutsideBorder() instanceof MetalBorders.TextFieldBorder);
    MetalBorders.TextFieldBorder outsideBorder = (MetalBorders.TextFieldBorder) border
            .getOutsideBorder();
    //        assertEquals(new Insets(2, 14, 2, 14), insideBorder.getBorderInsets(testButton));
    assertEquals(new Insets(2, 2, 2, 2), outsideBorder.getBorderInsets(testButton));
    assertFalse(insideBorder.isBorderOpaque());
    assertFalse(outsideBorder.isBorderOpaque());
}
项目:freeVM    文件:MetalBordersTest.java   
public void testGetTextBorder() {
    JComponent testButton = newJComponent();
    assertTrue(MetalBorders.getTextBorder() instanceof BorderUIResource.CompoundBorderUIResource);
    BorderUIResource.CompoundBorderUIResource border = (BorderUIResource.CompoundBorderUIResource) MetalBorders
            .getTextBorder();
    assertTrue(border.getInsideBorder() instanceof BasicBorders.MarginBorder);
    BasicBorders.MarginBorder insideBorder = (BasicBorders.MarginBorder) border
            .getInsideBorder();
    assertTrue(border.getOutsideBorder() instanceof MetalBorders.Flush3DBorder);
    MetalBorders.Flush3DBorder outsideBorder = (MetalBorders.Flush3DBorder) border
            .getOutsideBorder();
    //        assertEquals(new Insets(2, 14, 2, 14), insideBorder.getBorderInsets(testButton));
    assertEquals(new Insets(2, 2, 2, 2), outsideBorder.getBorderInsets(testButton));
    assertFalse(insideBorder.isBorderOpaque());
    assertFalse(outsideBorder.isBorderOpaque());
}
项目:openjdk-icedtea7    文件:ContrastMetalTheme.java   
@Override
public void addCustomEntriesToTable(UIDefaults table) {

    Border blackLineBorder =
            new BorderUIResource(new LineBorder(getBlack()));
    Border whiteLineBorder =
            new BorderUIResource(new LineBorder(getWhite()));

    Object textBorder = new BorderUIResource(new CompoundBorder(
            blackLineBorder,
            new BasicBorders.MarginBorder()));

    table.put("ToolTip.border", blackLineBorder);
    table.put("TitledBorder.border", blackLineBorder);
    table.put("Table.focusCellHighlightBorder", whiteLineBorder);
    table.put("Table.focusCellForeground", getWhite());

    table.put("TextField.border", textBorder);
    table.put("PasswordField.border", textBorder);
    table.put("TextArea.border", textBorder);
    table.put("TextPane.font", textBorder);


}
项目:OpenJSharp    文件:MetalBorders.java   
/**
 * Returns a border instance for a JButton
 * @since 1.3
 */
public static Border getButtonBorder() {
    if (buttonBorder == null) {
        buttonBorder = new BorderUIResource.CompoundBorderUIResource(
                                               new MetalBorders.ButtonBorder(),
                                               new BasicBorders.MarginBorder());
    }
    return buttonBorder;
}
项目:OpenJSharp    文件:MetalBorders.java   
/**
 * Returns a border instance for a text component
 * @since 1.3
 */
public static Border getTextBorder() {
    if (textBorder == null) {
        textBorder = new BorderUIResource.CompoundBorderUIResource(
                                               new MetalBorders.Flush3DBorder(),
                                               new BasicBorders.MarginBorder());
    }
    return textBorder;
}
项目:OpenJSharp    文件:MetalBorders.java   
/**
 * Returns a border instance for a JTextField
 * @since 1.3
 */
public static Border getTextFieldBorder() {
    if (textFieldBorder == null) {
        textFieldBorder = new BorderUIResource.CompoundBorderUIResource(
                                               new MetalBorders.TextFieldBorder(),
                                               new BasicBorders.MarginBorder());
    }
    return textFieldBorder;
}
项目:OpenJSharp    文件:MetalBorders.java   
/**
 * Returns a border instance for a JToggleButton
 * @since 1.3
 */
public static Border getToggleButtonBorder() {
    if (toggleButtonBorder == null) {
        toggleButtonBorder = new BorderUIResource.CompoundBorderUIResource(
                                               new MetalBorders.ToggleButtonBorder(),
                                               new BasicBorders.MarginBorder());
    }
    return toggleButtonBorder;
}
项目:jdk8u-jdk    文件:MetalBorders.java   
/**
 * Returns a border instance for a JButton
 * @since 1.3
 */
public static Border getButtonBorder() {
    if (buttonBorder == null) {
        buttonBorder = new BorderUIResource.CompoundBorderUIResource(
                                               new MetalBorders.ButtonBorder(),
                                               new BasicBorders.MarginBorder());
    }
    return buttonBorder;
}
项目:jdk8u-jdk    文件:MetalBorders.java   
/**
 * Returns a border instance for a text component
 * @since 1.3
 */
public static Border getTextBorder() {
    if (textBorder == null) {
        textBorder = new BorderUIResource.CompoundBorderUIResource(
                                               new MetalBorders.Flush3DBorder(),
                                               new BasicBorders.MarginBorder());
    }
    return textBorder;
}
项目:jdk8u-jdk    文件:MetalBorders.java   
/**
 * Returns a border instance for a JTextField
 * @since 1.3
 */
public static Border getTextFieldBorder() {
    if (textFieldBorder == null) {
        textFieldBorder = new BorderUIResource.CompoundBorderUIResource(
                                               new MetalBorders.TextFieldBorder(),
                                               new BasicBorders.MarginBorder());
    }
    return textFieldBorder;
}
项目:jdk8u-jdk    文件:MetalBorders.java   
/**
 * Returns a border instance for a JToggleButton
 * @since 1.3
 */
public static Border getToggleButtonBorder() {
    if (toggleButtonBorder == null) {
        toggleButtonBorder = new BorderUIResource.CompoundBorderUIResource(
                                               new MetalBorders.ToggleButtonBorder(),
                                               new BasicBorders.MarginBorder());
    }
    return toggleButtonBorder;
}
项目:openjdk-jdk10    文件:MetalBorders.java   
/**
 * Returns a border instance for a {@code JButton}.
 *
 * @return a border instance for a {@code JButton}
 * @since 1.3
 */
public static Border getButtonBorder() {
    if (buttonBorder == null) {
        buttonBorder = new BorderUIResource.CompoundBorderUIResource(
                                               new MetalBorders.ButtonBorder(),
                                               new BasicBorders.MarginBorder());
    }
    return buttonBorder;
}
项目:openjdk-jdk10    文件:MetalBorders.java   
/**
 * Returns a border instance for a text component.
 *
 * @return a border instance for a text component
 * @since 1.3
 */
public static Border getTextBorder() {
    if (textBorder == null) {
        textBorder = new BorderUIResource.CompoundBorderUIResource(
                                               new MetalBorders.Flush3DBorder(),
                                               new BasicBorders.MarginBorder());
    }
    return textBorder;
}
项目:openjdk-jdk10    文件:MetalBorders.java   
/**
 * Returns a border instance for a {@code JTextField}.
 *
 * @return a border instance for a {@code JTextField}
 * @since 1.3
 */
public static Border getTextFieldBorder() {
    if (textFieldBorder == null) {
        textFieldBorder = new BorderUIResource.CompoundBorderUIResource(
                                               new MetalBorders.TextFieldBorder(),
                                               new BasicBorders.MarginBorder());
    }
    return textFieldBorder;
}
项目:openjdk-jdk10    文件:MetalBorders.java   
/**
 * Returns a border instance for a {@code JToggleButton}.
 *
 * @return a border instance for a {@code JToggleButton}
 * @since 1.3
 */
public static Border getToggleButtonBorder() {
    if (toggleButtonBorder == null) {
        toggleButtonBorder = new BorderUIResource.CompoundBorderUIResource(
                                               new MetalBorders.ToggleButtonBorder(),
                                               new BasicBorders.MarginBorder());
    }
    return toggleButtonBorder;
}
项目:openjdk9    文件:MetalBorders.java   
/**
 * Returns a border instance for a {@code JButton}.
 *
 * @return a border instance for a {@code JButton}
 * @since 1.3
 */
public static Border getButtonBorder() {
    if (buttonBorder == null) {
        buttonBorder = new BorderUIResource.CompoundBorderUIResource(
                                               new MetalBorders.ButtonBorder(),
                                               new BasicBorders.MarginBorder());
    }
    return buttonBorder;
}
项目:openjdk9    文件:MetalBorders.java   
/**
 * Returns a border instance for a text component.
 *
 * @return a border instance for a text component
 * @since 1.3
 */
public static Border getTextBorder() {
    if (textBorder == null) {
        textBorder = new BorderUIResource.CompoundBorderUIResource(
                                               new MetalBorders.Flush3DBorder(),
                                               new BasicBorders.MarginBorder());
    }
    return textBorder;
}