518 |
* or equal to title.length. |
* or equal to title.length. |
519 |
*/ |
*/ |
520 |
public void setDisplayedMnemonicIndex(int index) |
public void setDisplayedMnemonicIndex(int index) |
521 |
throws IllegalArgumentException |
throws IllegalArgumentException |
522 |
{ |
{ |
523 |
if (index < -1 || title != null && index >= title.length()) |
if (index < -1 || title != null && index >= title.length()) |
524 |
throw new IllegalArgumentException(); |
throw new IllegalArgumentException(); |
525 |
|
|
526 |
if (title == null || title.charAt(index) != mnemonicKey) |
if (title == null || mnemonicKey == 0 || title.charAt(index) != mnemonicKey) |
527 |
index = -1; |
index = -1; |
528 |
|
|
529 |
underlinedChar = index; |
underlinedChar = index; |