/[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.25 by langel, Wed Sep 28 13:59:14 2005 UTC revision 1.26 by trebligd, Thu Sep 29 20:19:19 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 = this.getPreferredSize();              Dimension size = this.getSize();
   
568              if ((size.width > (rootContainer.getWidth() - popupLocation.x))              if ((size.width > (rootContainer.getWidth() - popupLocation.x))
569                  || (size.height > (rootContainer.getHeight() - popupLocation.y)))                  || (size.height > (rootContainer.getHeight() - popupLocation.y)))
570                fit = false;                fit = false;

Legend:
Removed from v.1.25  
changed lines
  Added in v.1.26

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