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 93794 - Problem with imported icons and generated resoures
Summary: Problem with imported icons and generated resoures
Status: VERIFIED FIXED
Alias: None
Product: guibuilder
Classification: Unclassified
Component: App Framework (show other bugs)
Version: 6.x
Hardware: All All
: P2 blocker (vote)
Assignee: issues@guibuilder
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-02-01 13:03 UTC by Jana Maleckova
Modified: 2007-08-13 16:40 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
93794 (5.03 KB, text/plain)
2007-02-01 13:08 UTC, Jana Maleckova
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Jana Maleckova 2007-02-01 13:03:52 UTC
NetBeans IDE Dev (Build 070131)
1.6.0-rc; Java HotSpot(TM) Client VM 1.6.0-rc-b104
Windows XP version 5.1 running on x86
en_GB (nb); Cp1252

Description:
============
1. have JDA - basic
2. create new JFrame in some new package
3. check if Automatic Resource Management is set as "All Resources"
4. insert e.g. jButton
5. invoke custom editor for icon
6. Import to Project your external icon and press OK (use default offer, just
confirm settings)
See, key value for icon has wrong value and if OK is pressed, an exception
occurs and then nothing happened.
Resources were not generated and it seems to be the problem. 
But when e.g. text property of component is changed, resources are generated and
then it is not problem to import external icon

StackTrace:
===========
java.beans.PropertyVetoException: Invalid resource value
        at
org.netbeans.modules.form.ResourceWrapperEditor.vetoableChange(ResourceWrapperEditor.java:241)
        at
java.beans.VetoableChangeSupport.fireVetoableChange(VetoableChangeSupport.java:335)
        at
java.beans.VetoableChangeSupport.fireVetoableChange(VetoableChangeSupport.java:252)
Comment 1 Jana Maleckova 2007-02-01 13:08:39 UTC
Created attachment 37917 [details]
93794
Comment 2 Jana Maleckova 2007-05-02 12:55:03 UTC
no it's not possible to add icon neither from external sources nor from other
project packages.
Always above described exception occurs
Comment 3 Tomas Pavek 2007-07-02 15:52:55 UTC
Fixed.

/cvs/form/swingapp/src/org/netbeans/modules/swingapp/ResourcePanelImpl.java
new revision: 1.3; previous revision: 1.2
Comment 4 Jana Maleckova 2007-08-13 16:40:35 UTC
verified on

Product Version: NetBeans IDE Dev (Build 070811) Java: 1.6.0_02; Java HotSpot(TM) Client VM 1.6.0_02-b05 System: Windows
XP version 5.1 running on x86; Cp1252; en_GB (nb)