difference between the tree pane and content pane
Answers
Answered by
0
hey bahubali here,
JFrames have a content pane, which holds the components. These components are sized and positioned by the layout manager when JFrame's pack() is called.
Content pane border. There are several ways to handle the content pane, but most of them fail to provide one basic requirement -- ability to set a border. If you look at design guidelines (eg, Sun's Java Look and Feel Design Guidelines, Second Edition) and actual practice for attractive windows (both JFrames and JDialogs), you will generally observe the following:
No, or thin, borders. Windows with a large editing or display area often have no or very thin borders. Users want to have as big a working area as possible.Borders appear on most windows that are filled with controls. For example, the typical dialog box or secondary window has a relatively wide (eg, 12 pixel) border, and similarly for primary windows that have a fixed size.
The problem is that the Container class doesn't have a way to set borders.
hope u understood
JFrames have a content pane, which holds the components. These components are sized and positioned by the layout manager when JFrame's pack() is called.
Content pane border. There are several ways to handle the content pane, but most of them fail to provide one basic requirement -- ability to set a border. If you look at design guidelines (eg, Sun's Java Look and Feel Design Guidelines, Second Edition) and actual practice for attractive windows (both JFrames and JDialogs), you will generally observe the following:
No, or thin, borders. Windows with a large editing or display area often have no or very thin borders. Users want to have as big a working area as possible.Borders appear on most windows that are filled with controls. For example, the typical dialog box or secondary window has a relatively wide (eg, 12 pixel) border, and similarly for primary windows that have a fixed size.
The problem is that the Container class doesn't have a way to set borders.
hope u understood
Similar questions