modules/fxml/src/test/java/javafx/fxml/FXMLLoader_ScriptTest.java

Print this page
rev 9240 : 8076423: JEP 253: Prepare JavaFX UI Controls & CSS APIs for Modularization

@@ -22,11 +22,10 @@
  * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
  * or visit www.oracle.com if you need additional information or have any
  * questions.
  */
 
-import com.sun.javafx.fxml.LoadListener;
 import org.junit.Test;
 
 import java.io.IOException;
 import java.util.concurrent.atomic.AtomicBoolean;
 

@@ -38,11 +37,11 @@
     public void testStaticScriptLoad() throws IOException {
         FXMLLoader fxmlLoader = new FXMLLoader(getClass().getResource("static_script_load.fxml"));
         fxmlLoader.impl_setStaticLoad(true);
         AtomicBoolean scriptCalled = new AtomicBoolean();
         AtomicBoolean scriptEndCalled = new AtomicBoolean();
-        fxmlLoader.impl_setLoadListener(new LoadListener() {
+        fxmlLoader.setLoadListener(new LoadListener() {
 
             @Override
             public void readImportProcessingInstruction(String target) {
             }