< prev index next >
modules/fxml/src/test/java/test/javafx/fxml/FXMLLoader_ScriptTest.java
Print this page
@@ -22,10 +22,11 @@
* 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.FXMLLoaderHelper;
import org.junit.Test;
import java.io.IOException;
import java.util.concurrent.atomic.AtomicBoolean;
import javafx.fxml.FXMLLoader;
@@ -36,11 +37,11 @@
public class FXMLLoader_ScriptTest {
@Test
@SuppressWarnings("deprecation")
public void testStaticScriptLoad() throws IOException {
FXMLLoader fxmlLoader = new FXMLLoader(getClass().getResource("static_script_load.fxml"));
- fxmlLoader.impl_setStaticLoad(true);
+ FXMLLoaderHelper.setStaticLoad(fxmlLoader, true);
AtomicBoolean scriptCalled = new AtomicBoolean();
AtomicBoolean scriptEndCalled = new AtomicBoolean();
fxmlLoader.setLoadListener(new LoadListener() {
@Override
< prev index next >