javax.swing.JTabbedPane.getForeground()方法的使用及代码示例

x33g5p2x  于2022-01-21 转载在 其他  
字(1.9k)|赞(0)|评价(0)|浏览(129)

本文整理了Java中javax.swing.JTabbedPane.getForeground()方法的一些代码示例,展示了JTabbedPane.getForeground()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。JTabbedPane.getForeground()方法的具体详情如下:
包路径:javax.swing.JTabbedPane
类名称:JTabbedPane
方法名:getForeground

JTabbedPane.getForeground介绍

暂无

代码示例

代码示例来源:origin: realXuJiang/bigtable-sql

private void initLabelDefaults() {
 if (_label != null) {
  _defaultFont = _label.getFont().deriveFont(~Font.BOLD);
  _selectedFont = _label.getFont().deriveFont(Font.BOLD);
  _selectedColor = UIManager.getColor("TabbedPane.selectedForeground");
  // some look and feels may not support the above property so we fall back to foreground color of tabbed pane
  if (_selectedColor == null) {
   _selectedColor = _tabbedPane.getForeground();
  }
 }
}

代码示例来源:origin: net.sf.squirrel-sql/squirrel-sql

private void initLabelDefaults() {
 if (_label != null) {
  _defaultFont = _label.getFont().deriveFont(~Font.BOLD);
  _selectedFont = _label.getFont().deriveFont(Font.BOLD);
  _selectedColor = UIManager.getColor("TabbedPane.selectedForeground");
  // some look and feels may not support the above property so we fall back to foreground color of tabbed pane
  if (_selectedColor == null) {
   _selectedColor = _tabbedPane.getForeground();
  }
 }
}

代码示例来源:origin: com.eas.platypus/platypus-js-forms

@ScriptFunction(jsDoc = FOREGROUND_JSDOC)
@Override
public Color getForeground() {
  return super.getForeground();
}

代码示例来源:origin: net.sf.squirrel-sql.thirdparty-non-maven/napkinlaf

@Override
protected void paintTabBorder(Graphics g, int tabPlacement, int tabIndex,
    int x, int y, int w, int h, boolean isSelected) {
  DrawnTabHolder tabHolder = tabs[tabIndex];
  if (tabHolder == null) {
    tabHolder = tabs[tabIndex] = new DrawnTabHolder(tabPlacement);
  }
  tabHolder.shapeUpToDate(tabPlacement, x, y, w, h);
  g.setColor(tabPane.getForeground());
  tabHolder.draw(g);
}

代码示例来源:origin: net.sf.squirrel-sql.thirdparty-non-maven/napkinlaf

g.setColor(tabPane.getForeground());
g.translate(+calcRect.x, +calcRect.y);
contentBorder.draw(g);

相关文章

JTabbedPane类方法