1007 break;
1008 }
1009 Container c = frame.getTopLevelAncestor();
1010 if (c instanceof RootPaneContainer) {
1011 Component glassPane = ((RootPaneContainer)c).getGlassPane();
1012 glassPane.setVisible(true);
1013 glassPane.setCursor(s);
1014 }
1015 getDesktopManager().beginResizingFrame(frame, resizeDir);
1016 resizing = true;
1017 // Add the WindowFocusListener for handling a
1018 // WINDOW_LOST_FOCUS event with a cancelResize().
1019 Window windowAncestor = SwingUtilities.getWindowAncestor(frame);
1020 if (windowAncestor != null) {
1021 windowAncestor.addWindowFocusListener(
1022 getWindowFocusListener());
1023 }
1024 return;
1025 }
1026 }
1027
1028 public void mouseDragged(MouseEvent e) {
1029
1030 if ( startingBounds == null ) {
1031 // (STEVE) Yucky work around for bug ID 4106552
1032 return;
1033 }
1034
1035 Point p = SwingUtilities.convertPoint((Component)e.getSource(),
1036 e.getX(), e.getY(), null);
1037 int deltaX = _x - p.x;
1038 int deltaY = _y - p.y;
1039 Dimension min = frame.getMinimumSize();
1040 Dimension max = frame.getMaximumSize();
1041 int newX, newY, newW, newH;
1042 Insets i = frame.getInsets();
1043
1044 // Handle a MOVE
1045 if (dragging) {
1046 if (frame.isMaximum() || ((e.getModifiers() &
1047 InputEvent.BUTTON1_MASK) !=
|
1007 break;
1008 }
1009 Container c = frame.getTopLevelAncestor();
1010 if (c instanceof RootPaneContainer) {
1011 Component glassPane = ((RootPaneContainer)c).getGlassPane();
1012 glassPane.setVisible(true);
1013 glassPane.setCursor(s);
1014 }
1015 getDesktopManager().beginResizingFrame(frame, resizeDir);
1016 resizing = true;
1017 // Add the WindowFocusListener for handling a
1018 // WINDOW_LOST_FOCUS event with a cancelResize().
1019 Window windowAncestor = SwingUtilities.getWindowAncestor(frame);
1020 if (windowAncestor != null) {
1021 windowAncestor.addWindowFocusListener(
1022 getWindowFocusListener());
1023 }
1024 return;
1025 }
1026 }
1027 @SuppressWarnings("deprecation")
1028 public void mouseDragged(MouseEvent e) {
1029
1030 if ( startingBounds == null ) {
1031 // (STEVE) Yucky work around for bug ID 4106552
1032 return;
1033 }
1034
1035 Point p = SwingUtilities.convertPoint((Component)e.getSource(),
1036 e.getX(), e.getY(), null);
1037 int deltaX = _x - p.x;
1038 int deltaY = _y - p.y;
1039 Dimension min = frame.getMinimumSize();
1040 Dimension max = frame.getMaximumSize();
1041 int newX, newY, newW, newH;
1042 Insets i = frame.getInsets();
1043
1044 // Handle a MOVE
1045 if (dragging) {
1046 if (frame.isMaximum() || ((e.getModifiers() &
1047 InputEvent.BUTTON1_MASK) !=
|