Focus table after create.

I’m trying to put focus on my table, to make it possible to use the up and down arrow keys to switch between the different rows.

Just using table.focus() doesn’t seem to do the job:
Table table = new Table(“Info table”, worksource);
table.focus();

I have tried working with Tabindex.
Table table = new Table(“Info table”, worksource);
table.setTabIndex(0);

Doesn’t seem to work either. Are there any other possibilities to force the focus on my Table?