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

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

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

JButton.updateUI介绍

暂无

代码示例

代码示例来源:origin: mucommander/mucommander

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

    // Update L&F properties 
    setLookAndFeelProperties();
  }
}

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

public void updateUI() {
    if (m_renderer != null)
      m_renderer.updateUI();

    if (m_editbtn != null)
      m_editbtn.updateUI();

    if (m_cache != null)
      m_cache.updateUI();

    if (m_delete_btn != null)
      m_delete_btn.updateUI();
  }
}

代码示例来源:origin: edu.toronto.cs.medsavant/medsavant-client

final void setInstalled(boolean installedAlready) {
  if (installedAlready) {
    downloadButton.setEnabled(false);
    downloadButton.setText("Installed");
    downloadButton.updateUI();
    downloadButton.invalidate();
  }
}

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

public void updateUI()
{
 super.updateUI();
 setRolloverEnabled(true);
}

代码示例来源:origin: com.fifesoft.rtext/fife.common

/**
 * Overridden so the popup menu gets updated as well.
 */
@Override
public void updateUI() {
  super.updateUI();
  if (popupMenu!=null) {// First time this is called, popupMenu is null.
    SwingUtilities.updateComponentTreeUI(popupMenu);
  }
}

代码示例来源:origin: edu.toronto.cs.medsavant/medsavant-client

final void setInstalled(boolean installedAlready) {
  if (installedAlready) {
    downloadButton.setEnabled(false);
    downloadButton.setText("Installed");
    downloadButton.updateUI();
    downloadButton.invalidate();
  }
  aim.setInstalled(installedAlready);
}

代码示例来源:origin: org.bitbucket.goalhub.simpleide/jedit

public void updateUI()
{
  super.updateUI();
  //setBorder(originalBorder);
  setBorderPainted(false);
  setRequestFocusEnabled(false);
  setMargin(new Insets(1,1,1,1));
} //}}}

代码示例来源:origin: com.haulmont.thirdparty/swingx-core

/**
   * Notification from the <code>UIManager</code> that the L&F has changed.
   * Replaces the current UI object with the latest version from the <code>UIManager</code>.
   * 
   * @see javax.swing.JComponent#updateUI
   */
  @Override
  public void updateUI() {
    super.updateUI();
    
    if (bgStamp != null) {
      bgStamp.updateUI();
    }
    
    if (fgStamp != null) {
      fgStamp.updateUI();
    }
  }
}

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

/**
   * Notification from the <code>UIManager</code> that the L&F has changed.
   * Replaces the current UI object with the latest version from the <code>UIManager</code>.
   * 
   * @see javax.swing.JComponent#updateUI
   */
  @Override
  public void updateUI() {
    super.updateUI();
    
    if (bgStamp != null) {
      bgStamp.updateUI();
    }
    
    if (fgStamp != null) {
      fgStamp.updateUI();
    }
  }
}

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

/**
   * Notification from the <code>UIManager</code> that the L&F has changed.
   * Replaces the current UI object with the latest version from the <code>UIManager</code>.
   * 
   * @see javax.swing.JComponent#updateUI
   */
  @Override
  public void updateUI() {
    super.updateUI();
    
    if (bgStamp != null) {
      bgStamp.updateUI();
    }
    
    if (fgStamp != null) {
      fgStamp.updateUI();
    }
  }
}

代码示例来源:origin: freeplane/freeplane

@Override
public void updateUI() {
  setMargin(new Insets(0, 0, 0, 0));
  super.updateUI();
  final Insets insets = getInsets();
  if(insets.left + insets.right > 8){
  setUI(BasicButtonUI.createUI(this));
  setBorder(BorderFactory.createLineBorder(Color.GRAY));
  }
}

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

@Override
public void updateUI() {
  super.updateUI();
  // JW: icon may be LF dependent
  updateActionUI();
  updateButtonUI();
  getColumnControlPopup().updateUI();
}

代码示例来源:origin: com.haulmont.thirdparty/swingx-core

@Override
public void updateUI() {
  super.updateUI();
  // JW: icon may be LF dependent
  updateActionUI();
  updateButtonUI();
  getColumnControlPopup().updateUI();
}

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

@Override
public void updateUI() {
  super.updateUI();
  // JW: icon may be LF dependent
  updateActionUI();
  updateButtonUI();
  getColumnControlPopup().updateUI();
}

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

@Override
public void updateUI() {
  super.updateUI();
  // JW: icon may be LF dependent
  updateActionUI();
  updateButtonUI();
  getColumnControlPopup().updateUI();
}

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

@Override
public void updateUI() {
  super.updateUI();
  // JW: icon may be LF dependent
  updateActionUI();
  updateButtonUI();
  getColumnControlPopup().updateUI();
}

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

public void updateUI()
{
 super.updateUI();
 setRolloverEnabled(true);
 if(BuLib.isOcean())
 {
  Insets i=getMargin();
  if((i instanceof UIResource)&&REF.equals(i))
   setMargin(ALT);
 }
}

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

public void updateUI()
{
 super.updateUI();
 setRolloverEnabled(true);
 if(BuLib.isOcean())
 {
  Insets i=getMargin();
  if((i instanceof UIResource)&&REF.equals(i))
   setMargin(ALT);
 }
}

代码示例来源:origin: com.jidesoft/jide-oss

/**
 * Resets the UI property to a value from the current look and feel.
 *
 * @see JComponent#updateUI
 */
@Override
public void updateUI() {
  super.updateUI();
  setMargin(new Insets(0, 0, 0, 0));
  setBorder(BorderFactory.createEmptyBorder());
  setFocusPainted(false);
  setFocusable(false);
  setRequestFocusEnabled(false);
  String name = getName();
  if (name != null) setToolTipText(getResourceString(name));
}

代码示例来源:origin: com.jidesoft/jide-oss

/**
 * Resets the UI property to a value from the current look and feel.
 *
 * @see JComponent#updateUI
 */
@Override
public void updateUI() {
  super.updateUI();
  setMargin(new Insets(0, 0, 0, 0));
  setBorder(BorderFactory.createEmptyBorder());
  setFocusPainted(false);
  setFocusable(false);
  setRequestFocusEnabled(false);
  String name = getName();
  if (name != null) setToolTipText(getResourceString(name));
}

相关文章

JButton类方法