Hi, everyone
I just finished the client GUI and found the major Layout settings are difficult to settle components. For example, it is a painstaking to fix components in FlowLayout. GridLayout makes all its children components the same size, sometimes it looks strange since components� sizes should be different from each other. When you resize the window, sometimes components in GridBagLayout could shrink becoming a dot or disappear.
So I decided to use null Layout and setBounds method to do it.
The advantage is that it can fix all components� positions precisely and provide exact size of each component. It also has some weaknesses. Each component must use setBounds method. If you resize the window, all components� sizes don�t change accordingly so I use �setResizable(false)�.
But I heard using pixels to fix components would cause disorder when transplanting the program into another OS. My OS is Windows 2000, so I installed the Cygwin software to mimic Unix Box and
test my client GUI on it. I found the program displays the same appearance as in Windows2000.
Does it mean that I can safely use setBounds method, which uses pixels to fix all components, or it could be trouble when I run it in pure Unix Box? Thanks in advance!
Regards, Ailsa Cape
[ August 23, 2005: Message edited by: Ailsa Cape ]