diff -r bb5fff33bf49 -r adce5338e9b5 jdk/src/share/classes/javax/swing/JDesktopPane.java --- a/jdk/src/share/classes/javax/swing/JDesktopPane.java Mon Apr 29 16:42:22 2013 +0400 +++ b/jdk/src/share/classes/javax/swing/JDesktopPane.java Tue Apr 30 13:24:14 2013 +0400 @@ -428,6 +428,15 @@ } /** + * {@inheritDoc} + */ + @Override + public void remove(Component comp) { + super.remove(comp); + updateFramesCache(); + } + + /** * Selects the next JInternalFrame in this desktop pane. * * @param forward a boolean indicating which direction to select in;