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 212245 - IllegalArgumentException: Width and height must be >= 0
Summary: IllegalArgumentException: Width and height must be >= 0
Status: RESOLVED FIXED
Alias: None
Product: guibuilder
Classification: Unclassified
Component: Code (show other bugs)
Version: 7.2
Hardware: All All
: P3 normal (vote)
Assignee: issues@guibuilder
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-05-09 14:45 UTC by Michel Graciano
Modified: 2012-05-16 11:12 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter: 187786


Attachments
stacktrace (2.27 KB, text/plain)
2012-05-09 14:45 UTC, Michel Graciano
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Michel Graciano 2012-05-09 14:45:27 UTC
Build: NetBeans IDE Dev (Build 201205030400)
VM: Java HotSpot(TM) 64-Bit Server VM, 22.1-b02, Java(TM) SE Runtime Environment, 1.7.0_03-b05
OS: Windows 7

User Comments:
hmichel: Opening a form file




Stacktrace: 
java.lang.IllegalArgumentException: Width and height must be >= 0
   at java.awt.Component.getBaseline(Component.java:2805)
   at javax.swing.JComponent.getBaseline(JComponent.java:2558)
   at javax.swing.plaf.basic.BasicComboBoxUI.getBaseline(BasicComboBoxUI.java:985)
   at javax.swing.JComponent.getBaseline(JComponent.java:2560)
   at org.netbeans.modules.form.FormDesigner$LayoutMapper.getBaselinePosition(FormDesigner.java:2127)
   at org.netbeans.modules.form.layoutdesign.VisualState.updateCurrentSpaceOfComponents(VisualState.java:120)
Comment 1 Michel Graciano 2012-05-09 14:45:33 UTC
Created attachment 119213 [details]
stacktrace
Comment 2 Tomas Pavek 2012-05-15 14:06:52 UTC
Fixed.
http://hg.netbeans.org/jet-main/rev/d31cc0f6f25c
Comment 3 Quality Engineering 2012-05-16 11:12:01 UTC
Integrated into 'main-golden', will be available in build *201205160400* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main-golden/rev/d31cc0f6f25c
User: Tomas Pavek <tpavek@netbeans.org>
Log: #212245: better detection of too small components for baseline