United StatesChange Country, Oracle Worldwide Web Sites Communities I am a... I want to...
Bug ID: JDK-7107585 [macosx] Test incorrect calculate position of object on frame
JDK-7107585 : [macosx] Test incorrect calculate position of object on frame

Details
Type:
Bug
Submit Date:
2011-11-02
Status:
Closed
Updated Date:
2012-07-16
Project Name:
JDK
Resolved Date:
2012-07-16
Component:
client-libs
OS:
os_x
Sub-Component:
javax.swing
CPU:
generic
Priority:
P4
Resolution:
Fixed
Affected Versions:
7
Fixed Versions:

Related Reports
Backport:

Sub Tasks

Description
Problems with test closed/javax/swing/JSlider/6348946/bug6348946.java 

On Mac os x default size of JFrame less than in other platforms.
In method clickOnSlider mouse click happens on JSliders's thumb.

May be need change line:
robot.mouseMove(frameLefatX + 30, frameBottomY - 15);
to:
robot.mouseMove(frameLefatX + 20, frameBottomY - 15);

or manualy set size of window.

log in attachment.

                                    

Comments
EVALUATION

It needs to use the JSlider coordinats instead of JFrame for the JSlider position calculation and relative coordinats for the mouse click calculation.
                                     
2011-11-08



Hardware and Software, Engineered to Work Together