javax.swing.JLabel.updateUI()方法的使用及代码示例

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

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

JLabel.updateUI介绍

暂无

代码示例

代码示例来源:origin: org.netbeans.api/org-openide-awt

public @Override void updateUI() {
  if (swingRendering) {
    super.updateUI();
  } else {
    setUI(HtmlLabelUI.createUI(this));
  }
}

代码示例来源:origin: org.swinglabs.swingx/swingx-core

@Override
  public void updateUI(){
   super.updateUI();
   updateTitle();
  }
};

代码示例来源:origin: org.bidib.jbidib.swinglabs.swingx/swingx-core

@Override
  public void updateUI(){
   super.updateUI();
   updateTitle();
  }
};

代码示例来源:origin: org.codehaus.jtstand/jtstand-desktop

@Override
  public void updateUI(){
   super.updateUI();
   updateTitle();
  }
};

代码示例来源:origin: org.swinglabs.swingx/swingx-all

@Override
  public void updateUI(){
   super.updateUI();
   updateTitle();
  }
};

代码示例来源:origin: xyz.cofe/docking-frames-core

@Override
public void updateUI() {
  if( updater == null ){
    super.updateUI();
  }
  else{
    updater.enterUpdateUI();
    super.updateUI();
    updater.leaveUpdateUI();
  }
}

代码示例来源:origin: net.java.abeille/abeille

/**
   * Override so we can update the title text and color based on the
   * current look and feel (if needed)
   */
  public void updateUI() {
    super.updateUI();
    if (m_label != null) {
      m_label.setForeground(getTitleColor());
      m_label.setFont(getTitleFont());
    }
  }
}

代码示例来源:origin: jrtom/jung

/**
 * Notification from the <code>UIManager</code> that the look and feel has changed. Replaces the
 * current UI object with the latest version from the <code>UIManager</code>.
 *
 * @see JComponent#updateUI
 */
@Override
public void updateUI() {
 super.updateUI();
 setForeground(null);
 setBackground(null);
}

代码示例来源:origin: org.fudaa.framework.ctulu/ctulu-ui

public void updateUI() {
 super.updateUI();
 setForeground(null);
 setBackground(null);
}

代码示例来源:origin: JetBrains/jediterm

@Override
public void updateUI() {
 super.updateUI();
 if (myEditorPane != null) {
  //init inner components again (if any) to provide proper colors when LAF is being changed
  setCopyable(false);
  setCopyable(true);
 }
}

代码示例来源:origin: jrtom/jung

/**
 * Notification from the <code>UIManager</code> that the look and feel has changed. Replaces the
 * current UI object with the latest version from the <code>UIManager</code>.
 *
 * @see JComponent#updateUI
 */
@Override
public void updateUI() {
 super.updateUI();
 setForeground(null);
 setBackground(null);
}

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

public void updateUI() {
  if (swingRendering) {
    super.updateUI();
  } else {
    setUI (HtmlLabelUI.createUI(this));
  }
}

代码示例来源:origin: org.tentackle/tentackle-swing

/**
  * see DefaultTableCellRenderer
  */
 @Override
 public void updateUI() {
  super.updateUI();
  setForeground(null);
  setBackground(null);
 }
});

代码示例来源:origin: jrtom/jung

/**
 * Notification from the <code>UIManager</code> that the look and feel has changed. Replaces the
 * current UI object with the latest version from the <code>UIManager</code>.
 *
 * @see JComponent#updateUI
 */
@Override
public void updateUI() {
 super.updateUI();
 setForeground(null);
 setBackground(null);
}

代码示例来源:origin: net.java.abeille/abeille

/**
 * TODO: Consider asking a <code>TitledBorder</code> instance for its
 * font and font color use <code>#getTitleFont</code> and
 * <code>#getTitleColor</code> for the Synth-based looks.
 */
public void updateUI() {
  super.updateUI();
  Color foreground = UIManager.getColor("TitledBorder.titleColor");
  if (foreground != null)
    setForeground(foreground);
  setFont(getTitleFont());
}

代码示例来源:origin: org.swinglabs.swingx/swingx-core

@Override
 public void updateUI(){
  super.updateUI();
  setForeground(titledPanel.getTitleForeground());
  setFont(titledPanel.getTitleFont());
 } 
};

代码示例来源:origin: org.swinglabs.swingx/swingx-all

@Override
 public void updateUI(){
  super.updateUI();
  setForeground(titledPanel.getTitleForeground());
  setFont(titledPanel.getTitleFont());
 } 
};

代码示例来源:origin: org.codehaus.jtstand/jtstand-desktop

@Override
 public void updateUI(){
  super.updateUI();
  setForeground(titledPanel.getTitleForeground());
  setFont(titledPanel.getTitleFont());
 } 
};

代码示例来源:origin: org.bidib.jbidib.swinglabs.swingx/swingx-core

@Override
 public void updateUI(){
  super.updateUI();
  setForeground(titledPanel.getTitleForeground());
  setFont(titledPanel.getTitleFont());
 } 
};

代码示例来源:origin: net.sourceforge.mydoggy/mydoggy-plaf

public void updateUI() {
  getToolWindowContainer().updateUI();
  SwingUtilities.updateComponentTreeUI(getComponent());
  for (ToolWindowTab tab : toolWindow.getToolWindowTabs()) {
    SwingUtilities.updateComponentTreeUI(tab.getComponent());
  }
  if (getRepresentativeAnchor() != null)
    getRepresentativeAnchor().updateUI();
}

相关文章

微信公众号

最新文章

更多

JLabel类方法