-
Bug
-
Resolution: Cannot Reproduce
-
P3
-
7u21, 7u51
-
os_x
FULL PRODUCT VERSION :
Java 1.7.0_21
ADDITIONAL OS VERSION INFORMATION :
OS X 10.8.3
A DESCRIPTION OF THE PROBLEM :
When using a JSPlitPane, the mouse cursor changes to the resize cursor when the mouse is over the divider and the pane is enabled. The resize cursor should not appear when the JSplitPane is disabled.
This works correctly on Windows but on MacOS, the resize cursor is always shown, even when the JSplitPane is disabled and the divider cannot be moved.
The resize cursor should only apear when items are resizable.
STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
Note: This issue apears when running on OS X only.
1. Create a java application displaying a disabled JSplitPane.
2. Move the mouse cursor over the divider of the JSplitPane.
EXPECTED VERSUS ACTUAL BEHAVIOR :
EXPECTED -
The mouse cursor should display as the standard mouse cursor.
ACTUAL -
The mosue cursor changes to the resize cursor even though the divider cannot be moved.
REPRODUCIBILITY :
This bug can be reproduced always.
---------- BEGIN SOURCE ----------
import java.awt.Dimension;
import javax.swing.JFrame;
import javax.swing.JLabel;
import javax.swing.JSplitPane;
import javax.swing.WindowConstants;
public class Test2 {
public static void main(String[] args) {
final JSplitPane p = new JSplitPane(JSplitPane.HORIZONTAL_SPLIT, new JLabel( " Left " ), new JLabel( " Right " ));
p.setPreferredSize(new Dimension(250, 100));
p.setDividerLocation(100);
p.setEnabled(false);
JFrame f = new JFrame( " Disabled JSplitPane " );
f.setDefaultCloseOperation(WindowConstants.EXIT_ON_CLOSE);
f.setContentPane(p);
f.pack();
f.setVisible(true);
}
}
---------- END SOURCE ----------
CUSTOMER SUBMITTED WORKAROUND :
A custom implementation of a split pane could be written and used instead to provide the appropriate appearance.
It may also be possible to override the cursor behavior of JSplitPane but this has not been attempted.
Java 1.7.0_21
ADDITIONAL OS VERSION INFORMATION :
OS X 10.8.3
A DESCRIPTION OF THE PROBLEM :
When using a JSPlitPane, the mouse cursor changes to the resize cursor when the mouse is over the divider and the pane is enabled. The resize cursor should not appear when the JSplitPane is disabled.
This works correctly on Windows but on MacOS, the resize cursor is always shown, even when the JSplitPane is disabled and the divider cannot be moved.
The resize cursor should only apear when items are resizable.
STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
Note: This issue apears when running on OS X only.
1. Create a java application displaying a disabled JSplitPane.
2. Move the mouse cursor over the divider of the JSplitPane.
EXPECTED VERSUS ACTUAL BEHAVIOR :
EXPECTED -
The mouse cursor should display as the standard mouse cursor.
ACTUAL -
The mosue cursor changes to the resize cursor even though the divider cannot be moved.
REPRODUCIBILITY :
This bug can be reproduced always.
---------- BEGIN SOURCE ----------
import java.awt.Dimension;
import javax.swing.JFrame;
import javax.swing.JLabel;
import javax.swing.JSplitPane;
import javax.swing.WindowConstants;
public class Test2 {
public static void main(String[] args) {
final JSplitPane p = new JSplitPane(JSplitPane.HORIZONTAL_SPLIT, new JLabel( " Left " ), new JLabel( " Right " ));
p.setPreferredSize(new Dimension(250, 100));
p.setDividerLocation(100);
p.setEnabled(false);
JFrame f = new JFrame( " Disabled JSplitPane " );
f.setDefaultCloseOperation(WindowConstants.EXIT_ON_CLOSE);
f.setContentPane(p);
f.pack();
f.setVisible(true);
}
}
---------- END SOURCE ----------
CUSTOMER SUBMITTED WORKAROUND :
A custom implementation of a split pane could be written and used instead to provide the appropriate appearance.
It may also be possible to override the cursor behavior of JSplitPane but this has not been attempted.
- relates to
-
JDK-8013468 [macosx] Cursor does not update properly when in fullscreen mode on Mac
-
- Resolved
-