Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.java.gui > #3841
| From | "John B. Matthews" <john.b..matthews@THRWHITE.remove-dii-this> |
|---|---|
| Subject | Re: JTabbedPane with Keye |
| Message-ID | <nospam-FB270A.13545529072008@aioe.org> (permalink) |
| Newsgroups | comp.lang.java.gui |
| References | <36d87bb1-1187-444e-b040-fe5add1e7538@x41g2000hsb.googlegroups.com> |
| Date | 2011-04-27 15:47 +0000 |
| Organization | TDS.net |
To: comp.lang.java.gui
In article
<36d87bb1-1187-444e-b040-fe5add1e7538@x41g2000hsb.googlegroups.com>,
"pinik.smily4u@gmail.com" <pinik.smily4u@gmail.com> wrote:
> I have created a tabbedpane with 3 tabs (Tab1, Tab2, Tab3) . Mnemonic
> (ALT-F) is assigned only to the Tab1.
>
> If any of the component is selected inside the Tab2 or Tab3, it can
> still traverse back to Tab1 on pressing key ALT-F. But if any
> component is selected in the Tab1 itself, pressing ALT-F will not
> take me back to Tab1. I have to somehow get the focus for Tab1 too.
Do the other two methods for tab navigation (mouse or keyboard arrows)
work?
<http://java.sun.com/docs/books/tutorial/uiswing/components/tabbedpane.ht
ml>
[...]
> Note: I don|t want to set Mnemonic to each Tab. Only one Mnemonic
> should do my work.
[...]
> JButton button2= new JButton("Button2");
[...]
> JButton button2 = new JButton("Button");
> tabbedPane.addTab("Tab3", null, button2, null);
Should this be button3?
--
John B. Matthews
trashgod at gmail dot com
home dot woh dot rr dot com slash jbmatthews
---
* Synchronet * The Whitehouse BBS --- whitehouse.hulds.com --- check it out free usenet!
--- Synchronet 3.15a-Win32 NewsLink 1.92
Time Warp of the Future BBS - telnet://time.synchro.net:24
Back to comp.lang.java.gui | Previous | Next — Previous in thread | Find similar | Unroll thread
JTabbedPane with Keyevent pinik.smily4u@gmail.com.remove-dii-this - 2011-04-27 15:47 +0000 Re: JTabbedPane with Keye "John B. Matthews" <john.b..matthews@THRWHITE.remove-dii-this> - 2011-04-27 15:47 +0000
csiph-web