Java 类javax.swing.plaf.BorderUIResource 实例源码

项目: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);

}
项目:orbit-image-analysis    文件:JTipOfTheDayAddon.java   
protected void addBasicDefaults(LookAndFeelAddons addon, List defaults) {
  defaults.add(JTipOfTheDay.uiClassID);
  defaults.add(BasicTipOfTheDayUI.class.getName());

  defaults.add("TipOfTheDay.font");
  defaults.add(UIManager.getFont("TextPane.font"));

  defaults.add("TipOfTheDay.tipFont");
  defaults.add(UIManager.getFont("Label.font").deriveFont(Font.BOLD, 13f));

  defaults.add("TipOfTheDay.background");
  defaults.add(new ColorUIResource(Color.white));

  defaults.add("TipOfTheDay.icon");
  defaults.add(LookAndFeel.makeIcon(BasicTipOfTheDayUI.class,
    "TipOfTheDay24.gif"));

  defaults.add("TipOfTheDay.border");
  defaults.add(new BorderUIResource(BorderFactory.createLineBorder(new Color(
    117, 117, 117))));

  addResource(defaults,
    "com.l2fprod.common.swing.plaf.basic.resources.TipOfTheDay");
}
项目:orbit-image-analysis    文件:JTipOfTheDayAddon.java   
protected void addWindowsDefaults(LookAndFeelAddons addon, List defaults) {
  super.addWindowsDefaults(addon, defaults);

  defaults.add(JTipOfTheDay.uiClassID);
  defaults.add(WindowsTipOfTheDayUI.class.getName());

  defaults.add("TipOfTheDay.background");
  defaults.add(new ColorUIResource(128, 128, 128));

  defaults.add("TipOfTheDay.font");
  defaults.add(UIManager.getFont("Label.font").deriveFont(13f));

  defaults.add("TipOfTheDay.icon");
  defaults.add(LookAndFeel.makeIcon(WindowsTipOfTheDayUI.class,
    "tipoftheday.png"));

  defaults.add("TipOfTheDay.border");
  defaults
    .add(new BorderUIResource(new WindowsTipOfTheDayUI.TipAreaBorder()));

  addResource(defaults,
    "com.l2fprod.common.swing.plaf.windows.resources.TipOfTheDay");
}
项目:orbit-image-analysis    文件:BlueishButtonBarUI.java   
protected void installDefaults() {
  Border b = bar.getBorder();
  if (b == null || b instanceof UIResource) {
    bar.setBorder(
      new BorderUIResource(
        new CompoundBorder(
          BorderFactory.createLineBorder(
            UIManager.getColor("controlDkShadow")),
          BorderFactory.createEmptyBorder(1, 1, 1, 1))));
  }

  Color color = bar.getBackground();
  if (color == null || color instanceof ColorUIResource) {
    bar.setOpaque(true);
    bar.setBackground(new ColorUIResource(Color.white));
  }
}
项目:orbit-image-analysis    文件:IconPackagerButtonBarUI.java   
protected void installDefaults() {
  Border b = bar.getBorder();
  if (b == null || b instanceof UIResource) {
    bar.setBorder(
      new BorderUIResource(
        new CompoundBorder(
          BorderFactory.createEtchedBorder(),
          BorderFactory.createEmptyBorder(2, 2, 2, 2))));
  }

  if (bar.getBackground() == null
    || bar.getBackground() instanceof UIResource) {
    bar.setBackground(new ColorUIResource(128, 128, 128));
    bar.setOpaque(true);
  }
}
项目: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);


}
项目:iSeleda    文件:CategoryAddon.java   
@Override
protected void addBasicDefaults(LookAndFeelAddons addon, DefaultsList defaults) {
    super.addBasicDefaults(addon, defaults);

    Font font = UIManagerExt.getSafeFont("Label.font", new Font("Dialog", Font.PLAIN, 12));
    font = font.deriveFont(Font.BOLD, 13f);

    defaults.add(JXCategory.uiClassID, BasicCategoryUI.class.getName());
    defaults.add("Category.font", UIManagerExt.getSafeFont("TextPane.font",
              new FontUIResource("Serif", Font.PLAIN, 12)));
    defaults.add("Category.tipFont", new FontUIResource(font));
    defaults.add("Category.background", new ColorUIResource(Color.WHITE));
    defaults.add("Category.icon",
            LookAndFeel.makeIcon(BasicCategoryUI.class, "resources/dictionary_categories.png"));
    defaults.add("Category.border", new BorderUIResource(
            BorderFactory.createLineBorder(new Color(117, 117, 117))));

  UIManagerExt.addResourceBundle(
          "org.jdesktop.swingx.plaf.basic.resources.Category");
}
项目:iSeleda    文件:CategoryAddon.java   
/**
 * {@inheritDoc}
 */
@Override
protected void addWindowsDefaults(LookAndFeelAddons addon, DefaultsList defaults) {
  super.addWindowsDefaults(addon, defaults);

  Font font = UIManagerExt.getSafeFont("Label.font",
          new Font("Dialog", Font.PLAIN, 12));
  font = font.deriveFont(13f);

  defaults.add(JXCategory.uiClassID, WindowsTipOfTheDayUI.class.getName());
  defaults.add("Category.background", new ColorUIResource(Color.GRAY));
  defaults.add("Category.font", new FontUIResource(font));
  defaults.add("Category.icon",
          LookAndFeel.makeIcon(WindowsTipOfTheDayUI.class, "resources/tipoftheday.png"));
  defaults.add("Category.border" ,new BorderUIResource(new WindowsTipOfTheDayUI.TipAreaBorder()));

  UIManagerExt.addResourceBundle(
      "org.jdesktop.swingx.plaf.windows.resources.TipOfTheDay");
}
项目:iSeleda    文件:TipOfTheDayAddon.java   
@Override
protected void addBasicDefaults(LookAndFeelAddons addon, DefaultsList defaults) {
    super.addBasicDefaults(addon, defaults);

    Font font = UIManagerExt.getSafeFont("Label.font", new Font("Dialog", Font.PLAIN, 12));
    font = font.deriveFont(Font.BOLD, 13f);

    defaults.add(JXTipOfTheDay.uiClassID, BasicTipOfTheDayUI.class.getName());
    defaults.add("TipOfTheDay.font", UIManagerExt.getSafeFont("TextPane.font",
              new FontUIResource("Serif", Font.PLAIN, 12)));
    defaults.add("TipOfTheDay.tipFont", new FontUIResource(font));
    defaults.add("TipOfTheDay.background", new ColorUIResource(Color.WHITE));
    defaults.add("TipOfTheDay.icon",
            LookAndFeel.makeIcon(BasicTipOfTheDayUI.class, "resources/TipOfTheDay24.gif"));
    defaults.add("TipOfTheDay.border", new BorderUIResource(
            BorderFactory.createLineBorder(new Color(117, 117, 117))));

  UIManagerExt.addResourceBundle(
          "org.jdesktop.swingx.plaf.basic.resources.TipOfTheDay");
}
项目:iSeleda    文件:TipOfTheDayAddon.java   
/**
 * {@inheritDoc}
 */
@Override
protected void addWindowsDefaults(LookAndFeelAddons addon, DefaultsList defaults) {
  super.addWindowsDefaults(addon, defaults);

  Font font = UIManagerExt.getSafeFont("Label.font",
          new Font("Dialog", Font.PLAIN, 12));
  font = font.deriveFont(13f);

  defaults.add(JXTipOfTheDay.uiClassID, WindowsTipOfTheDayUI.class.getName());
  defaults.add("TipOfTheDay.background", new ColorUIResource(Color.GRAY));
  defaults.add("TipOfTheDay.font", new FontUIResource(font));
  defaults.add("TipOfTheDay.icon",
          LookAndFeel.makeIcon(WindowsTipOfTheDayUI.class, "resources/tipoftheday.png"));
  defaults.add("TipOfTheDay.border" ,new BorderUIResource(new WindowsTipOfTheDayUI.TipAreaBorder()));

  UIManagerExt.addResourceBundle(
      "org.jdesktop.swingx.plaf.windows.resources.TipOfTheDay");
}
项目:javify    文件:BasicBorders.java   
/**
 * Returns a border that is composed of a raised bevel border and a
 * one-pixel thick line border.
 *
 * <p><img src="doc-files/BasicBorders-2.png" width="300" height="200"
 * alt="[A screen shot of a border returned by this method]" />
 *
 * <p>The colors of the border are retrieved from the
 * <code>UIDefaults</code> of the currently active look and feel
 * using the keys <code>&#x201c;InternalFrame.borderShadow&#x201d;</code>,
 * <code>&#x201c;InternalFrame.borderDarkShadow&#x201d;</code>,
 * <code>&#x201c;InternalFrame.borderLight&#x201d;</code>,
 * <code>&#x201c;InternalFrame.borderHighlight&#x201d;</code>, and
 * (for the inner one-pixel thick line)
 * <code>&#x201c;InternalFrame.borderColor&#x201d;</code>.
 */
public static Border getInternalFrameBorder()
{
  Color shadow, darkShadow, highlight, lightHighlight, line;

  /* See comment in methods above for why this border is not shared. */
  shadow = UIManager.getColor("InternalFrame.borderShadow");
  darkShadow = UIManager.getColor("InternalFrame.borderDarkShadow");
  highlight = UIManager.getColor("InternalFrame.borderLight");
  lightHighlight = UIManager.getColor("InternalFrame.borderHighlight");
  line = UIManager.getColor("InternalFrame.borderColor");

  return new BorderUIResource.CompoundBorderUIResource(
    /* outer border */
    new BorderUIResource.BevelBorderUIResource(
      BevelBorder.RAISED,
      (highlight != null) ? highlight : Color.lightGray,
      (lightHighlight != null) ? lightHighlight : Color.white,
      (darkShadow != null) ? darkShadow : Color.black,
      (shadow != null) ? shadow : Color.gray),

    /* inner border */
    new BorderUIResource.LineBorderUIResource(
      (line != null) ? line : Color.lightGray));
}
项目:beautyeye    文件:__UI__.java   
/**
     * Ui impl.
     */
    public static void uiImpl()
    {
        //>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> 视口的相关ui值设定
        UIManager.put("Viewport.background",new ColorUIResource(BeautyEyeLNFHelper.commonBackgroundColor));
        UIManager.put("Viewport.foreground",new ColorUIResource(BeautyEyeLNFHelper.commonForegroundColor));

        //>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> JScrollPane的相关ui值设定
        UIManager.put("ScrollPane.border",new BorderUIResource(new org.jb2011.lnf.beautyeye.ch4_scroll.ScrollPaneBorder()));//BorderFactory.createEmptyBorder(0, 0, 0, 0)));
        // 不能设置alpha通道小于255的透明颜色,否则会出现无法重paint的问题
        UIManager.put("ScrollPane.background",new ColorUIResource(Color.white));//cc));
        UIManager.put("ScrollPane.foreground",new ColorUIResource(BeautyEyeLNFHelper.commonForegroundColor));
        UIManager.put("ScrollPaneUI",org.jb2011.lnf.beautyeye.ch4_scroll.BEScrollPaneUI.class.getName());

        //>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> JScrollPane的滚动条相关ui值设定
        UIManager.put("ScrollBar.thumb",new ColorUIResource(BeautyEyeLNFHelper.commonBackgroundColor));
        UIManager.put("ScrollBar.foreground",new ColorUIResource(BeautyEyeLNFHelper.commonForegroundColor));
        UIManager.put("ScrollBar.background",new ColorUIResource(new Color(250,250,250)));
        UIManager.put("ScrollBar.trackForeground",new ColorUIResource(new Color(250,250,250)));
        UIManager.put("scrollbar",new ColorUIResource(new Color(250,250,250)));
        UIManager.put("ScrollBarUI",org.jb2011.lnf.beautyeye.ch4_scroll.BEScrollBarUI.class.getName());

//      /* ~~注:这个属性是jb2011自已加的,目的是控制滚动面板及其Viewport的透明性 */
//      //设置成透明是为了让BE LNF中它的N9图实现的border能展现出图片背景来,好看一点
//      UIManager.put("ScrollPane.opaque", false);
    }
项目:beautyeye    文件:BeautyEyeLookAndFeelWin.java   
/**
     * 因Windos LNF会在Vista及更新的操作系统(如win7)上对Windows LNF作附加设置,
     * 以保证与Vista及更新平台的外观的一致性(如让菜单菜项高度更大等),请参见
     * WindowsLookAndFeel.initVistaComponentDefaults(..)。
     * <p>
     * BeautyEye中因需要保证审美一致性(在所有win平台上)而不需要这些额外的设置,
     * 但因该方法是private私有方法,无法进行覆盖屏蔽,所以只能在此单列方法,以便针对Vista
     * 及更新的平台进行补救性重新设置以便与BeautyEye LNF的审核进行适配.
     * 
     * @see WindowsLookAndFeel.initVistaComponentDefaults(..)
     */
    protected void initForVista()
    {
        if(WinUtils.isOnVista())
        {
            UIManager.put("CheckBoxMenuItem.margin",new InsetsUIResource(0,0,0,0));
            UIManager.put("RadioButtonMenuItem.margin",new InsetsUIResource(0,0,0,0));
            UIManager.put("Menu.margin",new InsetsUIResource(0,0,0,0));//windows lnf xp中默认是2,2,2,2
            UIManager.put("MenuItem.margin",new InsetsUIResource(0,0,0,0));//windows lnf中  xp默认是2,2,2,2

            UIManager.put("Menu.border",new BorderUIResource(BorderFactory.createEmptyBorder(1,3,2,3)));//javax.swing.plaf.basic.BasicBorders.MarginBorder;
            UIManager.put("MenuItem.border",new BorderUIResource(BorderFactory.createEmptyBorder(1,0,2,0)));//javax.swing.plaf.basic.BasicBorders.MarginBorder;
            UIManager.put("CheckBoxMenuItem.border",new BorderUIResource(BorderFactory.createEmptyBorder(4,2,4,2)));//javax.swing.plaf.basic.BasicBorders.MarginBorder;
            UIManager.put("RadioButtonMenuItem.border",new BorderUIResource(BorderFactory.createEmptyBorder(4,0,4,0)));//javax.swing.plaf.basic.BasicBorders.MarginBorder;      
//          UIManager.put("PopupMenu.border",new BorderUIResource(BorderFactory.createEmptyBorder(20,10,20,10)));// 

            UIManager.put("CheckBoxMenuItem.checkIcon"
                    ,new org.jb2011.lnf.beautyeye.ch9_menu.BECheckBoxMenuItemUI.CheckBoxMenuItemIcon().setUsedForVista(true));//javax.swing.plaf.basic.BasicIconFactory.CheckBoxMenuItemIcon);
            UIManager.put("RadioButtonMenuItem.checkIcon"
                    ,new org.jb2011.lnf.beautyeye.ch9_menu.BERadioButtonMenuItemUI.RadioButtonMenuItemIcon().setUsedForVista(true));
        }
    }
项目:beautyeye    文件:__UI__.java   
/**
 * Ui impl.
 */
public static void uiImpl()
{
    //通过此border可以调整整个列表的上下左右的空白
    UIManager.put("List.border",new BorderUIResource(BorderFactory.createEmptyBorder(0,0,0,0)));
    //本属性将决定已被选中的列表单元显示文本的上下左右空白哦
    UIManager.put("List.focusCellHighlightBorder",new BorderUIResource(BorderFactory.createEmptyBorder(1, 8, 5, 3)));//new BorderUIResource(new BEDashedBorder(Color.red,true,false,true,false)));
    /* ~~注:这个属性是jb2011为了更好的ui效果自已加的属性 */
    UIManager.put("List.focusSelectedCellHighlightBorderColor", new ColorUIResource(new Color(252,87,84)));//220,0,0,255)));//Color.red
    /* ~~注:这个属性是jb2011为了更好的ui效果自已加的属性,目的是使List.focusSelectedCellHighlightBorderColor有点立体效果哦 */
    UIManager.put("List.focusSelectedCellHighlightBorderHighlightColor"
            , new ColorUIResource(new Color(255,255,255,70)));//注意:这个颜色是半透明的哦
    //列表单元获得焦点时的边框(windows主题下是一个距形虚线框)——之前老也想不通的与左边隔一个像素的白边问题就是没设置它造成的
    UIManager.put("List.focusSelectedCellHighlightBorder"
            ,new BorderUIResource(new org.jb2011.lnf.beautyeye.ch19_list.__UI__.FocusSelectedCellHighlightBorder()));
    //将决定正状态下的列表单元显示文本的上下左右空白哦
    UIManager.put("List.cellNoFocusBorder",new BorderUIResource(BorderFactory.createEmptyBorder(1, 8, 5, 3)));

    UIManager.put("List.background",new ColorUIResource(Color.white));
    UIManager.put("List.foreground",new ColorUIResource(BeautyEyeLNFHelper.commonForegroundColor));
    UIManager.put("List.selectionForeground",Color.white);//fgColor);
    UIManager.put("List.selectionBackground",new ColorUIResource(BeautyEyeLNFHelper.commonSelectionBackgroundColor));

    UIManager.put("List.cellRenderer", new MyDefaultListCellRenderer.UIResource());
    UIManager.put("ListUI", org.jb2011.lnf.beautyeye.ch19_list.BEListUI.class.getName());
}
项目:beautyeye    文件:__UI__.java   
/**
 * Ui impl.
 */
public static void uiImpl()
{
    UIManager.put("SplitPane.shadow",new ColorUIResource(new Color(200,200,200)));// 本属性在BE LNF中暂时没用到
    //JSplitePane的默认背景色
    UIManager.put("SplitPane.background",new ColorUIResource(new Color(250,250,250)));//238,241,243)));
    //JSplitePane的边框实现
    UIManager.put("SplitPane.border",new BorderUIResource(new org.jb2011.lnf.beautyeye.ch4_scroll.ScrollPaneBorder()));//BorderFactory.createEmptyBorder(0, 0, 0, 0)));
    UIManager.put("SplitPaneUI",org.jb2011.lnf.beautyeye.ch17_split.BESplitPaneUI.class.getName());

    //分隔条拖动时的颜色(说明:此值可以设置alpha通道以便达到半透明效果哦)
    UIManager.put("SplitPaneDivider.draggingColor",new ColorUIResource(new Color(0,0,0,50)));
    //触碰按钮的默认大小
    UIManager.put("SplitPane.oneTouchButtonSize",4);//drfault is 5
    //分隔条的默认大小
    UIManager.put("SplitPane.dividerSize",7);//drfault is 5
    //分隔条的边框实现
    UIManager.put("SplitPaneDivider.border",new SplitPaneDividerBorder());
}
项目:jvm-stm    文件:BasicBorders.java   
/**
 * Returns a border that is composed of a raised bevel border and a
 * one-pixel thick line border.
 *
 * <p><img src="doc-files/BasicBorders-2.png" width="300" height="200"
 * alt="[A screen shot of a border returned by this method]" />
 *
 * <p>The colors of the border are retrieved from the
 * <code>UIDefaults</code> of the currently active look and feel
 * using the keys <code>&#x201c;InternalFrame.borderShadow&#x201d;</code>,
 * <code>&#x201c;InternalFrame.borderDarkShadow&#x201d;</code>,
 * <code>&#x201c;InternalFrame.borderLight&#x201d;</code>,
 * <code>&#x201c;InternalFrame.borderHighlight&#x201d;</code>, and
 * (for the inner one-pixel thick line)
 * <code>&#x201c;InternalFrame.borderColor&#x201d;</code>.
 */
public static Border getInternalFrameBorder()
{
  Color shadow, darkShadow, highlight, lightHighlight, line;

  /* See comment in methods above for why this border is not shared. */
  shadow = UIManager.getColor("InternalFrame.borderShadow");
  darkShadow = UIManager.getColor("InternalFrame.borderDarkShadow");
  highlight = UIManager.getColor("InternalFrame.borderLight");
  lightHighlight = UIManager.getColor("InternalFrame.borderHighlight");
  line = UIManager.getColor("InternalFrame.borderColor");

  return new BorderUIResource.CompoundBorderUIResource(
    /* outer border */
    new BorderUIResource.BevelBorderUIResource(
      BevelBorder.RAISED,
      (highlight != null) ? highlight : Color.lightGray,
      (lightHighlight != null) ? lightHighlight : Color.white,
      (darkShadow != null) ? darkShadow : Color.black,
      (shadow != null) ? shadow : Color.gray),

    /* inner border */
    new BorderUIResource.LineBorderUIResource(
      (line != null) ? line : Color.lightGray));
}
项目:calibre2opds    文件:JTipOfTheDayAddon.java   
protected void addBasicDefaults(LookAndFeelAddons addon, List defaults) {
  defaults.add(JTipOfTheDay.uiClassID);
  defaults.add(BasicTipOfTheDayUI.class.getName());

  defaults.add("TipOfTheDay.font");
  defaults.add(UIManager.getFont("TextPane.font"));

  defaults.add("TipOfTheDay.tipFont");
  defaults.add(UIManager.getFont("Label.font").deriveFont(Font.BOLD, 13f));

  defaults.add("TipOfTheDay.background");
  defaults.add(new ColorUIResource(Color.white));

  defaults.add("TipOfTheDay.icon");
  defaults.add(LookAndFeel.makeIcon(BasicTipOfTheDayUI.class, "TipOfTheDay24.gif"));

  defaults.add("TipOfTheDay.border");
  defaults.add(new BorderUIResource(BorderFactory.createLineBorder(new Color(117, 117, 117))));

  addResource(defaults, "com.l2fprod.common.swing.plaf.basic.resources.TipOfTheDay");
}
项目:calibre2opds    文件:JTipOfTheDayAddon.java   
protected void addWindowsDefaults(LookAndFeelAddons addon, List defaults) {
  super.addWindowsDefaults(addon, defaults);

  defaults.add(JTipOfTheDay.uiClassID);
  defaults.add(WindowsTipOfTheDayUI.class.getName());

  defaults.add("TipOfTheDay.background");
  defaults.add(new ColorUIResource(128, 128, 128));

  defaults.add("TipOfTheDay.font");
  defaults.add(UIManager.getFont("Label.font").deriveFont(13f));

  defaults.add("TipOfTheDay.icon");
  defaults.add(LookAndFeel.makeIcon(WindowsTipOfTheDayUI.class, "tipoftheday.png"));

  defaults.add("TipOfTheDay.border");
  defaults.add(new BorderUIResource(new WindowsTipOfTheDayUI.TipAreaBorder()));

  addResource(defaults, "com.l2fprod.common.swing.plaf.windows.resources.TipOfTheDay");
}
项目:swingx    文件:TableHeaderAddon.java   
@Override
    protected void addMetalDefaults(LookAndFeelAddons addon,
            DefaultsList defaults) {
        super.addMetalDefaults(addon, defaults);
        String key = "TableHeader.cellBorder";
        Border border = UIManager.getBorder(key);
        if (border instanceof MetalBorders.TableHeaderBorder) {
            border = new BorderUIResource.CompoundBorderUIResource(border, 
                    BorderFactory.createEmptyBorder());
            // PENDING JW: this is fishy ... adding to lookAndFeelDefaults is taken
            UIManager.getLookAndFeelDefaults().put(key, border);
            // adding to defaults is not
//            defaults.add(key, border);
        }

    }
项目:swingx    文件:BasicTitledPanelUI.java   
protected void installComponents(JXTitledPanel titledPanel) {
    topPanel.add(caption, new GridBagConstraints(1, 0, 1, 1, 1.0, 1.0, GridBagConstraints.NORTHWEST, 
            GridBagConstraints.HORIZONTAL, getCaptionInsets(), 0, 0));
    if (titledPanel.getClientProperty(JXTitledPanel.RIGHT_DECORATION) instanceof JComponent) {
        setRightDecoration((JComponent) titledPanel.getClientProperty(JXTitledPanel.RIGHT_DECORATION));
    }
    if (titledPanel.getClientProperty(JXTitledPanel.LEFT_DECORATION) instanceof JComponent) {
        setLeftDecoration((JComponent) titledPanel.getClientProperty(JXTitledPanel.LEFT_DECORATION));
    }
    // swingx#500
    if (!(titledPanel.getLayout() instanceof BorderLayout)){
        titledPanel.setLayout(new BorderLayout());
    }
    titledPanel.add(topPanel, BorderLayout.NORTH);
    // fix #1063-swingx: must respect custom border
    if (SwingXUtilities.isUIInstallable(titledPanel.getBorder())) {
        // use uiresource border 
        // old was: BorderFactory.createRaisedBevelBorder());
        titledPanel.setBorder(BorderUIResource.getRaisedBevelBorderUIResource());
    }
}
项目:swingx    文件:TipOfTheDayAddon.java   
@Override
protected void addBasicDefaults(LookAndFeelAddons addon, DefaultsList defaults) {
    super.addBasicDefaults(addon, defaults);

    Font font = UIManagerExt.getSafeFont("Label.font", new Font("Dialog", Font.PLAIN, 12));
    font = font.deriveFont(Font.BOLD, 13f);

    defaults.add(JXTipOfTheDay.uiClassID, BasicTipOfTheDayUI.class.getName());
    defaults.add("TipOfTheDay.font", UIManagerExt.getSafeFont("TextPane.font",
              new FontUIResource("Serif", Font.PLAIN, 12)));
    defaults.add("TipOfTheDay.tipFont", new FontUIResource(font));
    defaults.add("TipOfTheDay.background", new ColorUIResource(Color.WHITE));
    defaults.add("TipOfTheDay.icon",
            LookAndFeel.makeIcon(BasicTipOfTheDayUI.class, "resources/TipOfTheDay24.gif"));
    defaults.add("TipOfTheDay.border", new BorderUIResource(
            BorderFactory.createLineBorder(new Color(117, 117, 117))));

  UIManagerExt.addResourceBundle(
          "org.jdesktop.swingx.plaf.basic.resources.TipOfTheDay");
}
项目:swingx    文件:TipOfTheDayAddon.java   
/**
 * {@inheritDoc}
 */
@Override
protected void addWindowsDefaults(LookAndFeelAddons addon, DefaultsList defaults) {
  super.addWindowsDefaults(addon, defaults);

  Font font = UIManagerExt.getSafeFont("Label.font",
          new Font("Dialog", Font.PLAIN, 12));
  font = font.deriveFont(13f);

  defaults.add(JXTipOfTheDay.uiClassID, WindowsTipOfTheDayUI.class.getName());
  defaults.add("TipOfTheDay.background", new ColorUIResource(Color.GRAY));
  defaults.add("TipOfTheDay.font", new FontUIResource(font));
  defaults.add("TipOfTheDay.icon",
          LookAndFeel.makeIcon(WindowsTipOfTheDayUI.class, "resources/tipoftheday.png"));
  defaults.add("TipOfTheDay.border" ,new BorderUIResource(new WindowsTipOfTheDayUI.TipAreaBorder()));

  UIManagerExt.addResourceBundle(
      "org.jdesktop.swingx.plaf.windows.resources.TipOfTheDay");
}
项目:beast-mcmc    文件:ClockModelsPanel.java   
public ClockModelsPanel(BeautiFrame parent) {

        super();

        this.frame = parent;

        modelTableModel = new ModelTableModel();
        modelTable = new JTable(modelTableModel);

        modelTable.getTableHeader().setReorderingAllowed(false);
        modelTable.getTableHeader().setResizingAllowed(false);
//        modelTable.getTableHeader().setDefaultRenderer(
//                new HeaderRenderer(SwingConstants.LEFT, new Insets(0, 4, 0, 4)));

        final TableColumnModel model = modelTable.getColumnModel();
        final TableColumn tableColumn0 = model.getColumn(0);
        tableColumn0.setCellRenderer(new ModelsTableCellRenderer(SwingConstants.LEFT, new Insets(0, 4, 0, 4)));

        TableEditorStopper.ensureEditingStopWhenTableLosesFocus(modelTable);

        modelTable.getSelectionModel().setSelectionMode(ListSelectionModel.MULTIPLE_INTERVAL_SELECTION);
        modelTable.getSelectionModel().addListSelectionListener(new ListSelectionListener() {
            public void valueChanged(ListSelectionEvent evt) {
                selectionChanged();
            }
        });

        JScrollPane scrollPane = new JScrollPane(modelTable,
                JScrollPane.VERTICAL_SCROLLBAR_ALWAYS, JScrollPane.HORIZONTAL_SCROLLBAR_AS_NEEDED);
        scrollPane.setOpaque(false);

//        ActionPanel actionPanel1 = new ActionPanel(false);
//        actionPanel1.setAddAction(addModelAction);
//        actionPanel1.setRemoveAction(removeModelAction);

        JPanel controlPanel1 = new JPanel(new FlowLayout(FlowLayout.LEFT));
        controlPanel1.setOpaque(false);
//        controlPanel1.add(actionPanel1);

        JPanel panel = new JPanel(new BorderLayout(0, 0));
        panel.setOpaque(false);
        panel.add(scrollPane, BorderLayout.CENTER);
//        panel.add(controlPanel1, BorderLayout.SOUTH);
        panel.setMinimumSize(new Dimension(MINIMUM_TABLE_WIDTH, 0));

        JToolBar toolBar = new JToolBar();
        toolBar.setFloatable(false);
        toolBar.setOpaque(false);
        toolBar.setBorder(BorderFactory.createEmptyBorder());

        toolBar.setLayout(new FlowLayout(java.awt.FlowLayout.LEFT, 0, 0));
        JButton button = new JButton(cloneModelsAction);
        PanelUtils.setupComponent(button);
        toolBar.add(button);
        panel.add(toolBar, BorderLayout.SOUTH);

        modelPanelParent = new JPanel(new FlowLayout(FlowLayout.CENTER));
        modelPanelParent.setOpaque(false);
        modelBorder = new TitledBorder(null, "Clock Model", TitledBorder.DEFAULT_JUSTIFICATION, TitledBorder.ABOVE_TOP);
        modelPanelParent.setBorder(modelBorder);

        setCurrentModel(null);

        JScrollPane scrollPane2 = new JScrollPane(modelPanelParent, JScrollPane.VERTICAL_SCROLLBAR_AS_NEEDED, JScrollPane.HORIZONTAL_SCROLLBAR_NEVER);
        scrollPane2.setOpaque(false);
        scrollPane2.setBorder(null);
        scrollPane2.getViewport().setOpaque(false);

        JSplitPane splitPane = new JSplitPane(JSplitPane.HORIZONTAL_SPLIT, panel, scrollPane2);
        splitPane.setDividerLocation(MINIMUM_TABLE_WIDTH);
        splitPane.setContinuousLayout(true);
        splitPane.setBorder(BorderFactory.createEmptyBorder());
        splitPane.setOpaque(false);

        setOpaque(false);
        setBorder(new BorderUIResource.EmptyBorderUIResource(new Insets(12, 12, 12, 12)));
        setLayout(new BorderLayout(0, 0));
        add(splitPane, BorderLayout.CENTER);
    }
项目:beast-mcmc    文件:MapperFrame.java   
public void initializeComponents() {

        strainsPanel = new StrainsPanel(this, document);
        measurementsPanel = new MeasurementsPanel(this, document);
        locationsPanel = new LocationsPanel(this, document);
//        analysisPanel = new AnalysisPanel(this, trees.get(0));

        tabbedPane.addTab("Measurements", measurementsPanel);
        tabbedPane.addTab("Strains", strainsPanel);
        tabbedPane.addTab("Locations", locationsPanel);
//        tabbedPane.addTab("Analysis", analysisPanel);

        JPanel panel = new JPanel(new BorderLayout(6, 6));
        panel.setBorder(new BorderUIResource.EmptyBorderUIResource(new Insets(12, 12, 12, 12)));
        panel.add(tabbedPane, BorderLayout.CENTER);

        panel.add(statusLabel, BorderLayout.SOUTH);

        getContentPane().setLayout(new BorderLayout(0, 0));
        getContentPane().add(panel, BorderLayout.CENTER);

        setSize(new Dimension(1024, 768));

        setStatusMessage();
    }
项目:metasfresh    文件:SwingEventNotifierUI.java   
public static final Object[] getUIDefaults()
{
    return new Object[] {
            //
            // Notifications settings
            NOTIFICATIONS_MaxDisplayed, NOTIFICATIONS_MaxDisplayed_Default
            , NOTIFICATIONS_AutoFadeAwayTimeMillis, NOTIFICATIONS_AutoFadeAwayTimeMillis_Default
            , NOTIFICATIONS_BottomGap, NOTIFICATIONS_BottomGap_Default

            //
            // Item settings
            , ITEM_BackgroundColor, AdempierePLAF.createActiveValueProxy(AdempiereLookAndFeel.MANDATORY_BG_KEY, Color.WHITE) // same as mandatory background color
            , ITEM_Border, new BorderUIResource(BorderFactory.createLineBorder(Color.GRAY, 1))
            , ITEM_SummaryText_Font, new FontUIResource("Serif", Font.BOLD, 12)
            , ITEM_DetailText_Font, new FontUIResource("Serif", Font.PLAIN, 12)
            , ITEM_TextColor, null
            , ITEM_MinimumSize, new DimensionUIResource(230, 45)
            , ITEM_MaximumSize, null
            //
            // Button settings (i.e. the close button)
            , ITEM_Button_Insets, new InsetsUIResource(1, 4, 1, 4)
            , ITEM_Button_Size, 20
            , ITEM_Button_Border, new BorderUIResource(BorderFactory.createEmptyBorder())
    };
}
项目:metasfresh    文件:VEditorUI.java   
public static Object[] getUIDefaults()
{
    return new Object[] {
            //
            // Label (and also editor's labels) border
            // NOTE: we add a small space on top in order to have the label text aligned on same same base line as the text from the right text field.
            AdempiereLabelUI.KEY_Border, new BorderUIResource(BorderFactory.createEmptyBorder(3, 0, 0, 0))

            //
            // Editor button align (i.e. that small button of an editor field which is opening the Info Window)
            , VEditorDialogButtonAlign.DEFAULT_EditorUI, VEditorDialogButtonAlign.Right
            // , VEditorDialogButtonAlign.createUIKey("VNumber"), VEditorDialogButtonAlign.Hide
            // , VEditorDialogButtonAlign.createUIKey("VDate"), VEditorDialogButtonAlign.Hide
            // , VEditorDialogButtonAlign.createUIKey("VURL"), VEditorDialogButtonAlign.Right // i.e. the online button

            //
            // Editor height
            , KEY_VEditor_Height, DEFAULT_VEditor_Height

            //
            // VButton editor
            , "VButton.Action.textColor", AdempierePLAF.createActiveValueProxy("black", Color.BLACK)
            , "VButton.Posted.textColor", new ColorUIResource(Color.MAGENTA)
    };
}
项目: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);


}
项目:aibench-project    文件:BasicHyperlinkUI.java   
@Override
protected void installDefaults(AbstractButton b) {
    super.installDefaults(b);

    b.setOpaque(false);
    b.setBorderPainted(false);
    b.setRolloverEnabled(true);
    if (SwingXUtilities.isUIInstallable(b.getBorder())) {
        b.setBorder(new BorderUIResource(BorderFactory.createEmptyBorder(0, 1, 0, 0)));
    }

    dashedRectGapX = UIManager.getInt("ButtonUI.dashedRectGapX");
    dashedRectGapY = UIManager.getInt("ButtonUI.dashedRectGapY");
    dashedRectGapWidth = UIManager.getInt("ButtonUI.dashedRectGapWidth");
    dashedRectGapHeight = UIManager.getInt("ButtonUI.dashedRectGapHeight");
    focusColor = UIManager.getColor("ButtonUI.focus");

    b.setHorizontalAlignment(AbstractButton.LEADING);
}
项目:aibench-project    文件:BasicTitledPanelUI.java   
protected void installComponents(JXTitledPanel titledPanel) {
    topPanel.add(caption, new GridBagConstraints(1, 0, 1, 1, 1.0, 1.0, GridBagConstraints.NORTHWEST, 
            GridBagConstraints.HORIZONTAL, getCaptionInsets(), 0, 0));
    if (titledPanel.getClientProperty(JXTitledPanel.RIGHT_DECORATION) instanceof JComponent) {
        setRightDecoration((JComponent) titledPanel.getClientProperty(JXTitledPanel.RIGHT_DECORATION));
    }
    if (titledPanel.getClientProperty(JXTitledPanel.LEFT_DECORATION) instanceof JComponent) {
        setLeftDecoration((JComponent) titledPanel.getClientProperty(JXTitledPanel.LEFT_DECORATION));
    }
    // swingx#500
    if (!(titledPanel.getLayout() instanceof BorderLayout)){
        titledPanel.setLayout(new BorderLayout());
    }
    titledPanel.add(topPanel, BorderLayout.NORTH);
    // fix #1063-swingx: must respect custom border
    if (SwingXUtilities.isUIInstallable(titledPanel.getBorder())) {
        // use uiresource border 
        // old was: BorderFactory.createRaisedBevelBorder());
        titledPanel.setBorder(BorderUIResource.getRaisedBevelBorderUIResource());
    }
}
项目:aibench-project    文件:TipOfTheDayAddon.java   
@Override
protected void addBasicDefaults(LookAndFeelAddons addon, DefaultsList defaults) {
    super.addBasicDefaults(addon, defaults);

    Font font = UIManagerExt.getSafeFont("Label.font", new Font("Dialog", Font.PLAIN, 12));
    font = font.deriveFont(Font.BOLD, 13f);

    defaults.add(JXTipOfTheDay.uiClassID, BasicTipOfTheDayUI.class.getName());
    defaults.add("TipOfTheDay.font", UIManagerExt.getSafeFont("TextPane.font",
              new FontUIResource("Serif", Font.PLAIN, 12)));
    defaults.add("TipOfTheDay.tipFont", new FontUIResource(font));
    defaults.add("TipOfTheDay.background", new ColorUIResource(Color.WHITE));
    defaults.add("TipOfTheDay.icon",
            LookAndFeel.makeIcon(BasicTipOfTheDayUI.class, "resources/TipOfTheDay24.gif"));
    defaults.add("TipOfTheDay.border", new BorderUIResource(
            BorderFactory.createLineBorder(new Color(117, 117, 117))));

  UIManagerExt.addResourceBundle(
          "org.jdesktop.swingx.plaf.basic.resources.TipOfTheDay");
}
项目:aibench-project    文件:TipOfTheDayAddon.java   
/**
 * {@inheritDoc}
 */
@Override
protected void addWindowsDefaults(LookAndFeelAddons addon, DefaultsList defaults) {
  super.addWindowsDefaults(addon, defaults);

  Font font = UIManagerExt.getSafeFont("Label.font",
          new Font("Dialog", Font.PLAIN, 12));
  font = font.deriveFont(13f);

  defaults.add(JXTipOfTheDay.uiClassID, WindowsTipOfTheDayUI.class.getName());
  defaults.add("TipOfTheDay.background", new ColorUIResource(Color.GRAY));
  defaults.add("TipOfTheDay.font", new FontUIResource(font));
  defaults.add("TipOfTheDay.icon",
          LookAndFeel.makeIcon(WindowsTipOfTheDayUI.class, "resources/tipoftheday.png"));
  defaults.add("TipOfTheDay.border" ,new BorderUIResource(new WindowsTipOfTheDayUI.TipAreaBorder()));

  UIManagerExt.addResourceBundle(
      "org.jdesktop.swingx.plaf.windows.resources.TipOfTheDay");
}
项目: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);
}
项目:ccu-historian    文件:UIUtilities.java   
/**
 * Set up the user interface.
 */
public static void setupUI() {
    try {
        final String classname = UIManager.getSystemLookAndFeelClassName();
        UIManager.setLookAndFeel(classname);
    }
    catch (Exception e) { 
        e.printStackTrace();
    }

    final UIDefaults defaults = UIManager.getDefaults();

    defaults.put(
        "PopupMenu.border", 
        new BorderUIResource.EtchedBorderUIResource(
            EtchedBorder.RAISED, defaults.getColor("controlShadow"), 
            defaults.getColor("controlLtHighlight")
        )
    );

    final MatteBorder matteborder = new MatteBorder(1, 1, 1, 1, Color.black);
    final EmptyBorder emptyborder = new MatteBorder(2, 2, 2, 2, defaults.getColor("control"));
    final BorderUIResource.CompoundBorderUIResource compBorder
        = new BorderUIResource.CompoundBorderUIResource(emptyborder, matteborder);
    final BorderUIResource.EmptyBorderUIResource emptyBorderUI
        = new BorderUIResource.EmptyBorderUIResource(0, 0, 0, 0);
    defaults.put("SplitPane.border", emptyBorderUI);
    defaults.put("Table.scrollPaneBorder", emptyBorderUI);
    defaults.put("ComboBox.border", compBorder);
    defaults.put("TextField.border", compBorder);
    defaults.put("TextArea.border", compBorder);
    defaults.put("CheckBox.border", compBorder);
    defaults.put("ScrollPane.border", emptyBorderUI);

}
项目:javify    文件:MetalBorders.java   
/**
 * Returns a border for Swing buttons in the Metal Look &amp; Feel.
 *
 * @return a border for Swing buttons in the Metal Look &amp; Feel
 */
public static Border getButtonBorder()
{
  if (buttonBorder == null)
    {
      Border outer = new ButtonBorder();
      Border inner = getMarginBorder();
      buttonBorder = new BorderUIResource.CompoundBorderUIResource(outer,
          inner);
    }
  return buttonBorder;
}