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 7830 - Custom Property Editor is not invoked if it is derived from JDialog.
Summary: Custom Property Editor is not invoked if it is derived from JDialog.
Status: CLOSED FIXED
Alias: None
Product: guibuilder
Classification: Unclassified
Component: Code (show other bugs)
Version: 3.x
Hardware: PC Windows 3.1/NT
: P2 blocker (vote)
Assignee: issues@java
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2000-10-06 22:54 UTC by irina narovsky
Modified: 2003-06-30 18:28 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 irina narovsky 2000-10-06 22:54:27 UTC
I've extended my custom property editor from JDialog, because I need IDE to
use my non modal dialog.
When I use Customize Dialog to test my bean, the custom property editor is
successfully invoked when I click the button on the desired property value.
But after I've added my bean to the Component Palette, placed it on the panel
in IDE and opened Properties of MyBean dialog,
my custom property editor is not invoked when I click the button.

The following error is generated in Forte4j error log:
Exception occurred during event dispatching:
java.lang.IllegalArgumentException: adding a window to a container
	at java.awt.Container.addImpl(Container.java:336)
	at javax.swing.JTabbedPane.insertTab(JTabbedPane.java:445)
	at javax.swing.JTabbedPane.addTab(JTabbedPane.java:512)
	at org.netbeans.modules.form.FormCustomEditor.<init>
(FormCustomEditor.java:138)
	at org.netbeans.modules.form.FormPropertyEditor.getCustomEditor
(FormPropertyEditor.java:223)
	at
org.openide.explorer.propertysheet.PropertyDetails.getPropertyCustomEditor
(PropertyDetails.java:459)
	at
org.openide.explorer.propertysheet.PropertyDisplayer$CustomPEListener.sheetButto
nClicked(PropertyDisplayer.java:861)
	at
org.openide.explorer.propertysheet.SheetButton.notifySheetButtonListenersAboutCl
ick(SheetButton.java:362)
	at
org.openide.explorer.propertysheet.SheetButton$InnerListener.mouseReleased
(SheetButton.java:434)
	at java.awt.AWTEventMulticaster.mouseReleased
(AWTEventMulticaster.java:230)
	at java.awt.Component.processMouseEvent(Component.java:3717)
	at java.awt.Component.processEvent(Component.java:3546)
	at java.awt.Container.processEvent(Container.java:1164)
	at java.awt.Component.dispatchEventImpl(Component.java:2595)
	at java.awt.Container.dispatchEventImpl(Container.java:1213)
	at java.awt.Component.dispatchEvent(Component.java:2499)
	at java.awt.LightweightDispatcher.retargetMouseEvent
(Container.java:2451)
	at java.awt.LightweightDispatcher.processMouseEvent(Container.java:2216)
	at java.awt.LightweightDispatcher.dispatchEvent(Container.java:2125)
	at java.awt.Container.dispatchEventImpl(Container.java:1200)
	at java.awt.Window.dispatchEventImpl(Window.java:912)
	at java.awt.Component.dispatchEvent(Component.java:2499)
	at java.awt.EventQueue.dispatchEvent(EventQueue.java:319)
	at java.awt.EventDispatchThread.pumpOneEvent
(EventDispatchThread.java:103)
	at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:93)
	at java.awt.EventDispatchThread.run(EventDispatchThread.java:84)


However if I derive my property editor from JPanel, it is invoked in the
IDE standard property editor Dialog.
Comment 1 Tomas Pavek 2000-10-19 10:41:59 UTC
Fixed - if custom editor for property is a standalone window then it is used
directly (standard multi-tab custom editor dialog is not shown).
Comment 2 Marian Mirilovic 2001-01-17 17:04:59 UTC
verified in [nb31](34), [boston](1160)
Comment 3 Quality Engineering 2003-06-30 18:28:13 UTC
Resolved for 3.3.x or earlier, no new info since then -> closing.