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

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

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

revision 1.26 by langel, Tue Sep 27 17:17:48 2005 UTC revision 1.27 by langel, Wed Sep 28 20:09:59 2005 UTC
# Line 475  public class ToolTipManager extends Mous Line 475  public class ToolTipManager extends Mous
475                        
476      if (isLightWeightPopupEnabled())      if (isLightWeightPopupEnabled())
477        {        {
478          JLayeredPane pane = ((JRootPane) SwingUtilities.          JLayeredPane pane = null;
479              getAncestorOfClass(JRootPane.class, currentComponent)).          JRootPane r = ((JRootPane) SwingUtilities.
480              getLayeredPane();              getAncestorOfClass(JRootPane.class, currentComponent));
481            if (r != null)
482          // This should never happen, but just in case.            pane = r.getLayeredPane();
483          if (pane == null)          if (pane == null)
484            return;            return;
485            
486          if (containerPanel != null)          if (containerPanel != null)
487            hideTip();            hideTip();
488                    
# Line 544  public class ToolTipManager extends Mous Line 545  public class ToolTipManager extends Mous
545        p.x = 0;        p.x = 0;
546      if (p.y + d.height < c.getHeight())      if (p.y + d.height < c.getHeight())
547        p.y += d.height;        p.y += d.height;
548      else if (p.y + d.height > c.getHeight())      if (p.y + d.height > c.getHeight())
549        p.y -= d.height*2;        p.y -= d.height*2;
550            
551      return p;      return p;

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

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