aspose file tools*
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 EJB 3 in Action this week in the EJB and other Java EE Technologies 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: 8707

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