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 64290 - jframe properties
Summary: jframe properties
Status: RESOLVED INVALID
Alias: None
Product: guibuilder
Classification: Unclassified
Component: Code (show other bugs)
Version: 4.x
Hardware: Other Windows XP
: P3 blocker (vote)
Assignee: issues@guibuilder
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-09-13 22:45 UTC by drenner
Modified: 2005-09-16 13:58 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description drenner 2005-09-13 22:45:57 UTC
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.
Comment 1 drenner 2005-09-13 23:12:12 UTC
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).
Comment 2 Jan Stola 2005-09-16 13:58:53 UTC
This behaviour is as designed. You should change the 'Form Size Policy'
property of the JFrame (in the Code tab) to Generate Resize Code.