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 35190 - Form property editors throws IAE.
Summary: Form property editors throws IAE.
Status: VERIFIED FIXED
Alias: None
Product: platform
Classification: Unclassified
Component: Property Editors (show other bugs)
Version: 3.x
Hardware: All All
: P3 blocker (vote)
Assignee: _ tboudreau
URL:
Keywords: RANDOM
: 35268 (view as bug list)
Depends on:
Blocks:
 
Reported: 2003-07-29 15:19 UTC by ehucka
Modified: 2008-12-22 17:27 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
IAE stack trace. (3.59 KB, text/plain)
2003-07-29 15:20 UTC, ehucka
Details
IAE's stacktrace. (3.74 KB, text/plain)
2003-08-06 09:33 UTC, ehucka
Details
Screen shot. (6.41 KB, image/png)
2003-08-06 09:35 UTC, ehucka
Details

Note You need to log in before you can comment on or make changes to this bug.
Description ehucka 2003-07-29 15:19:27 UTC
Build NB dev 200307280100
JDK 1.4.1_03 Linux

I have IDE in state where all combobox property
editors doesn't work (aren't listed after click). 
Before it:
"java.lang.IllegalArgumentException:
focusCycleRoot is not a focus cyle root of
aComponent" had thrown.
Comment 1 ehucka 2003-07-29 15:20:51 UTC
Created attachment 11171 [details]
IAE stack trace.
Comment 2 Marian Mirilovic 2003-07-29 15:22:08 UTC
Eman: steps to reproduce?
Comment 3 ehucka 2003-07-29 16:46:11 UTC
I couldn't find any way to reproduce it. I've restarted IDE and it
works fine.
Comment 4 _ tboudreau 2003-07-29 17:14:52 UTC
Please also include any info if you are using a non-default 
look and feel or any other non-standard settings.

This can probably be cured by giving SheetTable a custom
FocusTraversalPolicy that always returns the table as the
next component - I'm not sure what 
SortingFocusTraversalPolicy is, but it looks like something
is trying to find the next focusable component after the
cell editor has been removed from the table (and so the table
no longer knows about the cell editor).

I've never seen this problem using JDK 1.4.2, but the whole
FocusTraversalPolicy shebang was added in JDK 1.4.0 - it's
possible we're tickling some bug that was fixed for 1.4.2.

Any steps to reproduce would be helpful.
Comment 5 ehucka 2003-07-29 17:58:11 UTC
I've seen it once again. I edited form in Component inspector and I
maked just double click on number property editor. IAE thrown and all
property editors were unusable (something like read only). It looked
like the focus stayed on the clicked editor though I clicked on
another editors (I'm not sure).

Only help is to restart IDE. 
Comment 6 _ tboudreau 2003-07-29 18:22:10 UTC
Click the name of the problem property.
Press CTRL-SHIFT-HOME and the class name of
the property editor will be displayed in the
console.  Let me know what it is.  Also, please
attach the stack trace for the IAE you mentioned.

The Form editor has some legacy property editors that use
the old EnhancedPropertyEditor interface - where they are
supplying their own ComboBoxes for editing.  I need to 
figure out if the problem is in one of their combo box
editors (there is an open issue for them to update their
editors to use InplaceEditor, or better, get rid of them),
or if it's in the default combo box editor for the new
property sheet.
Comment 7 ehucka 2003-08-06 09:32:17 UTC
I've seen it again. 
I pressed Ctrl+Shift+Home:

org.netbeans.modules.form.FormPropertyEditor

Exception's stacktrace and screenshot are in attachments.
Comment 8 ehucka 2003-08-06 09:33:29 UTC
Created attachment 11228 [details]
IAE's stacktrace.
Comment 9 ehucka 2003-08-06 09:35:34 UTC
Created attachment 11229 [details]
Screen shot.
Comment 10 Lukas Hasik 2003-08-06 10:13:02 UTC
*** Issue 35268 has been marked as a duplicate of this issue. ***
Comment 11 _ tboudreau 2003-08-11 16:07:36 UTC
Created a custom FocusTransferPolicy implementation for the property
sheet, which doesn't care if it owns the component it is asked about
or not.
Comment 12 Marian Mirilovic 2003-09-04 09:52:24 UTC
verified in [nb_dev](20030904)