/** * This method creates a new nonRolloverBorder for JButtons when the * JToolBar's rollover property is set to false. * * @return A new NonRolloverBorder. */ protected Border createNonRolloverBorder() { Border b = UIManager.getBorder("ToolBar.nonrolloverBorder"); if (b == null) { b = new CompoundBorder( new ButtonBorder(UIManager.getColor("Button.shadow"), UIManager.getColor("Button.darkShadow"), UIManager.getColor("Button.light"), UIManager.getColor("Button.highlight")), BasicBorders.getMarginBorder()); } return b; }
/** * This method creates a new rollover border for JButtons when the * JToolBar's rollover property is set to true. * * @return A new rollover border. */ protected Border createRolloverBorder() { Border b = UIManager.getBorder("ToolBar.rolloverBorder"); if (b == null) { b = new CompoundBorder( new ButtonBorder(UIManager.getColor("Button.shadow"), UIManager.getColor("Button.darkShadow"), UIManager.getColor("Button.light"), UIManager.getColor("Button.highlight")), BasicBorders.getMarginBorder()); } return b; }