I have a problem. Initially when my program starts up, I display a JTable that has no rows. The user can then add rows to the table. My problem is when I run the program initially, and I tab through all the text fields and buttons in the panel, once I tab in the JTable, the program blows up because I guess I am trying to select the cells of the table when there are no rows to begin with.
My question is, is there any way that we can remove the focus of the JTable when we use the keyboard tab key? I looked at the table.setFocusable() thing, but that method doesn't exist for some reason. I would appreciate any help.