This week's book giveaway is in the OO, Patterns, UML and Refactoring forum. We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line! See this thread for details.
My test program below does not display the first panel which is on the first tab properly when it starts - every component is crammed together. i.e. does not look good.
Then I click the second tab which display the second panel properly.
Clicking the first tab will display the first panel properly.
I tried to solve this problem by calling "setVisible(false);" at the beginning of the program and calling "setVisible(true);" at the end of the program but to no avail.
Please help to make the first tab look good when my program starts.