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 62324 - Resizing JPanel with JPanel inside
Summary: Resizing JPanel with JPanel inside
Status: RESOLVED WONTFIX
Alias: None
Product: guibuilder
Classification: Unclassified
Component: Natural Layout (show other bugs)
Version: 5.x
Hardware: All All
: P4 blocker (vote)
Assignee: issues@guibuilder
URL:
Keywords:
: 63832 (view as bug list)
Depends on:
Blocks:
 
Reported: 2005-08-15 17:14 UTC by Lukas Jungmann
Modified: 2009-12-21 04:55 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
form (11.11 KB, text/plain)
2005-08-15 17:15 UTC, Lukas Jungmann
Details
java.src (10.07 KB, text/plain)
2005-08-15 17:16 UTC, Lukas Jungmann
Details
ide log (17.34 KB, text/plain)
2005-08-15 17:19 UTC, Lukas Jungmann
Details
Exception.txt (2.05 KB, text/plain)
2005-09-06 13:58 UTC, Marek Grummich
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Lukas Jungmann 2005-08-15 17:14:22 UTC
[build 200508111800]

- have attached form
- change height of jPanel2 - catch panel at the top, drag it and move it downwards

=> java.lang.AssertionError
        at
org.netbeans.modules.form.layoutdesign.LayoutFeeder.mergeSequentialInclusions(LayoutFeeder.java:1879)
        at
org.netbeans.modules.form.layoutdesign.LayoutFeeder.add(LayoutFeeder.java:226)
        at
org.netbeans.modules.form.layoutdesign.LayoutDesigner.endMoving(LayoutDesigner.java:430)
Comment 1 Lukas Jungmann 2005-08-15 17:15:00 UTC
Created attachment 23861 [details]
form
Comment 2 Lukas Jungmann 2005-08-15 17:16:11 UTC
Created attachment 23862 [details]
java.src
Comment 3 Lukas Jungmann 2005-08-15 17:19:27 UTC
Created attachment 23863 [details]
ide log
Comment 4 Marek Grummich 2005-09-06 13:57:31 UTC
Unable to reproduce the reported exception in the build 050609, BUT the
following is thrown if you repeate steps:

java.lang.NullPointerException
	at
org.netbeans.modules.form.layoutdesign.LayoutFeeder.setParallelSameSize(LayoutFeeder.java:1545)
	at
org.netbeans.modules.form.layoutdesign.LayoutFeeder.alignInParallel(LayoutFeeder.java:1488)
	at
org.netbeans.modules.form.layoutdesign.LayoutFeeder.addInterval(LayoutFeeder.java:663)
	at org.netbeans.modules.form.layoutdesign.LayoutFeeder.add(LayoutFeeder.java:242)
	at
org.netbeans.modules.form.layoutdesign.LayoutDesigner.endMoving(LayoutDesigner.java:469)
	at
org.netbeans.modules.form.HandleLayer$ResizeComponentDrag.end(HandleLayer.java:2170)
	at org.netbeans.modules.form.HandleLayer$ComponentDrag.end(HandleLayer.java:1865)
	at org.netbeans.modules.form.HandleLayer.endDragging(HandleLayer.java:776)
	at org.netbeans.modules.form.HandleLayer.mouseReleased(HandleLayer.java:1268)
Comment 5 Marek Grummich 2005-09-06 13:58:12 UTC
Created attachment 24542 [details]
Exception.txt
Comment 6 Jan Stola 2005-09-06 14:41:25 UTC
The last exception (NPE from setParallelSameSize()) is fixed in the latest
build, but there is another exception:

java.lang.AssertionError
	at
org.netbeans.modules.form.layoutdesign.LayoutFeeder.addToGroup(LayoutFeeder.java:709)
	at
org.netbeans.modules.form.layoutdesign.LayoutFeeder.addInterval(LayoutFeeder.java:659)
	at org.netbeans.modules.form.layoutdesign.LayoutFeeder.add(LayoutFeeder.java:242)
	at
org.netbeans.modules.form.layoutdesign.LayoutDesigner.endMoving(LayoutDesigner.java:469)
Comment 7 Jan Stola 2005-09-06 15:00:26 UTC
Returning the priority back to P3. It has been increased without any reason.
Comment 8 Marek Grummich 2005-09-06 15:11:29 UTC
And exception is not a reason? I don't want to debate about priority, I know,
you have dashboard, ..., but I think, every exception MUST be fixed, doesn't
matter if  P2 or P3. 
Comment 9 Jan Stola 2005-09-06 15:16:39 UTC
This issue was about thrown exception from the start and it had priority P3.
After few weeks you have realized that another exception is thrown and changed
priority to P2. I don't understand why another exception means higher
priority.
Comment 10 Marek Grummich 2005-09-06 15:34:42 UTC
Agree about exception. I want to focus this issue only. I think that a lot of
minor, standard issue might be more boring for user then one bif issue.
Comment 11 _ lcincura 2005-09-15 11:01:13 UTC
*** Issue 63832 has been marked as a duplicate of this issue. ***
Comment 12 Jan Stola 2005-09-16 14:13:55 UTC
No exception is thrown in the latest build, but the new size of the jPanel2
is not kept - it resets back to the original size.
Comment 13 Marek Grummich 2005-12-08 10:58:02 UTC
Cannot reproduce in 200512072015
Comment 14 Tomas Pavek 2005-12-09 14:19:50 UTC
I can still reproduce jPanel2 not keeping its height when resizing vertically -
it jumps back immediately.  The problem is likely related to the subpanel it
contains - it prevents the surrounding panel from shrinking.
Comment 15 Jan Stola 2008-03-06 16:18:38 UTC
The exception is no longer thrown and the described problem has an easy workaround (resize inner panel before resizing 
the outer panel) => lowering priority to P4.
Comment 16 Quality Engineering 2009-12-21 04:55:37 UTC
This bug was reported against NetBeans IDE 6.0 or an older release, or against a non-maintained module. NetBeans team does not have enough resources to get to this issue, therefore we are closing the issue as a WONTFIX. If you are interested in providing a patch for this bug, please see our NetFIX guidelines for how to proceed. 

We apologize for any inconvenience.


Thank you.
The NetBeans Team