Invisible JTable

Dear all,

I have a strange problem with a simple JTable. There is a JDialog, in which I have the JTable and a JPanel, both arranged by Borderlayout. Now for some reason, the Swing elements will not display when I set the JDialog to visible. Only when I resize the window are the table and the panel display. Any ideas why that could be?

Cheers,

N.

[375 byte] By [NetWundia] at [2007-10-2 5:24:41]
# 1
often this is caused by setting visible to true, prior to adding the components
Michael_Dunna at 2007-7-16 1:26:32 > top of Java-index,Desktop,Core GUI APIs...
# 2
> often this is caused by setting visible to true,> prior to adding the componentsThat was it! Thanks a million, Michael. N.
NetWundia at 2007-7-16 1:26:32 > top of Java-index,Desktop,Core GUI APIs...