本文整理了Java中javax.swing.JMenu.getIcon()
方法的一些代码示例,展示了JMenu.getIcon()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。JMenu.getIcon()
方法的具体详情如下:
包路径:javax.swing.JMenu
类名称: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());
内容来源于网络,如有侵权,请联系作者删除!