JTable cannot gain focus when it contains no rows

JTable can only gain focus when it has at least one row. does anyone know how to allow JTable to gain focus when it is empty?Thanx
[151 byte] By [youngboy] at [2007-9-26 9:16:16]
# 1
please help!!!
youngboy at 2007-7-1 20:29:16 > top of Java-index,Archived Forums,Swing...
# 2
Hi,JTable won't get focus. Only table cells get focus.
aswath_a at 2007-7-1 20:29:16 > top of Java-index,Archived Forums,Swing...
# 3
Yes, the table gets focus.Cells are only selected.(Cell editors can get focus).The table won't get focus if it contains no rows, because it will have a zero Dimension.(Only the JTableHeader is shown, which is a different component altogether.)
SKelvin at 2007-7-1 20:29:16 > top of Java-index,Archived Forums,Swing...
# 4
I don't know if this helps at this late stage but an empty JTable can, by default, be the focus owner in J2SE 1.4
adwarner at 2007-7-1 20:29:16 > top of Java-index,Archived Forums,Swing...