colin shuker wrote:I use null layout so I can arrange my components exactly where I want them.
I still have no clue on how to do what I wanted.
SCJP 1.4 - SCJP 6 - SCWCD 5 - OCEEJBD 6 - OCEJPAD 6
How To Ask Questions How To Answer Questions
colin shuker wrote:ok, whats wrong with null layout?
colin shuker wrote:Well I'm making quite a complex gui, if I try and use GridBagLayout, I'll just have a nervous breakdown.
My gui is a fixed size, so it doesn't need to resize.
So it seems only problem is I can't get preferredSize or something.
I guess Ill have to try somehting else
I used getPreferredSize on the timetablePane, and it seems to ignore the top row of table cells used to show the column names.
colin shuker wrote:I use null layout so I can arrange my components exactly where I want them.
I still have no clue on how to do what I wanted.
Thanks anyway
Thanks, Nishan Patel
SCJP 1.5, SCWCD 1.5, OCPJWSD Java Developer,My Blog
Maneesh Godbole wrote:Nishan,
I don't think SpringLayout is a good idea. SpringLayout is designed for DnD style GUI builders. Besides SpringLayout does not have the advantages of other layout managers.
Thanks, Nishan Patel
SCJP 1.5, SCWCD 1.5, OCPJWSD Java Developer,My Blog
Maneesh Godbole wrote:
Check out set/getPreferredSize(). You can use this to define your panels dimensions. Of course honoring these dimensions would depend on the panel's parent's layout.
I'm really tired of being engaged with stuff other than Java and programming
Wish to get back soon to my love...
Switch
view plaincopy to clipboardprint?
1. this.getContentPane().add(outerPanel);
this.getContentPane().add(outerPanel);
to
view plaincopy to clipboardprint?
1. this.getContentPane().add(panel);
I need the scrollBar to be directly under the table.
Michael Dunn wrote:@ esmaeil ashrafi
"but let's talk about my program that still have a bit of problem : "
better to start your own thread instead of hijacking this one
(you'll get more people looking at it that way)