< prev index next >

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

Print this page

        

*** 22,31 **** --- 22,32 ---- * 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,46 **** 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); AtomicBoolean scriptCalled = new AtomicBoolean(); AtomicBoolean scriptEndCalled = new AtomicBoolean(); fxmlLoader.setLoadListener(new LoadListener() { @Override --- 37,47 ---- public class FXMLLoader_ScriptTest { @Test @SuppressWarnings("deprecation") public void testStaticScriptLoad() throws IOException { FXMLLoader fxmlLoader = new FXMLLoader(getClass().getResource("static_script_load.fxml")); ! FXMLLoaderHelper.setStaticLoad(fxmlLoader, true); AtomicBoolean scriptCalled = new AtomicBoolean(); AtomicBoolean scriptEndCalled = new AtomicBoolean(); fxmlLoader.setLoadListener(new LoadListener() { @Override
< prev index next >