/[classpath]/classpath/javax/swing/DefaultDesktopManager.java
ViewVC logotype

Diff of /classpath/javax/swing/DefaultDesktopManager.java

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.10 by rabbit78, Mon Jun 20 14:35:53 2005 UTC revision 1.11 by langel, Mon Jun 20 20:52:46 2005 UTC
# Line 516  public class DefaultDesktopManager imple Line 516  public class DefaultDesktopManager imple
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();
522            
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();
527    
     if (desktopPane == null)  
       return frame.getDesktopIcon().getBounds();  
   
528      Component[] frames = desktopPane.getComponents();      Component[] frames = desktopPane.getComponents();
529    
530      int count = 0;      int count = 0;

Legend:
Removed from v.1.10  
changed lines
  Added in v.1.11

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26