|
-
Mar 20th, 2004, 08:29 AM
#1
Thread Starter
Hyperactive Member
Basic Question - Centering vertically on a JFrame
Hi,
Horizontal alignment seems to work:
x = (getSize().width - width) / 2;
But it looks like the titlebar is included when doing the same calculation vertically:
y = (getSize().height - height) / 2;
Is it possible to retrieve the size of the titlebar or to just set the size of the content area?
TIA,
D.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|