Community
Participate
Working Groups
return text;
}
boolean mnemonicHit (char key) {
Composite control = this.parent;
while (control != null) {
Control [] children = control._getChildren ();
int index = 0;
while (index < children.length) {
if (children [index] == this) break;
index++;
if (index < children.length) {
if (children [index].setFocus ()) return true;
control = control.parent;
return false;
boolean mnemonicMatch (char key) {
String parsed = parse (text);
for (int i = 0; i < mnemonics.length; i++) {
int mnemonic = mnemonics [i];
if (mnemonic != -1) {
return Character.toUpperCase (key) == Character.toUpperCase (parsed.charAt (mnemonic));
String parse (String string) {
int length = string.length ();
offsets = new Point [length / 4];