The steps the user takes to make the table visible is by clicking on a node in a JTree. When the user clicks on the node, the JTable is created and displayed in another Panel.
Try adding a ComponentListener to the JTable. They have methods for showing, hiding, resizing, and moving components. JTable inherits the addComponentListener from java.awt.Component, which is why you might have missed.
Ron Patel
Greenhorn
Joined: Apr 11, 2004
Posts: 18
posted
0
Apparently the JTable created Resize events instead of visible events which is why I was missing it.
Thanks all for your help.
=)
Stephen Boston
Ranch Hand
Joined: Jul 14, 2005
Posts: 165
posted
0
Well this is crude, but take a look at this and see if it helps. BTW; if you removed the table1.setVisible(false) our of the constructor the componentShown() event fires when the table is added.
[ August 17, 2005: Message edited by: Stephen Boston ]