本文整理了Java中javax.swing.JToolBar.setForeground()
方法的一些代码示例,展示了JToolBar.setForeground()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。JToolBar.setForeground()
方法的具体详情如下:
包路径:javax.swing.JToolBar
类名称:JToolBar
方法名:setForeground
暂无
代码示例来源:origin: magefree/mage
filterBar1.setForeground(new java.awt.Color(102, 102, 255));
filterBar1.setFocusable(false);
filterBar1.setOpaque(false);
代码示例来源:origin: com.eas.platypus/platypus-js-forms
@ScriptFunction
@Override
public void setForeground(Color aValue) {
super.setForeground(aValue);
}
代码示例来源:origin: atarw/material-ui-swing
@Override
public void installUI (JComponent c) {
super.installUI (c);
JToolBar toolBar = (JToolBar) c;
toolBar.setFont (UIManager.getFont ("ToolBar.font"));
toolBar.setBackground (UIManager.getColor ("ToolBar.background"));
toolBar.setForeground (UIManager.getColor ("ToolBar.foreground"));
toolBar.setBorder (UIManager.getBorder ("ToolBar.border"));
this.dockingBorderColor = null;
this.floatingBorderColor = null;
this.dockingColor = UIManager.getColor ("ToolBar.dockingBackground");
this.floatingColor = UIManager.getColor ("ToolBar.floatingBackground");
}
代码示例来源:origin: com.eas.platypus/platypus-js-forms
@ScriptFunction
@Override
public void setForeground(Color aValue) {
super.setForeground(aValue);
if (gapLabel != null) {
gapLabel.setForeground(aValue);
}
if (iconLabel != null) {
iconLabel.setForeground(aValue);
}
if (extraTools != null) {
extraTools.setForeground(aValue);
}
if (decorated != null) {
decorated.setForeground(aValue);
}
}
代码示例来源:origin: tulskiy/musique
jToolBar1.setForeground(javax.swing.UIManager.getDefaults().getColor("Panel.background"));
jToolBar1.setRollover(true);
jToolBar1.setBorderPainted(false);
内容来源于网络,如有侵权,请联系作者删除!