According to my above Table view once I click on any Action icon it will navigate to another window (with selected data). How I keep selected same row when it back again to this Table view. Thanks.
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试):
问题:
回答1:
So sorry actually I have duplicated the question
Correct answer was there:
Platform.runLater(new Runnable()
{
@Override
public void run()
{
table.requestFocus();
table.getSelectionModel().select(0);
table.getFocusModel().focus(0);
}
});
回答2:
Just remember the current selection (as a field) in your table view wrapper instance, and the restore it on re-focus.