9596979899100101102103104105
args = mi.arguments(); arg = (Expression) args.get(0); if (arg instanceof StringLiteral) { StringLiteral sl = (StringLiteral) arg; String path = sl.getLiteralValue(); return new ResourceIcon(icon, path); } } } } return oldValue;
117118119120121122123124125126127
if (!path.startsWith("/")) path += "/" + path; try { ImageIcon icon = new ImageIcon(location.toFile() .toURI().toURL()); final ResourceIcon srcIcon = new ResourceIcon(icon, path); SwingUtilities.invokeLater(new Runnable(){ public void run() { setIconAndFire(srcIcon); }});
37383940414243
public Object decodeValue(Object value) { if (value == null) return null; String string = (String) value; return new ResourceIcon(string); }
2627282930313233343536