--- a/jdk/src/share/classes/javax/swing/plaf/basic/BasicInternalFrameUI.java Fri Jul 25 14:14:30 2008 +0400
+++ b/jdk/src/share/classes/javax/swing/plaf/basic/BasicInternalFrameUI.java Fri Jul 25 17:50:36 2008 +0400
@@ -318,7 +318,7 @@
if (resizing) {
return;
}
- Cursor s = (Cursor)frame.getLastCursor();
+ Cursor s = frame.getLastCursor();
if (s == null) {
s = Cursor.getPredefinedCursor(Cursor.DEFAULT_CURSOR);
}
@@ -336,13 +336,13 @@
public Dimension getPreferredSize(JComponent x) {
- if((JComponent)frame == x)
+ if(frame == x)
return frame.getLayout().preferredLayoutSize(x);
return new Dimension(100, 100);
}
public Dimension getMinimumSize(JComponent x) {
- if((JComponent)frame == x) {
+ if(frame == x) {
return frame.getLayout().minimumLayoutSize(x);
}
return new Dimension(0, 0);
@@ -1093,7 +1093,7 @@
updateFrameCursor();
}
- }; /// End BorderListener Class
+ } /// End BorderListener Class
protected class ComponentHandler implements ComponentListener {
// NOTE: This class exists only for backward compatability. All
@@ -1196,7 +1196,6 @@
}
}
- private static boolean isDragging = false;
private class Handler implements ComponentListener, InternalFrameListener,
LayoutManager, MouseInputListener, PropertyChangeListener,
WindowFocusListener, SwingConstants {
@@ -1373,9 +1372,6 @@
// MouseInputListener
- private Component mouseEventTarget = null;
- private Component dragSource = null;
-
public void mousePressed(MouseEvent e) { }
public void mouseEntered(MouseEvent e) { }
@@ -1392,7 +1388,7 @@
// PropertyChangeListener
public void propertyChange(PropertyChangeEvent evt) {
- String prop = (String)evt.getPropertyName();
+ String prop = evt.getPropertyName();
JInternalFrame f = (JInternalFrame)evt.getSource();
Object newValue = evt.getNewValue();
Object oldValue = evt.getOldValue();