- // Same as super except doesn't deactivate it
- JInternalFrame.JDesktopIcon desktopIcon;
- Container c;
-
- desktopIcon = f.getDesktopIcon();
- // Position depends on *current* position of frame, unlike super which
- // reuses the first position
- final Rectangle r = getBoundsForIconOf(f);
- desktopIcon.setBounds(r.x, r.y, r.width, r.height);
-
- c = f.getParent();
- if (c == null)
- {
- return;
- }
-
- c.remove(f);
- addIcon(c, desktopIcon);
- c.repaint(f.getX(), f.getY(), f.getWidth(), f.getHeight());