This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach 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

Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
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: 8836

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]
subject: A question about GUIs
Similar Threads
Drag and drop a textbox.
A question about GUIs
ScrollPane in TabbedPane
How to build focus rectangle