javax.swing.JMenu.getIcon()方法的使用及代码示例

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

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

JMenu.getIcon介绍

暂无

代码示例

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

public Icon getIcon()
{
 if(BuPreferences.BU.getBooleanProperty("icons.menu",true)||
   (super.getText()==null))
  return super.getIcon();
 return null;
}

代码示例来源:origin: com.dorkbox/SystemTray

Icon icon = jMenu.getIcon();
BufferedImage bimage = new BufferedImage(icon.getIconWidth(), icon.getIconHeight(), BufferedImage.TYPE_INT_ARGB);
setImage(bimage);

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

public void adicionaMenu(JMenu submenu, boolean usaToggleButtons)
  {
    Action acoes[] = new Action[submenu.getItemCount()];

    for (int i = 0; i < submenu.getItemCount(); i++)
    {
      acoes[i] = submenu.getItem(i).getAction();
    }

    adicionaGrupoDeItems(submenu.getText(), submenu.getIcon(), acoes, usaToggleButtons);
  }
}

代码示例来源:origin: com.dorkbox/SystemTray

menu.setEnabled(entry.isEnabled());
Icon icon = entry.getIcon();
BufferedImage bimage = new BufferedImage(icon.getIconWidth(), icon.getIconHeight(), BufferedImage.TYPE_INT_ARGB);
menu.setImage(bimage);

代码示例来源:origin: com.github.axet/desktop

if (sub.getIcon() != null)
  bm = convertMenuIcon(sub.getIcon());

代码示例来源:origin: com.github.axet/desktop

if (sub.getIcon() != null)
  bm = convertMenuIcon(sub.getIcon());

相关文章