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 swing jframe & add a text pane & button. I use absolute layout so that the position of objects in the designer will not change. I set some properties (background color, etc, etc). When I run 'test form' the frame right border has moved in and the frame bottom border has moved up to touch the objects. see below: ---------------------------- | text pane | | | | | | | | button | | | | | | | ----------------------------- above is look in designer. below is what I get when i 'test form' and also when i create a new frame object: ---------------- | text pane | | | | | | button | --------------- the right border of the frame comes in to touch the right border of the text pane and the bottom border comes up to touch the bottom of the button. i have tried everything I can think of to get this to work but it wont. thank you.
want to make sure i mention this as well: when i set frame color properties in the designer (background color, etc) and hit 'test form' some of the colors showing in the designer do not show as they are in the designer. also when i run a program that creates a new form the look and feel is different (background color is drab gray and font in button is different, etc).
This behaviour is as designed. You should change the 'Form Size Policy' property of the JFrame (in the Code tab) to Generate Resize Code.