MotifBorders.ButtonBorder 未知默认参数的覆盖方法

Overrriding method of MotifBorders.ButtonBorder unkow default parameters

我使用这个代码:

UIManager.setLookAndFeel("com.sun.java.swing.plaf.motif.MotifLookAndFeel");

我想覆盖 MotifBorders (another source of MotifBorders[=22 的 satic inner class ButtonBorderpaintBorder 方法=]) 并使用它,但我保留方案颜色,我不知道这个 LAF (LookAndFeel) 最初使用的是什么颜色。

JButton jb = new JButton(someIcon);
BorderUIResource.CompoundBorderUIResource bc = 
    (BorderUIResource.CompoundBorderUIResource)jb.getBorder();

MotifBorders.ButtonBorder oldMotifBB =
    (MotifBorders.ButtonBorder)bc.getOutsideBorder();

MotifBorders.ButtonBorder newMotifBB = new MotifBorders.ButtonBorder(
    shadow,
    highlight, 
    WHAT_ARGUMENT?,  /*darkShadow (Originally No defined)*/
    focus) {
  @Override public void paintBorder(
      Component c, Graphics g, int x, int y, int w, int h) {
      //Changes Code
  }
};

勾选这个site

MotifBorders.ButtonBorder newMotifBB = new MotifBorders.ButtonBorder(
    UIManager.getColor("Button.shadow"),        /*shadow*/
    UIManager.getColor("Button.highlight"),         /*highlight*/
    UIManager.getColor("Button.darkShadow"),  /*darkShadow (Originally No defined)*/
    UIManager.getColor("activeCaptionBorder")   /*focus*/) {
  @Override public void paintBorder(
      Component c, Graphics g, int x, int y, int w, int h) {
      //Changes Code
  }
};