Re: panel size vs. frame size
- From: "Andrew Thompson" <andrewthommo@xxxxxxxxx>
- Date: 26 Sep 2006 02:24:55 -0700
atilagunes@xxxxxxxxx wrote:
i'm asking these coz two jPanel must be fix and the remain jPanel must
takes its bound according to others while jFrame size is changing.
Sounds like it mght be well suited to a nested layout,
or perhaps a single BorderLayout.
Put the component that you want to resize into
BorderLayout.CENTER, then if the other components
can go 'around it', try BorderLayout.EAST and WEST
or BorderLayout.NORTH and SOUTH.
If you need both the fixed components on one side,
put them in a JPanel with an appropraite layout, then
add the JPanel to the main BorderLayout (in any one
of NORTH/EAST/WEST/SOUTH).
all standart layouts except box and gridbag are meaningless for me..
You need to play with them till they have a meaning.
It is very hard to layout GUI's without some understanding
of a number of layouts, as well as the idea of nested layouts
(putting a panel with a different layout, inside a larger layout).
Andrew T.
.
- Follow-Ups:
- Re: panel size vs. frame size
- From: atilagunes@xxxxxxxxx
- Re: panel size vs. frame size
- References:
- panel size vs. frame size
- From: atilagunes@xxxxxxxxx
- Re: panel size vs. frame size
- From: Andrew Thompson
- Re: panel size vs. frame size
- From: atilagunes@xxxxxxxxx
- panel size vs. frame size
- Prev by Date: Re: panel size vs. frame size
- Next by Date: Re: panel size vs. frame size
- Previous by thread: Re: panel size vs. frame size
- Next by thread: Re: panel size vs. frame size
- Index(es):
Relevant Pages
|
|