Java 类javax.swing.plaf.basic.BasicBorders.ButtonBorder 实例源码
项目:JamVM-PH
文件:BasicToolBarUI.java
/**
* 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; }
项目:JamVM-PH
文件:BasicToolBarUI.java
/**
* 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;
}
项目:classpath
文件:BasicToolBarUI.java
/**
* 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; }
项目:classpath
文件:BasicToolBarUI.java
/**
* 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;
}