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.
Just click the custom editor button to get the exception below. My guess is that the custom editor overrides addPropertyChangeListener() incorrectly (just delete the propertyChangeSupport and let it use the inherited property change listener support from JComponent). If the PropertyEditor is a component subclass, please split it into two - there's no reason to run a GUI component constructor again and again just to display "Fonts and Colors" in the property sheet. java.lang.NullPointerException at org.netbeans.modules.editor.options.ColoringArrayEditorPanel.addPropertyChangeListener(ColoringArrayEditorPanel.java:184) at javax.swing.plaf.synth.SynthPanelUI.installListeners(SynthPanelUI.java:49) at javax.swing.plaf.synth.SynthPanelUI.installUI(SynthPanelUI.java:38) at javax.swing.JComponent.setUI(JComponent.java:650) at javax.swing.JPanel.setUI(JPanel.java:131) at javax.swing.JPanel.updateUI(JPanel.java:104) at javax.swing.JPanel.<init>(JPanel.java:64) at javax.swing.JPanel.<init>(JPanel.java:87) at javax.swing.JPanel.<init>(JPanel.java:95) at org.netbeans.modules.editor.options.ColoringArrayEditorPanel.<init>(ColoringArrayEditorPanel.java:68) at org.netbeans.modules.editor.options.ColoringArrayEditor.getCustomEditor(ColoringArrayEditor.java:52) at org.openide.explorer.propertysheet.PropertyDialogManager.<init>(PropertyDialogManager.java:108) at org.openide.explorer.propertysheet.CustomEditorAction.actionPerformed(CustomEditorAction.java:174) at org.openide.explorer.propertysheet.SheetTable.editCellAt(SheetTable.java:781) at javax.swing.plaf.basic.BasicTableUI$Handler.adjustFocusAndSelection(BasicTableUI.java:897) at javax.swing.plaf.basic.BasicTableUI$Handler.mousePressed(BasicTableUI.java:864) at java.awt.AWTEventMulticaster.mousePressed(AWTEventMulticaster.java:222) at java.awt.AWTEventMulticaster.mousePressed(AWTEventMulticaster.java:221) at java.awt.AWTEventMulticaster.mousePressed(AWTEventMulticaster.java:221) at java.awt.Component.processMouseEvent(Component.java:5462) at javax.swing.JComponent.processMouseEvent(JComponent.java:3089) at org.openide.explorer.propertysheet.SheetTable.processMouseEvent(SheetTable.java:582) at java.awt.Component.processEvent(Component.java:5230) at java.awt.Container.processEvent(Container.java:1961) at java.awt.Component.dispatchEventImpl(Component.java:3933) at java.awt.Container.dispatchEventImpl(Container.java:2019) at java.awt.Component.dispatchEvent(Component.java:3781) at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4203) at java.awt.LightweightDispatcher.processMouseEvent(Container.java:3880) at java.awt.LightweightDispatcher.dispatchEvent(Container.java:3813) at java.awt.Container.dispatchEventImpl(Container.java:2005) at java.awt.Window.dispatchEventImpl(Window.java:1764) at java.awt.Component.dispatchEvent(Component.java:3781) [catch] at java.awt.EventQueue.dispatchEvent(EventQueue.java:463) at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:234) at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:163) at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:157) at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:149) at java.awt.EventDispatchThread.run(EventDispatchThread.java:110)
I have fixed the dup issue just few hours before you have entered this one ;) *** This issue has been marked as a duplicate of 41765 ***
verified duplicate