> ...
> > Here i have a problem with a JTabbedPane. I want ...
[quoted text clipped - 4 lines]
>
> Andrew T.
(Please refrain from top-posting.)
> I also need the ctrl + tab functioanlity for the Tabbed panes..
The information is in the same tutorial.
( In fact, I was about to post an entirely different version
of that first source - it achieved what you wanted in
another, very bad & hackish way. But it only took
me a couple of minutes searching that tutorial to
find the correct way. Maybe you should read it. )
Andrew T.
srinivas.veeranki@gmail.com - 27 Jul 2006 16:11 GMT
Hi...
For achieving the ctrl + tab functioality for JTabbedPane , I over
write the addkeyStroke() method,but its not supporting the this
functioality. If i press the ctrl + tab , the focus is going to next
focusable component in that tab. Its not moving to the next tab.
I used the following code
Set forwardKeys = frame.getFocusTraversalKeys(
KeyboardFocusManager.FORWARD_TRAVERSAL_KEYS);
Set newForwardKeys = new HashSet(forwardKeys);
newForwardKeys.add(
KeyStroke.getKeyStroke(KeyEvent.VK_TAB
,KeyEvent.CTRL_DOWN_MASK, true));
frame.setFocusTraversalKeys(
KeyboardFocusManager.FORWARD_TRAVERSAL_KEYS,
newForwardKeys);
I didn't find the ctrl + tab focus traversal for the JTabbed Pane.
Thanks
Srinivas.
> (Please refrain from top-posting.)
>
[quoted text clipped - 9 lines]
>
> Andrew T.