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 2480 - Color attribute can have haxedecimal values but int is expected.
Summary: Color attribute can have haxedecimal values but int is expected.
Status: CLOSED FIXED
Alias: None
Product: guibuilder
Classification: Unclassified
Component: Code (show other bugs)
Version: 3.x
Hardware: All All
: P4 normal (vote)
Assignee: _ ttran
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 1999-07-15 01:03 UTC by Jan Palka
Modified: 2002-07-19 15:19 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Jan Palka 1999-07-15 01:03:34 UTC
E.g.
 <Color blue="ff" green="33" red="99" type="rgb"/>

The form which includes the line can not be loaded properly because of:

java.lang.NumberFormatException: ff
        at java.lang.Integer.parseInt(Integer.java:409)
        at java.lang.Integer.parseInt(Integer.java:458)
        at com.netbeans.developer.editors.ColorEditor.readFromXML(ColorEditor.ja
va:578)

        at com.netbeans.developer.modules.loaders.form.GandalfPersistenceManager
.getEncodedPropertyValue(GandalfPersistenceManager.java:863)
        at com.netbeans.developer.modules.loaders.form.GandalfPersistenceManager
.loadProperties(GandalfPersistenceManager.java:343)
        at com.netbeans.developer.modules.loaders.form.GandalfPersistenceManager
.loadComponent(GandalfPersistenceManager.java:216)
        at com.netbeans.developer.modules.loaders.form.GandalfPersistenceManager
.loadVisualComponent(GandalfPersistenceManager.java:243)
        at com.netbeans.developer.modules.loaders.form.GandalfPersistenceManager
.loadContainer(GandalfPersistenceManager.java:296)
        at com.netbeans.developer.modules.loaders.form.GandalfPersistenceManager
.loadForm(GandalfPersistenceManager.java:156)
        at com.netbeans.developer.modules.loaders.form.FormEditorSupport.loadFor
m(FormEditorSupport.java:165)
        at com.netbeans.developer.modules.loaders.form.FormEditorSupport.open(Fo
rmEditorSupport.java:71)
        at org.openide.actions.OpenAction$1.run(OpenAction.java:83)
        at org.openide.util.Task.run(Task.java:125)
        at org.openide.util.RequestProcessor$ProcessorThread.run(RequestProcesso
r.java:379)
Comment 1 Marek Grummich 2000-07-25 09:40:59 UTC
Priority is changed to P4 (normal).
Comment 2 Jan Stola 2000-07-27 17:54:59 UTC
Bug assigned to the module owner.