This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.
if (value != null) {
if (value instanceof URL) {
return Toolkit.getDefaultToolkit ().getImage ((URL) value);
} else if (value instanceof Image) {
// #18832
return (Image)value;
} else {
if (Boolean.getBoolean ("netbeans.debug.exceptions")) {
System.err.println ("Attribute " + attr + " on " + fo + " expected to be a URL; was: " + value); // NOI18N
while (it.hasNext ()) {
FileObject fo = (FileObject) it.next ();
Object value = fo.getAttribute (attr);
if (value instanceof Image) {
}
try {
URL u = currentify ((URL) value, suffix);
"URL to a custom 16x16 icon (recommended protocol: nbresloc).");
public Object getValue () {
return (URL) dob.getPrimaryFile ().getAttribute (ATTR_ICON);
Object o = dob.getPrimaryFile().getAttribute(ATTR_ICON);
return /* #18832 */ (o instanceof URL) ? o : null;
public void setValue (Object val) throws InvocationTargetException {
node as above will be given the 16x16 icon supplied by the attribute
value, given as a URL (<code>java.net.URL</code>, not
<code>java.lang.String</code>). Similarly
<code>SystemFileSystem.icon32</code> for the 32x32 icon, if
<code>SystemFileSystem.icon32</code> for the 32x32 icon, if desired.
desired.</p>
After NetBeans 3.3, a <code>java.awt.Image</code> may also be
given.</p>
</dl>