my dog learned polymorphism
The moose likes Beginning Java and the fly likes A question about GUIs Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "A question about GUIs" Watch "A question about GUIs" New topic

A question about GUIs

Giles Humphreys

Joined: Jul 16, 2004
Posts: 4
When doing GUI work, what is the relation between the attributes PreferredSize, Size, MaximumSize, MinimumSize etc. and the actual size of a component?
It seems that how I set these has variable and marginal effect on the actual size of a component.
Can you help??
Joe Ess

Joined: Oct 29, 2001
Posts: 9189

Sounds like you could use the Java Tutorial: Creating a GUI with Swing chapter on Laying out Components Within a Container

[How To Ask Questions On JavaRanch]
Dirk Schreckmann

Joined: Dec 10, 2001
Posts: 7023
Moving this to the Swing / JFC / AWT forum...
[ August 13, 2004: Message edited by: Dirk Schreckmann ]

[How To Ask Good Questions] [JavaRanch FAQ Wiki] [JavaRanch Radio]
I agree. Here's the link:
subject: A question about GUIs
It's not a secret anymore!