[Patch][gui] DefaultMutableTreeNode
Michael Koch
konqueror@gmx.de
Thu Feb 10 18:29:00 GMT 2005
Hi list,
I commited the attached patch which addes some javadocs to
javax.swing.tree.DefaultMutableTreeNode and to fix one method of it.
Michael
2005-02-10 Michael Koch <konqueror@gmx.de>
* javax/swing/tree/DefaultMutableTreeNode.java:
Reworked Javadocs all over.
(getPathToRoot): Fixed direction of result array initialization.
-------------- next part --------------
Index: javax/swing/JTabbedPane.java
===================================================================
RCS file: /cvsroot/classpath/classpath/javax/swing/JTabbedPane.java,v
retrieving revision 1.14
diff -u -r1.14 JTabbedPane.java
--- javax/swing/JTabbedPane.java 26 Jan 2005 23:32:51 -0000 1.14
+++ javax/swing/JTabbedPane.java 10 Feb 2005 16:08:21 -0000
@@ -518,12 +518,12 @@
* or equal to title.length.
*/
public void setDisplayedMnemonicIndex(int index)
- throws IllegalArgumentException
+ throws IllegalArgumentException
{
if (index < -1 || title != null && index >= title.length())
throw new IllegalArgumentException();
- if (title == null || title.charAt(index) != mnemonicKey)
+ if (title == null || mnemonicKey == 0 || title.charAt(index) != mnemonicKey)
index = -1;
underlinedChar = index;
More information about the Java-patches
mailing list