there is a TablayoutPanel tabLayoutPanel, and FocusPanel SSearchDetailResult
there is a button in the first tab of tabLayoutPanel and when press that button, I want the focuspanel tab is selected, so I write
[code]
SSearchDetailResult sSearchDetailResult = new SSearchDetailResult();
tabLayoutPanel.add(sSearchDetailResult, "Detail");
sSearchDetailResult.setVisible(true);
tabLayoutPanel.selectTab(sSearchDetailResult);
// tabLayoutPanel.selectTab(1);
[/code]
the result is the sSearchDetailResult can be selected, but there is error in eclipse development tab as follow:
JavascriptException: (Error): Can't move focus to the control because it is invisible, not enabled, or of a type that does not accept the focus.
what is the problem come from?!!