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.
Build: NetBeans IDE 7.0 (Build 201104080000) VM: Java HotSpot(TM) 64-Bit Server VM, 20.0-b11, Java(TM) SE Runtime Environment, 1.6.0_25-b06 OS: Windows 7 User Comments: dabar: I was browsing through a set of icons stored within the classpath containing PNG icons with various sizes. It does not even mention the particular icon with the problem Stacktrace: java.lang.IllegalArgumentException: Width (0) and height (32) must be non-zero at java.awt.image.ReplicateScaleFilter.<init>(ReplicateScaleFilter.java:85) at java.awt.Image.getScaledInstance(Image.java:156) at org.netbeans.modules.form.editors.CustomIconEditor$IconFileItem.paintIcon(CustomIconEditor.java:571) at javax.swing.plaf.basic.BasicLabelUI.paint(BasicLabelUI.java:150) at javax.swing.plaf.ComponentUI.update(ComponentUI.java:143) at javax.swing.JComponent.paintComponent(JComponent.java:752)
Created attachment 108036 [details] stacktrace
I was able to reproduce this issue. It can happen with icons that have very high aspect ratio. It seems to happen for icons such that either width/height or height/width is over 64.
Fixed. Modified file: http://hg.netbeans.org/jet-main/rev/edeb59ed202c