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 70369 - errors with SwingX JXTaskPaneContainer
Summary: errors with SwingX JXTaskPaneContainer
Status: RESOLVED FIXED
Alias: None
Product: guibuilder
Classification: Unclassified
Component: Code (show other bugs)
Version: 5.x
Hardware: All All
: P2 blocker (vote)
Assignee: issues@guibuilder
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-12-14 01:45 UTC by _ jrichard
Modified: 2006-01-03 09:50 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
messages log (37.69 KB, text/plain)
2005-12-14 01:45 UTC, _ jrichard
Details

Note You need to log in before you can comment on or make changes to this bug.
Description _ jrichard 2005-12-14 01:45:15 UTC
I see a problem when using the SwingX JXTaskPaneContainer and JXTaskPane components.

This is reproducible by creating a simple form with a JXTaskPaneContainer and a couple JXTaskPanes 
inside it.  I also put a few JButtons or JXHyperlinks.  Save this form (test it to prove to yourself that it 
works).

A this point, the only error should be an annoying warning when constructing the form.  It complains 
that there is a null layout.

Save the project and all files and then exit NetBeans.

Start netbeans again, and you'll see a bunch of errors about the form when starting concerning the 
layout.

This is with the SwingX 051211 release.
Comment 1 _ jrichard 2005-12-14 01:45:56 UTC
Created attachment 27809 [details]
messages log
Comment 2 _ jrichard 2005-12-14 01:46:52 UTC
I also tried the NB 5.1 release on Windows... this had problems which were worse.
Comment 3 Tomas Pavek 2005-12-21 11:31:16 UTC
JXTaskPane and JXTaskPaneContainer have a special layout which form editor
handles as "unknown" - thus the warning. Two problems are connected with this case:
- the unknown layout is reported as error when loading a form
- components in container with unknown layout are not loaded correctly

The first problem is harmless, though it looks quite strange (user is warned
about errors in form, but can ignore it).

The second problem (not originally reported here) makes the loaded container
unusable - to reproduce add a component (e.g. JXTaskPane) to JXTaskPaneContainer
and after reloading try to delete it. An exception occurs since the components
are not correctly loaded into the "unknown" layout.

I've fixed both problems in trunk. The warning is now just silently logged, and
components are loaded as expected.

Diff is here:
http://form.netbeans.org/servlets/ReadMsg?list=cvs&msgNo=3481
Comment 4 Tomas Pavek 2005-12-21 11:48:52 UTC
See also issue 70683 (suggesting further improvement for future).
Comment 5 Jan Stola 2005-12-21 15:29:48 UTC
I have reviewed the fix - it seems to be correct.
Comment 6 Tomas Pavek 2006-01-03 09:50:11 UTC
Fix integrated also into 5.0.