/[classpath]/classpath/javax/swing/plaf/basic/BasicToolBarUI.java
ViewVC logotype

Diff of /classpath/javax/swing/plaf/basic/BasicToolBarUI.java

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

revision 1.11 by mark, Tue Jul 26 14:16:43 2005 UTC revision 1.12 by langel, Mon Sep 12 16:17:15 2005 UTC
# Line 1030  public class BasicToolBarUI extends Tool Line 1030  public class BasicToolBarUI extends Tool
1030          }          }
1031    
1032        origin = new Point(0, 0);        origin = new Point(0, 0);
1033        SwingUtilities.convertPointToScreen(ssd, toolBar);        if (toolBar.isShowing())
1034            SwingUtilities.convertPointToScreen(ssd, toolBar);
1035    
1036        if (! (SwingUtilities.getAncestorOfClass(Window.class, toolBar) instanceof UIResource))        if (! (SwingUtilities.getAncestorOfClass(Window.class, toolBar) instanceof UIResource))
1037          // Need to know who keeps the toolBar if it gets dragged back into it.          // Need to know who keeps the toolBar if it gets dragged back into it.
1038          origParent = toolBar.getParent();          origParent = toolBar.getParent();
1039          
1040        SwingUtilities.convertPointToScreen(origin, toolBar);        if (toolBar.isShowing())
1041            SwingUtilities.convertPointToScreen(origin, toolBar);
1042    
1043        isDragging = true;        isDragging = true;
1044    

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

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