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 71836 - NB 5.0 RC2 broke my custom layout managers' supporting modules
Summary: NB 5.0 RC2 broke my custom layout managers' supporting modules
Status: VERIFIED FIXED
Alias: None
Product: guibuilder
Classification: Unclassified
Component: Code (show other bugs)
Version: 5.x
Hardware: All All
: P1 blocker with 1 vote (vote)
Assignee: Tomas Pavek
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-01-25 09:32 UTC by ikysil
Modified: 2006-05-29 23:12 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 ikysil 2006-01-25 09:32:57 UTC
My layout managers' support modules stop working in RC2. There are no exceptions
in log, my module had been loaded and restored ok, but the form layout is set to
default (BorderLayout) instead of custom layout manager. I can create and save
new form - saved .form file looks ok. Layout customizers don't work ('Customize
Layout...' menu item is disabled).

Compiled modules are available from
https://developer.berlios.de/projects/nblayoutpack/, source code is available too.
Comment 1 Marek Grummich 2006-01-25 10:29:31 UTC
Customize Layout menu item is enabled by a selected layout. Now, the customizer
is  enabled for GridBaglayout in NetBeans. I tried to download your
nblayoutpack-riverlayout-nb5.0beta-1.0.0.20060103.2302.nbm, create a new JFrame,
Free design layout is default for new created forms, and switch to River layout
(similar like Flow layout), no objection. Leave this report for a tracked
purpose, but change priority to standard P3. One question yet, what was the last
build you didn't encountered a problem?
Comment 2 Marek Grummich 2006-01-25 10:45:46 UTC
I see the problem now, when the form file is closed and opened again, the border
layout is used!
Comment 3 Tomas Pavek 2006-01-25 21:00:18 UTC
Fixed in dev trunk.

/cvs/form/src/org/netbeans/modules/form/GandalfPersistenceManager.java
new revision: 1.159; previous revision: 1.158
Comment 4 Michel Graciano 2006-01-27 15:03:26 UTC
This correct the PercentLayout problems too.
See https://l2fprod-common.dev.java.net/issues/show_bug.cgi?id=69 issue.

Regards.
Comment 5 ikysil 2006-05-19 21:20:08 UTC
The issue appeared again, the behavior is even worse than before: the custom layout information had 
been lost after saving a form!
Comment 6 ikysil 2006-05-19 21:23:20 UTC
The issue reappeared in NetBeans 5.5 Beta.
Comment 7 Tomas Pavek 2006-05-20 02:36:25 UTC
The fix has not been integrated to 5.5 yet - thanks for reminder.

Don't know about the saving problem - will check it later next week. Is the 
behavior really different from 5.0? And does it all work in trunk (6.0) builds?
Comment 8 ikysil 2006-05-20 02:51:22 UTC
I've tried the NB 5.5 Beta when it came out and the behavior was really different. I haven't tried NB 6.0 and 
will have no chance to try until, say, tuesday or wednesday next week - I have to return from JavaOne to 
my sources. :)
Comment 9 Tomas Pavek 2006-05-24 00:34:27 UTC
Seems that the different behavior in 5.5 is caused by issue 75225 - the form is
reloaded immediately when saved - that's why the layout breaks at this moment.
This should not be a problem if the loading works. So applying the fix from
trunk to 5.5 branch should be enough. I may possibly create a workaround for
75225 if needed.
Comment 10 Tomas Pavek 2006-05-24 00:57:41 UTC
Ok, I've applied the fix to 5.5 branch. Tested on FormLayout, seems working now.
Please verify in tomorrow or later daily build of 5.5.

/cvs/form/src/org/netbeans/modules/form/GandalfPersistenceManager.java
new revision: 1.134.2.2.2.1; previous revision: 1.134.2.2
Comment 11 ikysil 2006-05-29 23:12:49 UTC
Verified in NB 5.5 20060526 daily