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

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

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

revision 1.7.2.3 by gnu_andrew, Tue Aug 2 20:12:37 2005 UTC revision 1.7.2.4 by gnu_andrew, Tue Sep 20 18:46:32 2005 UTC
# Line 146  public class MenuSelectionManager Line 146  public class MenuSelectionManager
146    {    {
147      // Convert sourcePoint to screen coordinates.      // Convert sourcePoint to screen coordinates.
148      Point sourcePointOnScreen = sourcePoint;      Point sourcePointOnScreen = sourcePoint;
149      SwingUtilities.convertPointToScreen(sourcePointOnScreen, source);      
150        if (source.isShowing())
151          SwingUtilities.convertPointToScreen(sourcePointOnScreen, source);
152    
153      Point compPointOnScreen;      Point compPointOnScreen;
154      Component resultComp = null;      Component resultComp = null;
# Line 168  public class MenuSelectionManager Line 170  public class MenuSelectionManager
170              && sourcePointOnScreen.y < compPointOnScreen.y + size.height)              && sourcePointOnScreen.y < compPointOnScreen.y + size.height)
171            {            {
172              Point p = sourcePointOnScreen;              Point p = sourcePointOnScreen;
173              SwingUtilities.convertPointFromScreen(p, comp);          
174            if (comp.isShowing())
175              SwingUtilities.convertPointFromScreen(p, comp);
176            
177              resultComp = SwingUtilities.getDeepestComponentAt(comp, p.x, p.y);              resultComp = SwingUtilities.getDeepestComponentAt(comp, p.x, p.y);
178              break;              break;
179            }            }

Legend:
Removed from v.1.7.2.3  
changed lines
  Added in v.1.7.2.4

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