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.
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.
Created attachment 26004 [details] Message log
Created attachment 26005 [details] Screenshot before moving the selected element
Created attachment 26006 [details] Screenshot before dropping down the element to the final position
Created attachment 26007 [details] Screenshot after exception was thrown
Created attachment 26009 [details] Screenshot of not being able to drag UI controls.
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).
Can you attached .form and .java files in the last good state? Thanks!
Created attachment 26072 [details] Latest form file.
Created attachment 26073 [details] Latest Java file for the previously attached form file.
Sure, here you are. I've attached both files in question. Note that these are the only source files currently in my project.
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!
*** Issue 65898 has been marked as a duplicate of this issue. ***
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.
Fixed together with issue 66356.