panel size vs. frame size
- From: "atilagunes@xxxxxxxxx" <atilagunes@xxxxxxxxx>
- Date: 26 Sep 2006 01:20:37 -0700
Hi,
i'm writing a gui that has a main panel and includes 3 subpanels.. and
has a Menu Bar..
i'm setting size of Frame with
GraphicsEnvironment.getLocalGraphicsEnvironment().getMaximumWindowBounds()
function.
My screen Size is 1280 * 800 and because of Start button, it takes 1280
* 770.. its ok so far.
you know the JFrame has a title bar. and suppose that i add a MenuBar
to that JFrame. how can i measure the best size of main Panel and its
bounds. i'm using null layout in main Panel and force the subpanels to
main Panel but the X and Y values are not true. i think it shifts to
down because of title bar and menu bar. i'm trying several boundaries
for subpanels but i could not fit them onto main panel..
i hope this message can be understood..
Regards
Atila Gunes.
.
- Follow-Ups:
- Re: panel size vs. frame size
- From: Ian Wilson
- Re: panel size vs. frame size
- From: Thomas Weidenfeller
- Re: panel size vs. frame size
- From: Andrew Thompson
- Re: panel size according to frame size
- From: atilagunes@xxxxxxxxx
- Re: panel size vs. frame size
- Prev by Date: Re: GridBagLayout problems
- Next by Date: Re: panel size according to frame size
- Previous by thread: Tooltip Problem with Synth
- Next by thread: Re: panel size according to frame size
- Index(es):