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 83370 - Bug in visual editor GUI
Summary: Bug in visual editor GUI
Status: RESOLVED DUPLICATE of bug 82583
Alias: None
Product: guibuilder
Classification: Unclassified
Component: Code (show other bugs)
Version: 5.x
Hardware: Macintosh (x86) Windows XP
: P3 blocker (vote)
Assignee: issues@guibuilder
URL:
Keywords:
: 111942 (view as bug list)
Depends on:
Blocks:
 
Reported: 2006-08-24 13:13 UTC by vanvu_dinh
Modified: 2007-08-06 09:27 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
Source code (307.21 KB, application/octet-stream)
2006-08-24 13:14 UTC, vanvu_dinh
Details

Note You need to log in before you can comment on or make changes to this bug.
Description vanvu_dinh 2006-08-24 13:13:18 UTC
I create a form using jLayeredPane. Then I add a few stuffs to this layout. The
first run is OK. Since the second run, which i modified something on these
stuffs, i.e. label text, I see nothing at all on this layer. Even if I undo my
modification, it doesn't help.
Comment 1 vanvu_dinh 2006-08-24 13:14:39 UTC
Created attachment 33241 [details]
Source code
Comment 2 Jan Stola 2006-08-25 11:28:06 UTC
I am sorry, I am not able to reproduce this issue. Could you, please, provide 
more details - how the attached files should be used to reproduce the issue?

The only form that uses layered pane is gui.GUI. There is a layered pane on 
Choose Data Fusion Algorithm tab and this layered pane displays its 
subcomponents correctly (even when renaming ).
Comment 3 Jan Stola 2006-08-29 11:44:08 UTC
Finally I found why the content of the JLayeredPane is not shown.
The width and/or height in the generated code is set to -1.
For example:

jRadioButton1.setBounds(80, 30, 180, -1);

Value -1 is used as an internal representation of 'Preferred' value
for height and width layout properties. There is already an issue
82583 that shows that this value doesn't work well in Null layout.
JLayeredPane uses Null layout => closing this issue as a duplicate of 82583.

There is a simple workaround - move one of the components and invoke Undo - the 
code will be regenerated correctly.

*** This issue has been marked as a duplicate of 82583 ***
Comment 4 Jan Stola 2007-08-06 09:27:05 UTC
*** Issue 111942 has been marked as a duplicate of this issue. ***