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.

Bug 198228 - IllegalArgumentException: Width (0) and height (32) must be non-zero
Summary: IllegalArgumentException: Width (0) and height (32) must be non-zero
Status: RESOLVED FIXED
Alias: None
Product: guibuilder
Classification: Unclassified
Component: Code (show other bugs)
Version: 7.0
Hardware: All All
: P3 normal (vote)
Assignee: issues@guibuilder
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-05-02 00:33 UTC by dabar
Modified: 2011-05-02 10:02 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter: 177413


Attachments
stacktrace (6.88 KB, text/plain)
2011-05-02 00:33 UTC, dabar
Details

Note You need to log in before you can comment on or make changes to this bug.
Description dabar 2011-05-02 00:33:48 UTC
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)
Comment 1 dabar 2011-05-02 00:33:52 UTC
Created attachment 108036 [details]
stacktrace
Comment 2 Jan Stola 2011-05-02 09:28:13 UTC
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.
Comment 3 Jan Stola 2011-05-02 10:02:30 UTC
Fixed.

Modified file: http://hg.netbeans.org/jet-main/rev/edeb59ed202c