public void run() { try { Icon[] icons = new Icon[] { new ImageIcon("C:\\Dokumente und Einstellungen\\Alex\\Desktop\\introspector_empty.png"), new ImageIcon("C:\\Dokumente und Einstellungen\\Alex\\Desktop\\200px-PNG_transparency_demonstration_1.png") }; JFrame frame = new JFrame("icon test"); frame.getContentPane().add(new JLabel(new CombiIcon(icons)), BorderLayout.CENTER); frame.setSize(400, 300); frame.setVisible(true); } catch(Exception e) { e.printStackTrace(); } } });
/** * Get the icon for a node. */ public Icon getSwingIcon() { Icon ret = icons.getIcon("service-container"); if(broken) { ret = new CombiIcon(new Icon[]{ret, icons.getIcon("overlay_broken")}); } return ret; }
/** * Get the icon for a node. */ public Icon getSwingIcon() { Icon ret = super.getSwingIcon(); if(ret!=null && !busy) { ret = new CombiIcon(new Icon[]{ret, icons.getIcon(state)}); } return ret; }
base!=null ? new CombiIcon(new Icon[]{base, icons.getIcon("overlay_showprops")}) : (Icon)showprops.getValue(Action.SMALL_ICON)) base!=null ? new CombiIcon(new Icon[]{base, icons.getIcon("overlay_showobject")}) : (Icon)showprops.getValue(Action.SMALL_ICON)) base!=null ? new CombiIcon(new Icon[]{base, icons.getIcon("overlay_refresh")}) : (Icon)refresh.getValue(Action.SMALL_ICON)) ret.add(prefresh); Action prefreshtree = new AbstractAction((String)refreshtree.getValue(Action.NAME), base!=null ? new CombiIcon(new Icon[]{base, icons.getIcon("overlay_refreshtree")}) : (Icon)refreshtree.getValue(Action.SMALL_ICON))
new CombiIcon(new Icon[]{base, overlay}) : (Icon)baseaction.getValue(Action.SMALL_ICON))
ret = new CombiIcon(ics.toArray(new Icon[ics.size()]));
base!=null ? new CombiIcon(new Icon[]{base, icons.getIcon("overlay_kill")}) : (Icon)kill.getValue(Action.SMALL_ICON)) base!=null ? new CombiIcon(new Icon[]{base, icons.getIcon("overlay_kill")}) : (Icon)proxykill.getValue(Action.SMALL_ICON)) base!=null ? new CombiIcon(new Icon[]{base, icons.getIcon("overlay_suspend")}) : (Icon)suspend.getValue(Action.SMALL_ICON)) base!=null ? new CombiIcon(new Icon[]{base, icons.getIcon("overlay_resume")}) : (Icon)resume.getValue(Action.SMALL_ICON)) base!=null ? new CombiIcon(new Icon[]{base, icons.getIcon("overlay_step")}) : (Icon)step.getValue(Action.SMALL_ICON))
ret = new CombiIcon(ics.toArray(new Icon[ics.size()]));
/** * Get the icon for a node. */ public Icon getSwingIcon() { Icon icon = iconcache.getIcon(desc.getType(), this, getModel()); if(busy) { icon = icon!=null ? new CombiIcon(new Icon[]{icon, icons.getIcon("overlay_busy")}) : icons.getIcon("overlay_busy"); } else if(broken) { icon = icon!=null ? new CombiIcon(new Icon[]{icon, icons.getIcon("overlay_check")}) : icons.getIcon("overlay_check"); } return icon; }
/** * Get the icon. * @return The icon. */ public Icon getIcon() { return isSaved()? super.getIcon(): new CombiIcon(new Icon[]{super.getIcon(), icons.getIcon("overlay_exclamation")}); }
/** * Get the icon for a node. */ public Icon getSwingIcon() { Icon ret = null; if(propmi.isDynamic()) { ret = new CombiIcon(new Icon[]{icons.getIcon("service"), icons.getIcon("dynamic")}); } else { ret = icons.getIcon("service"); } return ret; }
ret = new CombiIcon(ilist.toArray(new Icon[ilist.size()]));
ret = new CombiIcon(ilist.toArray(new Icon[ilist.size()]));
icon = new CombiIcon((Icon[])icons.toArray(new Icon[icons .size()]));