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 18235 - Wrong code is sharing BoxLayout
Summary: Wrong code is sharing BoxLayout
Status: CLOSED FIXED
Alias: None
Product: guibuilder
Classification: Unclassified
Component: Code (show other bugs)
Version: 3.x
Hardware: All All
: P2 blocker (vote)
Assignee: Tomas Pavek
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2001-11-30 19:16 UTC by Gehtdich Nixan
Modified: 2003-06-30 18:33 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
The generated form-file. (6.40 KB, text/xml)
2001-12-01 19:23 UTC, Gehtdich Nixan
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Gehtdich Nixan 2001-11-30 19:16:11 UTC
Hi all,

I got an errormessage :"java.awt.AWTError: BoxLayout can't be shared".
This issue is described and solved here : 
http://www-ncmir.ucsd.edu/~mona/java3dFAQ.html#boxlayout

It would be nice, if someone could fix that.

Thanks,
Faralla
Comment 1 Marian Mirilovic 2001-12-01 11:35:57 UTC
It would be nice if you give us more info, IDE version, build number,
jdk version, steps to reproduce, your form file which was generated by
Form editor, ....

P1 = means data lost, 
Do you lose your data ?

Please add us more info and reopen this issue, meantime I close as
WORKSFORME. 

Thanks in advance.
Comment 2 Marian Mirilovic 2001-12-01 13:15:58 UTC
o
Comment 3 Gehtdich Nixan 2001-12-01 19:23:48 UTC
Created attachment 3649 [details]
The generated form-file.
Comment 4 Gehtdich Nixan 2001-12-01 19:24:52 UTC
I designed the Form using the form-designer. 
Netbeans 3.3ß5.
The Form first worked, but after changing some own code in the class 
in didn´t anymore.. 
I didn´t lose any data, so P2 should be fine. 
The .form-code is attached.

Hope this helps.

Faralla
Comment 5 Tomas Pavek 2001-12-03 15:16:55 UTC
Fix applied to trunk:

diff -r1.95 GandalfPersistenceManager.java
1266c1266
<             layoutParams[0] = 
layoutSupport.getContainerCodeExpression();
---
>             layoutParams[0] = 
layoutSupport.getContainerDelegateCodeExpression();
Comment 6 Tomas Pavek 2001-12-03 17:34:08 UTC
Integrated in 3.3.1.
Comment 7 Tomas Pavek 2001-12-03 18:07:45 UTC
Fixed for 3.3.0 too.
Comment 8 Marian Mirilovic 2001-12-04 09:17:10 UTC
verified in [nb_release33](200112040330)
Comment 9 Marian Mirilovic 2001-12-05 13:07:31 UTC
verified in [nb_release330](200112042330) on [jdk1.3.1](01) &&
[jdk1.4](88)
Comment 10 Quality Engineering 2003-06-30 18:33:19 UTC
Resolved for 3.3.x or earlier, no new info since then -> closing.