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 2907 - JDialog - opening file throws an exception.
Summary: JDialog - opening file throws an exception.
Status: CLOSED WONTFIX
Alias: None
Product: guibuilder
Classification: Unclassified
Component: Code (show other bugs)
Version: 3.x
Hardware: All Linux
: P4 normal (vote)
Assignee: Marian Petras
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 1999-07-29 01:46 UTC by Marian Petras
Modified: 2003-07-02 15:44 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 Marian Petras 1999-07-29 01:46:53 UTC
[IAN] Duplicate of 2480 - Color attribute can have haxedecimal values but int is expected.

1. Create some dialog from template JDialog (SwingForms).
2. Save generated source and close the Editor Window.
3. Open the class again.


The following exception is thrown:

>>> loadComponent: Form
java.lang.NumberFormatException: c4
        at java.lang.Integer.parseInt(Integer.java:409)
        at java.lang.Integer.parseInt(Integer.java:458)
        at com.netbeans.developer.editors.ColorEditor.readFromXML(ColorEditor.java:578)
        at com.netbeans.developer.modules.loaders.form.GandalfPersistenceManager.getEncodedPropertyValue(GandalfPersistenceManager.java:942)
        at com.netbeans.developer.modules.loaders.form.GandalfPersistenceManager.loadProperties(GandalfPersistenceManager.java:384)
        at com.netbeans.developer.modules.loaders.form.GandalfPersistenceManager.loadComponent(GandalfPersistenceManager.java:235)
        at com.netbeans.developer.modules.loaders.form.GandalfPersistenceManager.loadVisualComponent(GandalfPersistenceManager.java:262)
        at com.netbeans.developer.modules.loaders.form.GandalfPersistenceManager.loadContainer(GandalfPersistenceManager.java:301)
        at com.netbeans.developer.modules.loaders.form.GandalfPersistenceManager.loadForm(GandalfPersistenceManager.java:158)
        at com.netbeans.developer.modules.loaders.form.FormEditorSupport.loadForm(FormEditorSupport.java:241)
        at com.netbeans.developer.modules.loaders.form.FormEditorSupport.open(FormEditorSupport.java:75)
        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(RequestProcessor.java:379)
Comment 1 Marek Grummich 2000-07-25 09:26:59 UTC
Priority is changed to P4 (normal).
Comment 2 Quality Engineering 2003-07-02 15:35:09 UTC
Resolved for 3.4.x or earlier, no new info since then -> verify.
Comment 3 Quality Engineering 2003-07-02 15:44:15 UTC
Resolved for 3.4.x or earlier, no new info since then -> closing.