• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Liutauras Vilda
  • Tim Cooke
  • Jeanne Boyarsky
  • Bear Bibeault
Sheriffs:
  • Knute Snortum
  • paul wheaton
  • Devaka Cooray
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Ron McLeod
  • Piet Souris
  • Ganesh Patekar
Bartenders:
  • Tim Holloway
  • Carey Brown
  • salvin francis

TabLayoutPanel.selectedTab error

 
Ranch Hand
Posts: 250
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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


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?!!
 
Bartender
Posts: 11445
18
Android Google Web Toolkit Mac Eclipse IDE Ubuntu Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Try removing the call to setVisible. I suspect that is causing the conflict.
 
peter tong
Ranch Hand
Posts: 250
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
finally I create a ScheduledCommand for tayLayoutPanel.selectTab(1);

Although in java,


the sSearchDetailResult should already be created before selectTab is run, but after compile to javascript, seems not the case (just I guess), after I use ScheduledCommand, the problem is solved.
 
The knights of nee want a shrubbery. And a tiny ad:
create, convert, edit or print DOC and DOCX in Java
https://products.aspose.com/words/java
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!