Skip to main content

TabbedPane and list in each tab

2 replies [Last post]
francisdb
Offline
Joined: 2006-06-16

My application has a tabbedpane with in each tab a list.

I would like the tabbedpane to skip focus and have th user navigate using up-down-left-right. So the step to switch focus from the list to the tabbed pane and back to the new tab's list should be avoided.

I tried tabbedPane.setFocusable(false); and listening to key events at the form level. But the form still focuses the tabbedpane. Maybe this should be indicated in the tabbedpane javadoc?

What would be the best way to implement this?

Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
chen

Hi,
First check out Shai's blog post about foucs:
http://lwuit.blogspot.com/2008/06/customizing-lwuits-focus-behavior.html
Anyway, currently you won't be able to switch the tabs in the TabbedPane
manually, I will add an API for this.

Regards,
Chen

lwuit-users@mobileandembedded.org wrote:
> My application has a tabbedpane with in each tab a list.
>
> I would like the tabbedpane to skip focus and have th user navigate using up-down-left-right. So the step to switch focus from the list to the tabbed pane and back to the new tab's list should be avoided.
>
> I tried tabbedPane.setFocusable(false); and listening to key events at the form level. But the form still focuses the tabbedpane. Maybe this should be indicated in the tabbedpane javadoc?
>
> What would be the best way to implement this?
> [Message sent by forum member 'francisdb' (francisdb)]
>
> http://forums.java.net/jive/thread.jspa?messageID=284178
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@lwuit.dev.java.net
> For additional commands, e-mail: users-help@lwuit.dev.java.net
>
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@lwuit.dev.java.net
For additional commands, e-mail: users-help@lwuit.dev.java.net

francisdb
Offline
Joined: 2006-06-16

Exactly what I need, thanks!