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.