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 195071 - When building my application, not all blocks are visible. The .setVisible(true) doesn't work for locked components. Please help... Kind regards, Chris
Summary: When building my application, not all blocks are visible. The .setVisible(tru...
Status: RESOLVED DUPLICATE of bug 192507
Alias: None
Product: guibuilder
Classification: Unclassified
Component: Code (show other bugs)
Version: 6.x
Hardware: All All
: P3 normal (vote)
Assignee: issues@guibuilder
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-02-04 16:03 UTC by cpbridges
Modified: 2011-02-07 15:00 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
What it should be... (120.07 KB, image/png)
2011-02-04 16:40 UTC, cpbridges
Details
What I get (which is wrong) (121.41 KB, image/png)
2011-02-04 16:42 UTC, cpbridges
Details
src (2.72 MB, application/zip)
2011-02-07 14:34 UTC, cpbridges
Details

Note You need to log in before you can comment on or make changes to this bug.
Description cpbridges 2011-02-04 16:03:12 UTC
Product Version = NetBeans IDE 6.9.1 (Build 201011082200)
Operating System = Windows XP version 5.1 running on x86
Java; VM; Vendor = 1.6.0_23
Runtime = Java HotSpot(TM) Client VM 19.0-b09
Comment 1 cpbridges 2011-02-04 16:40:13 UTC
Created attachment 105651 [details]
What it should be...
Comment 2 cpbridges 2011-02-04 16:42:19 UTC
Created attachment 105652 [details]
What I get (which is wrong)
Comment 3 Tomas Pavek 2011-02-07 13:19:18 UTC
I can't tell what is wrong without having the sources. Can you attach your project here, or send it to me?
Comment 4 cpbridges 2011-02-07 14:34:43 UTC
Created attachment 105703 [details]
src
Comment 5 Tomas Pavek 2011-02-07 14:56:49 UTC
I see. This is in fact bug 192507, already fixed. You get the fix if you download a daily build of current NB 7.0, or wait for Beta 2.

If you want to stay with your current version (6.9), try to avoid using JLayeredPane (do you really need it in your app - instead of using just plain JPanel?). If you need it, you have to set the Height layout property to some specific number instead of "Default". Or consider to move all the components into a JPanel with null layout and then place this panel into the layered pane.

*** This bug has been marked as a duplicate of bug 192507 ***
Comment 6 cpbridges 2011-02-07 15:00:41 UTC
Great! Thanks Tomas!