516 |
// the bottom left corner) |
// the bottom left corner) |
517 |
// The icon also must not be placed where another icon is placed |
// The icon also must not be placed where another icon is placed |
518 |
// (regardless whether that frame is an icon currently or not) |
// (regardless whether that frame is an icon currently or not) |
519 |
|
JDesktopPane desktopPane = frame.getDesktopPane(); |
520 |
if (desktopPane == null) |
|
521 |
return frame.getDesktopIcon().getBounds(); |
if (desktopPane == null) |
522 |
|
return frame.getDesktopIcon().getBounds(); |
523 |
JDesktopPane desktopPane = frame.getDesktopPane(); |
|
524 |
Rectangle paneBounds = desktopPane.getBounds(); |
Rectangle paneBounds = desktopPane.getBounds(); |
525 |
Insets insets = desktopPane.getInsets(); |
Insets insets = desktopPane.getInsets(); |
526 |
Dimension pref = frame.getDesktopIcon().getPreferredSize(); |
Dimension pref = frame.getDesktopIcon().getPreferredSize(); |