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

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

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

JTabbedPane.setForeground介绍

暂无

代码示例

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

@ScriptFunction
@Override
public void setForeground(Color aValue) {
  super.setForeground(aValue);
}

代码示例来源:origin: stackoverflow.com

JTabbedPane preupdatetab = new JTabbedPane();
preupdatetab.setForeground(new Color(255,0,0).darker());
preupdatetab.setBounds(30,15,930,300);
preupdate.add(preupdatetab);
precomplete.setLayout(null);
preupdatetab.add(precomplete,"Complete Change");
preonce.setLayout(null);
preupdatetab.add(preonce,"Qty Change");
changelocationpanel = new JPanel();
changelocationpanel.setLayout(null);
preupdatetab.add(changelocationpanel,"Change Location");
changesaleprice = new JPanel();
changesaleprice.setLayout(null);
preupdatetab.add(changesaleprice,"Change Sale Price");
changebookprice = new JPanel();
changebookprice.setLayout(null);
preupdatetab.add(changebookprice,"Change Book Price");
changevendor = new JPanel();
changevendor.setLayout(null);
preupdatetab.add(changevendor,"Change Vendor");
changeitemname = new JPanel();
changeitemname.setLayout(null);
preupdatetab.add(changeitemname,"Change Item Name");

代码示例来源:origin: atarw/material-ui-swing

@Override
public void installUI (JComponent c) {
  super.installUI (c);
  JTabbedPane tabbedPane = (JTabbedPane) c;
  tabbedPane.setOpaque (false);
  tabbedPane.setFont (UIManager.getFont ("TabbedPane.font"));
  tabbedPane.setBackground (UIManager.getColor ("TabbedPane.background"));
  tabbedPane.setForeground (UIManager.getColor ("TabbedPane.foreground"));
  tabbedPane.setBorder (UIManager.getBorder ("TabbedPane.border"));
  darkShadow = UIManager.getColor ("TabbedPane.darkShadow");
  shadow = UIManager.getColor ("TabbedPane.shadow");
  lightHighlight = UIManager.getColor ("TabbedPane.highlight");
}

代码示例来源:origin: UNIVALI-LITE/Portugol-Studio

@Override
public void configurarCores()
{
  rotuloCarregando.setBackground(ColorController.COR_PRINCIPAL);
  painelCarregamento.setBackground(ColorController.COR_PRINCIPAL);
  setBackground(ColorController.FUNDO_CLARO);
  painelAlinhamento.setBackground(ColorController.COR_PRINCIPAL);
  painelTabulado.setUI(new PSOutTabbedPaneUI());
  painelTabulado.setForeground(ColorController.COR_LETRA);
  painelAlinhamento.setForeground(ColorController.COR_LETRA);
  painelBotoes.setForeground(ColorController.COR_LETRA);
}

代码示例来源:origin: Audiveris/audiveris

/**
 * Create the {@code StubsController} singleton.
 */
private StubsController ()
{
  stubsMap = new HashMap<>();
  stubsPane = new JTabbedPane();
  stubsPane.setForeground(Colors.SHEET_NOT_LOADED);
  // Listener on sheet tab operations
  stubsPane.addChangeListener(this);
  // Listener on invalid sheets display
  ViewParameters.getInstance().addPropertyChangeListener(
      ViewParameters.INVALID_SHEET_DISPLAY,
      this);
  // Key binding
  bindKeys();
}

代码示例来源:origin: UNIVALI-LITE/Portugol-Studio

@Override
public void configurarCores() {
  setBackground(ColorController.FUNDO_CLARO);
  painelTabulado.setUI(new PSOutTabbedPaneUI());
  painelTabulado.setForeground(ColorController.COR_LETRA);
  jLAutores.setForeground(ColorController.COR_LETRA);
  jLDescricao.setForeground(ColorController.COR_LETRA);
  jLIcone.setForeground(ColorController.COR_LETRA);
  jLJar.setForeground(ColorController.COR_LETRA);
  jLNome.setForeground(ColorController.COR_LETRA);
  jLVersao.setForeground(ColorController.COR_LETRA);
  jTADescricao.setForeground(ColorController.COR_LETRA);
  jTALicenca.setForeground(ColorController.COR_LETRA);
  jPInformacoes.setForeground(ColorController.COR_LETRA);        
  jListAutores.setForeground(ColorController.COR_LETRA);
  painelConteudo.setBackground(ColorController.COR_PRINCIPAL);
  jPInformacoes.setBackground(ColorController.COR_PRINCIPAL);       
  jTADescricao.setBackground(ColorController.COR_PRINCIPAL);       
  jTALicenca.setBackground(ColorController.COR_PRINCIPAL);
  jListAutores.setBackground(ColorController.COR_PRINCIPAL);
  if(WeblafUtils.weblafEstaInstalado())
  {
    WeblafUtils.configuraWebLaf(jSPAutores);
    WeblafUtils.configuraWebLaf(jSPDescricao);
    WeblafUtils.configuraWebLaf(jSPLicenca);
  }
}

代码示例来源:origin: abc9070410/JComicDownloader

tabbedPane.setForeground(SetUp.getMainFrameTableDefaultColor());

代码示例来源:origin: abc9070410/JComicDownloader

tabbedPane.setForeground( SetUp.getOptionFrameOtherDefaultColor() );

代码示例来源:origin: org.biojava.thirdparty/forester

if ( !getConfiguration().isUseNativeUI() ) {
  _tabbed_pane.setBackground( getConfiguration().getGuiBackgroundColor() );
  _tabbed_pane.setForeground( getConfiguration().getGuiBackgroundColor() );

代码示例来源:origin: org.xworker/xworker_core

parent.setForeground(foreground);

相关文章

JTabbedPane类方法