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.
Product Version: NetBeans IDE Dev (Build 200706141800) Java: 1.6.0; Java HotSpot(TM) Client VM 1.6.0-b105 System: Windows XP version 5.1 running on x86; Cp1252; en_GB (nb) Userdir: D:\userdir60 Description: ============ have some action in JDA project. Set e.g. large icon to this action but it's location is not in classpath and save it Then do edit of this action and try to edit this icon as well. When button "set icon" is pushed, an NPE occurs Action editor is broken and is not possible to manipulate with action's icon then. StackTrace: =========== java.lang.NullPointerException at org.netbeans.modules.form.editors.CustomIconEditor$IconComboRenderer.getListCellRendererComponent(CustomIconEditor.java:476) at javax.swing.plaf.basic.BasicComboBoxUI.paintCurrentValue(BasicComboBoxUI.java:1164) at com.sun.java.swing.plaf.windows.WindowsComboBoxUI.paintCurrentValue(WindowsComboBoxUI.java:292) at javax.swing.plaf.basic.BasicComboBoxUI.paint(BasicComboBoxUI.java:860)
Created attachment 43770 [details] 106771
External icons can't be used in actions. This option just needs to be disabled somehow.
I believe this is fixed now. When the user selects an external icon it will now be imported into the project.
selected external icons are not automatically imported into project and then project can't be run. key (test.Action.icon) in bundle has set icon's absolute path. When icon is imported into the project, I understand that icon is on classpath then. Is it correct?
Yes, external icon is not imported automatically.
This is fixed now. External icons are not imported automatically when you select an external icon. Instead you must click on the 'import icon' button. It shouldn't be possible to select icons that aren't within the project. We should fix the icon editor to either auto-import external icons, or else to only allow the 'import button' to be pressed. Since changing the icon editor significantly is difficult at this point in the development process I have added a boolean property on the IconEditor to disable external icons. Now the '...' button for external icons will be disabled so the user can only use the 'import icon' button.
now the possibility to set external icon is disabled in action editor verified on Product Version: NetBeans IDE Dev (Build 070913) 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)