Searched refs:getLocationOnScreen (Results 1 - 25 of 464) sorted by relevance

1234567891011>>

/openjdk10/jdk/test/java/awt/datatransfer/DragUnicodeBetweenJVMTest/
H A DAbsoluteComponentCenterCalculator.java29 return (int)component.getLocationOnScreen().getX()+(component.getWidth()/2);
32 return (int)component.getLocationOnScreen().getY()+(component.getHeight()/2);
/openjdk10/jdk/test/java/awt/datatransfer/MissedHtmlAndRtfBug/
H A DAbsoluteComponentCenterCalculator.java31 return (int) component.getLocationOnScreen().getX() + (component.getWidth() / 2);
35 return (int) component.getLocationOnScreen().getY() + (component.getHeight() / 2);
/openjdk10/jdk/test/java/awt/Window/ChangeWindowResizabilty/
H A DChangeWindowResizabiltyTest.java53 Point frameLoc = dialog.getLocationOnScreen();
54 Point contentLoc = panel.getLocationOnScreen();
63 Point l = dialog.getLocationOnScreen();
70 l = panel.getLocationOnScreen();
77 if (panel.getLocationOnScreen().y <
78 dialog.getLocationOnScreen().y + dialog.getInsets().top) {
88 l = dialog.getLocationOnScreen();
95 l = panel.getLocationOnScreen();
101 if (panel.getLocationOnScreen().y <
102 dialog.getLocationOnScreen()
[all...]
/openjdk10/jdk/test/sanity/client/lib/jemmy/src/org/netbeans/jemmy/drivers/scrolling/
H A DJSplitPaneDriver.java91 currentPosition = (int) (divOper.getLocationOnScreen().getX()
92 - oper.getLocationOnScreen().getX());
94 currentPosition = (int) (divOper.getLocationOnScreen().getY()
95 - oper.getLocationOnScreen().getY());
103 ? (int) (divOper.getLocationOnScreen().getX()
104 - oper.getLocationOnScreen().getX())
105 : (int) (divOper.getLocationOnScreen().getY()
106 - oper.getLocationOnScreen().getY()))) {
115 ? (int) (divOper.getLocationOnScreen().getX()
116 - oper.getLocationOnScreen()
[all...]
/openjdk10/jdk/test/javax/swing/reliability/
H A DTaskZoomJFrameRepaint.java62 buttonOrigin = gui.jbutton.getLocationOnScreen();
63 textareaOrigin = gui.jtextarea.getLocationOnScreen();
99 newbuttonOrigin = gui.jbutton.getLocationOnScreen();
100 newtextareaOrigin = gui.jtextarea.getLocationOnScreen();
101 newbuttonCenter = gui.jbutton.getLocationOnScreen();
103 newtextareaCenter = gui.jtextarea.getLocationOnScreen();
H A DTaskUndJFrameProperties.java62 Point button1Origin = gui.jbutton1.getLocationOnScreen();
63 Point button1Center = gui.jbutton1.getLocationOnScreen();
65 Point button2Origin = gui.jbutton2.getLocationOnScreen();
66 Point button2Center = gui.jbutton2.getLocationOnScreen();
/openjdk10/jdk/test/java/awt/Window/SetWindowLocationByPlatformTest/
H A DSetWindowLocationByPlatformTest.java55 Point point1 = frame1.getLocationOnScreen();
56 Point point2 = frame2.getLocationOnScreen();
/openjdk10/jdk/test/java/awt/event/MouseEvent/EventTimeInFuture/
H A DEventTimeInFuture.java57 Point start = new Point(frame.getLocationOnScreen().x - frame.getWidth()/5,
58 frame.getLocationOnScreen().y - frame.getHeight()/5);
59 Point end = new Point(frame.getLocationOnScreen().x + frame.getWidth() * 6 / 5,
60 frame.getLocationOnScreen().y + frame.getHeight() * 6 / 5);
66 start = new Point(frame.getLocationOnScreen().x + frame.getWidth()/2,
67 frame.getLocationOnScreen().y + frame.getHeight()/2);
68 end = new Point(frame.getLocationOnScreen().x + frame.getWidth() * 6 / 5,
69 frame.getLocationOnScreen().y + frame.getHeight() * 6 / 5);
/openjdk10/jdk/src/java.desktop/unix/native/common/awt/
H A Dawt_Component.h43 jmethodID getLocationOnScreen; member in struct:ComponentIDs
/openjdk10/jdk/test/java/awt/List/ScrollOutside/
H A DScrollOut.java66 Point from = new Point(list.getLocationOnScreen().x + list.getWidth()/2,
67 list.getLocationOnScreen().y + list.getHeight()/2);
68 Point to = new Point(list.getLocationOnScreen().x - 30,
78 list.getLocationOnScreen().y - 50);
/openjdk10/jdk/test/javax/swing/dnd/7171812/
H A Dbug7171812.java59 robot.mouseMove(scrollPane.getLocationOnScreen().x + 5, scrollPane.getLocationOnScreen().y + 5);
62 robot.mouseMove(scrollPane.getLocationOnScreen().x+5, scrollPane.getLocationOnScreen().y+offset);
65 robot.mouseMove(scrollPane.getLocationOnScreen().x+offset, scrollPane.getLocationOnScreen().y+scrollPane.getHeight()-20);
/openjdk10/jdk/test/java/awt/event/MouseEvent/SpuriousExitEnter/
H A DSpuriousExitEnter_3.java79 Point centerA = new Point(comp.getLocationOnScreen().x + comp.getWidth() / 2,
80 comp.getLocationOnScreen().y + comp.getHeight() / 2);
81 Point centerB = new Point(w.getLocationOnScreen().x + w.getWidth() / 2,
82 w.getLocationOnScreen().y + w.getHeight() / 2);
84 Point centerC_1 = new Point(w.getLocationOnScreen().x + w.getWidth() + 20, //go right off the border
85 comp.getLocationOnScreen().y + comp.getHeight() / 2); //don't cross the A area!
88 Point centerC_2 = new Point(w.getLocationOnScreen().x + w.getWidth() / 2,
89 w.getLocationOnScreen().y + w.getHeight() + 20); //go below the bottom border
/openjdk10/jdk/test/java/awt/dnd/DragInterceptorAppletTest/
H A DSourceFrame.java58 return (int)getLocationOnScreen().getX()+(getWidth()/2);
62 return (int)getLocationOnScreen().getY()+ (getHeight()/2);
/openjdk10/jdk/test/javax/swing/JWindow/ShapedAndTranslucentWindows/
H A DSetShapeAndClickSwing.java118 Point wls = window.getLocationOnScreen();
121 ls = north.getLocationOnScreen();
124 ls = center.getLocationOnScreen();
127 ls = south.getLocationOnScreen();
130 ls = center.getLocationOnScreen();
133 ls = north.getLocationOnScreen();
140 ls = center.getLocationOnScreen();
147 ls = south.getLocationOnScreen();
H A DTranslucentWindowClickSwing.java91 ls = north.getLocationOnScreen();
94 ls = center.getLocationOnScreen();
97 ls = center.getLocationOnScreen();
100 ls = south.getLocationOnScreen();
/openjdk10/jdk/test/java/awt/Window/ShapedAndTranslucentWindows/
H A DShapedTranslucentWindowClick.java106 robot.mouseMove(background.getLocationOnScreen().x+50, background.getLocationOnScreen().y+50);
110 Point wls = window.getLocationOnScreen();
116 ls = north.getLocationOnScreen();
119 ls = center.getLocationOnScreen();
122 ls = center.getLocationOnScreen();
125 ls = south.getLocationOnScreen();
128 ls = north.getLocationOnScreen();
135 ls = center.getLocationOnScreen();
142 ls = south.getLocationOnScreen();
[all...]
H A DTranslucentWindowClick.java113 ls = north.getLocationOnScreen();
116 ls = center.getLocationOnScreen();
119 ls = center.getLocationOnScreen();
122 ls = south.getLocationOnScreen();
/openjdk10/jdk/test/java/awt/image/multiresolution/
H A DMenuMultiresolutionIconTest.java145 Point p = getLocationOnScreen();
150 p = popupItem.getLocationOnScreen();
154 p = menu.getLocationOnScreen();
158 p = menu.getItem(0).getLocationOnScreen();
162 p = menu.getItem(1).getLocationOnScreen();
166 p = menu.getItem(2).getLocationOnScreen();
/openjdk10/jdk/test/java/awt/MouseInfo/
H A DComponentMousePositionTest.java69 Point p = button.getLocationOnScreen();
94 robot.mouseMove(panel.getLocationOnScreen().x
96 panel.getLocationOnScreen().y
/openjdk10/jdk/test/java/awt/event/MouseEvent/MouseWheelEventAbsoluteCoordsTest/
H A DMouseWheelEventAbsoluteCoordsTest.java39 // getLocationOnScreen(), get(X|Y), getPoint().
41 // getLocationOnScreen(), get(X|Y), getPoint() .
80 mousePositionOnScreen = new Point(frame.getLocationOnScreen().x + mousePosition.x,
81 frame.getLocationOnScreen().y + mousePosition.y);
126 !evt.getLocationOnScreen().equals( mousePositionOnScreen ) ){
/openjdk10/jdk/test/java/awt/event/MouseEvent/FrameMouseEventAbsoluteCoordsTest/
H A DFrameMouseEventAbsoluteCoordsTest.java69 mousePositionAbsolute = new Point(button.getLocationOnScreen().x + button.getWidth()/2,
70 button.getLocationOnScreen().y + button.getHeight()/2);
102 !evt.getLocationOnScreen().equals( mousePositionAbsolute ) ){
103 throw new RuntimeException("get(X|Y)OnScreen() or getLocationOnScreen() works incorrectly: expected"+
110 throw new RuntimeException("get(X|Y)() or getLocationOnScreen() works incorrectly: expected"+
/openjdk10/jdk/test/javax/swing/plaf/synth/7158712/
H A Dbug7158712.java90 return comboBox.getLocationOnScreen();
103 Point popupPoint = popup.getLocationOnScreen();
104 Point comboBoxPoint = comboBox.getLocationOnScreen();
/openjdk10/jdk/src/java.desktop/windows/classes/sun/awt/windows/
H A DWGlobalCursorManager.java60 protected native Point getLocationOnScreen(Component com); method in class:WGlobalCursorManager
/openjdk10/jdk/test/java/awt/Mouse/MouseModifiersUnitTest/
H A DExtraButtonDrag.java88 Point centerFrame = new Point(frame.getLocationOnScreen().x + frame.getWidth()/2, frame.getLocationOnScreen().y + frame.getHeight()/2);
89 Point outboundsFrame = new Point(frame.getLocationOnScreen().x + frame.getWidth()*3/2, frame.getLocationOnScreen().y + frame.getHeight()/2);
/openjdk10/jdk/test/java/awt/event/MouseEvent/MenuDragMouseEventAbsoluteCoordsTest/
H A DMenuDragMouseEventAbsoluteCoordsTest.java42 // getLocationOnScreen(), get(X|Y), getPoint().
44 // getLocationOnScreen(), get(X|Y), getPoint() .
79 mousePositionOnScreen = new Point(frame.getLocationOnScreen().x + mousePosition.x,
80 frame.getLocationOnScreen().y + mousePosition.y);
135 !evt.getLocationOnScreen().equals( mousePositionOnScreen ) ){
136 System.out.println("evt.location = "+evt.getLocationOnScreen());

Completed in 266 milliseconds

1234567891011>>