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

Summary: When building my application, not all blocks are visible. The .setVisible(true) doesn't work for locked components. Please help... Kind regards, Chris
Product: guibuilder Reporter: cpbridges
Component: CodeAssignee: issues@guibuilder <issues>
Status: RESOLVED DUPLICATE    
Severity: normal    
Priority: P3    
Version: 6.x   
Hardware: All   
OS: All   
Issue Type: DEFECT Exception Reporter:
Attachments: What it should be...
What I get (which is wrong)
src

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!