Swing window layouts
From: Chris R. (offline_at_atshawdot.ca)
Date: 01/29/04
- Next message: Chris Smith: "Re: updating manifest"
- Previous message: Wendy S: "Re: html:checkbox (Struts)"
- Next in thread: Jim Sculley: "Re: Swing window layouts"
- Reply: Jim Sculley: "Re: Swing window layouts"
- Reply: Michael Dunn: "Re: Swing window layouts"
- Reply: Alex Molochnikov: "Re: Swing window layouts"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Thu, 29 Jan 2004 15:21:48 GMT
This is going to seem overly simple, i fear, and i suspect that i've
just read right past something in the literature, but here's what i'm
trying to accomplish:
I want to make a full screen window (JFrame) with two panels and a
label
It'll be arranged like this:
|~~~~~~~~~~~~~~~~~~~~|
| Label |
| |~~~~~~| |~~~~~~| |
| | | | | |
| | | | | |
| | | | | |
| |~~~~~~| |~~~~~~| |
|____________________|
The thing is, the JPanels in the middle there have no size. I have
tried to get them to appear reliably in the same place - i set their BG
colour to black in order to clearly see their size - but even manually
setting their preferred size doesn't seem to make a difference at all.
Basically, how can i go about precisely and per-pixel setting up and
laying out a GUI in Swing? The built-in component resizing seems to
trip me up every time, and it's driving me bananas. Anyone willing to
help me out?
-- Chris R. ======= http://offlineblog.com/
- Next message: Chris Smith: "Re: updating manifest"
- Previous message: Wendy S: "Re: html:checkbox (Struts)"
- Next in thread: Jim Sculley: "Re: Swing window layouts"
- Reply: Jim Sculley: "Re: Swing window layouts"
- Reply: Michael Dunn: "Re: Swing window layouts"
- Reply: Alex Molochnikov: "Re: Swing window layouts"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]