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]

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.)