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 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.
Created attachment 33241 [details] Source code
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 ).
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 ***
*** Issue 111942 has been marked as a duplicate of this issue. ***