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 66910 - Moving a JButton in a JPanel throws an exception
Summary: Moving a JButton in a JPanel throws an exception
Status: RESOLVED FIXED
Alias: None
Product: guibuilder
Classification: Unclassified
Component: Code (show other bugs)
Version: 5.x
Hardware: PC Windows XP
: P3 blocker (vote)
Assignee: issues@guibuilder
URL:
Keywords:
: 65898 (view as bug list)
Depends on:
Blocks:
 
Reported: 2005-10-16 10:04 UTC by tote
Modified: 2005-11-03 14:09 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
Message log (43.76 KB, text/plain)
2005-10-16 10:05 UTC, tote
Details
Screenshot before moving the selected element (41.73 KB, image/gif)
2005-10-16 10:05 UTC, tote
Details
Screenshot before dropping down the element to the final position (8.83 KB, image/gif)
2005-10-16 10:06 UTC, tote
Details
Screenshot after exception was thrown (49.24 KB, image/gif)
2005-10-16 10:06 UTC, tote
Details
Screenshot of not being able to drag UI controls. (6.92 KB, application/x-gzip)
2005-10-16 10:14 UTC, tote
Details
Latest form file. (18.22 KB, text/xml)
2005-10-18 10:48 UTC, tote
Details
Latest Java file for the previously attached form file. (19.36 KB, text/plain)
2005-10-18 10:49 UTC, tote
Details

Note You need to log in before you can comment on or make changes to this bug.
Description tote 2005-10-16 10:04:55 UTC
I tried to move a JButton in a JPanel so that its right edge is aligned to the
right edge of another JButton in the same panel. However, when I was about to
release the mouse button (i.e. drop the UI control), it threw an exception. See
attached log and images.
Comment 1 tote 2005-10-16 10:05:20 UTC
Created attachment 26004 [details]
Message log
Comment 2 tote 2005-10-16 10:05:47 UTC
Created attachment 26005 [details]
Screenshot before moving the selected element
Comment 3 tote 2005-10-16 10:06:17 UTC
Created attachment 26006 [details]
Screenshot before dropping down the element to the final position
Comment 4 tote 2005-10-16 10:06:53 UTC
Created attachment 26007 [details]
Screenshot after exception was thrown
Comment 5 tote 2005-10-16 10:14:19 UTC
Created attachment 26009 [details]
Screenshot of not being able to drag UI controls.
Comment 6 tote 2005-10-16 10:14:49 UTC
One more thing: the whole problem might have sg to do with the two "Browse..."
buttons. When I was playing with moving the right edge of the frame (and thus
the topmost panel, too) the "Port" and the upper "Browse..." controls moved
fine. But as soon as the left edge of the upper "Browse..." button got close to
the right edge of the lower "Browse..." button, it (upper "Browse...") didn't
move forward, but got stuck and only the frame was moving. See attached picture
(Fourth.gif).
Comment 7 Marek Grummich 2005-10-18 10:15:23 UTC
Can you attached .form and .java files in the last good state? Thanks!
Comment 8 tote 2005-10-18 10:48:56 UTC
Created attachment 26072 [details]
Latest form file.
Comment 9 tote 2005-10-18 10:49:40 UTC
Created attachment 26073 [details]
Latest Java file for the previously attached form file.
Comment 10 tote 2005-10-18 10:51:05 UTC
Sure, here you are. I've attached both files in question. Note that these are
the only source files currently in my project.
Comment 11 tote 2005-10-18 10:53:14 UTC
Oops, one more thing I forgot to mention in my last comment. The way how you can
reproduce the defect: simply drag the second (i.e. lower) "Browse..." button,
move it around and place back to its original position so that its right edge is
aligned to the right edge of the upper "Browse..." button ==> an exception will
occur and eventually the items will NOT be aligned. Happy bug fixing!
Comment 12 Jan Stola 2005-10-25 16:01:13 UTC
*** Issue 65898 has been marked as a duplicate of this issue. ***
Comment 13 Jan Stola 2005-10-25 16:02:21 UTC
The following exception is thrown:

java.lang.AssertionError
  at LayoutDesigner.maintainSize(LayoutDesigner.java:2791)
  at LayoutDesigner.intervalRemoved(LayoutDesigner.java:2706)
  at LayoutDesigner.layoutChanged(LayoutDesigner.java:1247)
  ...

e.g. maintainSize called on a sequential group. Probably caused
by a sequential group in a sequential group.
Comment 14 Jan Stola 2005-11-03 14:09:50 UTC
Fixed together with issue 66356.