/[classpath]/classpath/javax/swing/JTabbedPane.java
ViewVC logotype

Diff of /classpath/javax/swing/JTabbedPane.java

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.14 by mkoch, Wed Jan 26 23:32:51 2005 UTC revision 1.15 by mkoch, Thu Feb 10 16:18:27 2005 UTC
# Line 518  public class JTabbedPane extends JCompon Line 518  public class JTabbedPane extends JCompon
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;

Legend:
Removed from v.1.14  
changed lines
  Added in v.1.15

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26