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

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

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

revision 1.23 by langel, Tue Sep 20 22:00:54 2005 UTC revision 1.24 by langel, Thu Sep 22 19:06:14 2005 UTC
# Line 564  public class JPopupMenu extends JCompone Line 564  public class JPopupMenu extends JCompone
564              Dimension screenSize = getToolkit().getScreenSize();              Dimension screenSize = getToolkit().getScreenSize();
565                            
566              boolean fit = true;              boolean fit = true;
567              Dimension size;              Dimension size = this.getPreferredSize();
   
             // Determine the size of the popup menu  
             if (this.getSize().width == 0 && this.getSize().width == 0)  
               size = this.getPreferredSize();  
             else  
               size = this.getSize();  
568    
569              if ((size.width > (rootContainer.getWidth() - popupLocation.x))              if ((size.width > (rootContainer.getWidth() - popupLocation.x))
570                  || (size.height > (rootContainer.getHeight() - popupLocation.y)))                  || (size.height > (rootContainer.getHeight() - popupLocation.y)))

Legend:
Removed from v.1.23  
changed lines
  Added in v.1.24

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