functional/ControlsTests/test/javafx/scene/control/test/Mnemonics/MnemonicsTestBase.java

Print this page

        

@@ -121,13 +121,12 @@
             }
             for (int y = 0; y < text_bounds.height; y++) {
                 for (int x = 0; x < text_bounds.width; x++) {
                     final Text control = text_wrap.getControl();
                     final int charIndex = new GetAction<Integer>() {
-                        @Override
                         public void run(Object... os) throws Exception {
-                            setResult(control.impl_hitTestChar(new Point2D((Integer)os[0], (Integer)os[1] - control.getBaselineOffset())).getCharIndex());
+                            setResult(control.hitTest(new Point2D((Integer)os[0], (Integer)os[1] - control.getBaselineOffset())).getCharIndex());
                         }
                     }.dispatch(wrap.getEnvironment(), x, y);
                     if (bounds_array.get(charIndex) == null) {
                         bounds_array.set(charIndex, new Rectangle(x, y, 0, 0));
                     } else  {