This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes GWT and the fly likes TabLayoutPanel.selectedTab error Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Frameworks » GWT
Bookmark "TabLayoutPanel.selectedTab error" Watch "TabLayoutPanel.selectedTab error" New topic
Author

TabLayoutPanel.selectedTab error

peter tong
Ranch Hand

Joined: Mar 15, 2008
Posts: 240
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?!!
Maneesh Godbole
Saloon Keeper

Joined: Jul 26, 2007
Posts: 10167
    
    8

Try removing the call to setVisible. I suspect that is causing the conflict.


[How to ask questions] [Donate a pint, save a life!] [Onff-turn it on!]
peter tong
Ranch Hand

Joined: Mar 15, 2008
Posts: 240
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.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: TabLayoutPanel.selectedTab error
 
Similar Threads
JTabbedPane Checks
TabLayoutPanel auto height grow in gwt2.0
Focus: cant find the relevant method
JTabbedPane Focus problem:
Prevent focus change for JButtons