This week's book giveaway is in the Mac OS forum.
We're giving away four copies of a choice of "Take Control of Upgrading to Yosemite" or "Take Control of Automating Your Mac" and have Joe Kissell on-line!
See this thread for details.
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: 8915

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

"blabbing like a narcissistic fool with a superiority complex" ~ N.A.
[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]
It is sorta covered in the JavaRanch Style Guide.
subject: A question about GUIs