Index: javax/swing/JMenuItem.java =================================================================== RCS file: /cvsroot/classpath/classpath/javax/swing/JMenuItem.java,v retrieving revision 1.18 diff -u -r1.18 JMenuItem.java --- javax/swing/JMenuItem.java 15 Jul 2005 11:41:06 -0000 1.18 +++ javax/swing/JMenuItem.java 26 Sep 2005 20:36:10 -0000 @@ -255,8 +255,11 @@ } /** - * Sets accelerator for this menu item. - * + * Sets the key combination which invokes the menu item's action + * listeners without navigating the menu hierarchy. Note that when the + * keyboard accelerator is typed, it will work whether or not the + * menu is currently displayed. + * * @param keystroke accelerator for this menu item. */ public void setAccelerator(KeyStroke keystroke) @@ -276,7 +279,11 @@ super.configurePropertiesFromAction(action); if (! (this instanceof JMenu) && action != null) - setAccelerator((KeyStroke) (action.getValue(Action.ACCELERATOR_KEY))); + { + setAccelerator((KeyStroke) (action.getValue(Action.ACCELERATOR_KEY))); + super.registerKeyboardAction(action, accelerator, + JComponent.WHEN_IN_FOCUSED_WINDOW); + } } /** Index: javax/swing/JTree.java =================================================================== RCS file: /cvsroot/classpath/classpath/javax/swing/JTree.java,v retrieving revision 1.42 diff -u -r1.42 JTree.java --- javax/swing/JTree.java 26 Sep 2005 15:20:00 -0000 1.42 +++ javax/swing/JTree.java 26 Sep 2005 20:36:10 -0000 @@ -1477,6 +1477,7 @@ */ public JTree(TreeModel model) { + setRootVisible(true); setModel(model); setSelectionModel(EmptySelectionModel.sharedInstance()); setCellRenderer(new DefaultTreeCellRenderer()); Index: javax/swing/ToolTipManager.java =================================================================== RCS file: /cvsroot/classpath/classpath/javax/swing/ToolTipManager.java,v retrieving revision 1.22 diff -u -r1.22 ToolTipManager.java --- javax/swing/ToolTipManager.java 23 Sep 2005 20:35:06 -0000 1.22 +++ javax/swing/ToolTipManager.java 26 Sep 2005 20:36:10 -0000 @@ -524,7 +524,8 @@ tooltipWindow.repaint(); } currentTip.setVisible(true); - currentTip.revalidate(); + if (!currentTip.isValid()) + currentTip.revalidate(); currentTip.repaint(); } @@ -570,7 +571,6 @@ if (parent == null) return; parent.remove(currentTip); - containerPanel = null; } if (tooltipWindow != null) @@ -579,6 +579,7 @@ tooltipWindow.dispose(); tooltipWindow = null; } + currentTip = null; } /**