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 58695 - Moved button dissapears
Summary: Moved button dissapears
Status: VERIFIED FIXED
Alias: None
Product: guibuilder
Classification: Unclassified
Component: Natural Layout (show other bugs)
Version: 5.x
Hardware: All All
: P2 blocker (vote)
Assignee: issues@guibuilder
URL:
Keywords:
: 58696 58698 58699 (view as bug list)
Depends on:
Blocks:
 
Reported: 2005-05-09 12:11 UTC by _ lcincura
Modified: 2005-09-05 09:58 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
Form file (8.75 KB, text/plain)
2005-05-09 12:13 UTC, _ lcincura
Details
Java file (8.49 KB, text/plain)
2005-05-09 12:13 UTC, _ lcincura
Details
Assertion error (2.45 KB, text/plain)
2005-05-09 12:16 UTC, _ lcincura
Details
Form file one step before problem occures (5.22 KB, text/plain)
2005-05-09 16:26 UTC, _ lcincura
Details
Java file one step before problem occures (5.61 KB, text/plain)
2005-05-09 16:26 UTC, _ lcincura
Details

Note You need to log in before you can comment on or make changes to this bug.
Description _ lcincura 2005-05-09 12:11:35 UTC
NaturalLayout build 20050504

Drag jButton1 close to jTextField1 (to display guiding lines) and when it snaps
to guide lines, release mouse button => assertion error is thrown and button is
not visible any more. Undo does not work here.
Comment 1 _ lcincura 2005-05-09 12:13:20 UTC
Created attachment 22029 [details]
Form file
Comment 2 _ lcincura 2005-05-09 12:13:37 UTC
Created attachment 22030 [details]
Java file
Comment 3 _ lcincura 2005-05-09 12:16:38 UTC
Created attachment 22031 [details]
Assertion error
Comment 4 Tomas Pavek 2005-05-09 13:49:57 UTC
The attached form is already in a wrong state. Looking at the generated code,
there is a snippet:

  .add(54, 54, 54)
  .add(6, 6, 6)

This means two consecutive gaps before the button which is wrong (there should
be one 60, 60, 60 instead). Would you be able to reproduce the form creation to
the point when this appears in the code? (It is likely a step or two before the
state you've attached).
Comment 5 Tomas Pavek 2005-05-09 13:55:22 UTC
*** Issue 58696 has been marked as a duplicate of this issue. ***
Comment 6 _ lcincura 2005-05-09 16:24:10 UTC
I can reproduce it with these steps:

0, Open newly attached form
1, Select jTextField1 and downsize it to align its right edge with right edge of
jPanel1
2, Add JButton => it is added with big gap
Comment 7 _ lcincura 2005-05-09 16:26:04 UTC
Created attachment 22051 [details]
Form file one step before problem occures
Comment 8 _ lcincura 2005-05-09 16:26:48 UTC
Created attachment 22052 [details]
Java file one step before problem occures
Comment 9 Jan Stola 2005-05-09 16:40:58 UTC
*** Issue 58699 has been marked as a duplicate of this issue. ***
Comment 10 Jan Stola 2005-05-09 16:48:14 UTC
*** Issue 58698 has been marked as a duplicate of this issue. ***
Comment 11 Tomas Pavek 2005-05-10 16:42:27 UTC
I've committed a fix for this. It is not as general as I would like, but if
another case appears it should throw AE immediatelly so it will be easier to
notice. Available in build 20050510.
Comment 12 Marek Grummich 2005-07-11 12:35:19 UTC
Verified