functional/FxmlTests/src/test/fxmltests/app/LineNumberApp.java.excluded
Print this page
*** 1,5 ****
--- 1,6 ----
+ // https://bugs.openjdk.java.net/browse/INTJDK-7624138
/*
* Copyright (c) 2014, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
*** 22,41 ****
* or visit www.oracle.com if you need additional information or have any
* questions.
*/
package test.fxmltests.app;
! import com.sun.javafx.fxml.LoadListener;
import com.sun.javafx.runtime.VersionInfo;
import java.util.ArrayList;
import java.util.List;
import javafx.application.Application;
import javafx.fxml.FXMLLoader;
import javafx.scene.Node;
import javafx.scene.Scene;
import javafx.scene.layout.VBox;
- import javafx.scene.layout.VBoxBuilder;
import javafx.scene.paint.Color;
import javafx.scene.shape.Rectangle;
import javafx.stage.Stage;
import test.javaclient.shared.BasicButtonChooserApp;
import test.javaclient.shared.PageWithSlots;
--- 23,41 ----
* or visit www.oracle.com if you need additional information or have any
* questions.
*/
package test.fxmltests.app;
! import javafx.fxml.LoadListener;
import com.sun.javafx.runtime.VersionInfo;
import java.util.ArrayList;
import java.util.List;
import javafx.application.Application;
import javafx.fxml.FXMLLoader;
import javafx.scene.Node;
import javafx.scene.Scene;
import javafx.scene.layout.VBox;
import javafx.scene.paint.Color;
import javafx.scene.shape.Rectangle;
import javafx.stage.Stage;
import test.javaclient.shared.BasicButtonChooserApp;
import test.javaclient.shared.PageWithSlots;
*** 125,135 ****
@Override
public Node drawNode() {
LineNumberApp.reset();
final FXMLLoader loader = new FXMLLoader(getClass().getResource(resource));
loader.impl_setStaticLoad(true);
! loader.impl_setLoadListener(new LoadListener() {
@Override
public void readImportProcessingInstruction(String string) {
importProcessingInstruction.add(loader.impl_getLineNumber());
}
--- 125,137 ----
@Override
public Node drawNode() {
LineNumberApp.reset();
final FXMLLoader loader = new FXMLLoader(getClass().getResource(resource));
loader.impl_setStaticLoad(true);
!
! // The following line requires --add-exports javafx.fxml/com.sun.javafx.fxml=ALL-UNNAMED
! loader.setLoadListener(new LoadListener() {
@Override
public void readImportProcessingInstruction(String string) {
importProcessingInstruction.add(loader.impl_getLineNumber());
}
*** 218,228 ****
public void endElement(Object o) {
endElement.add(loader.impl_getLineNumber());
}
});
try {
! loader.setRoot(VBoxBuilder.create().prefHeight(200).prefWidth(200).build());
return (Node) loader.load();
} catch (Exception exc) {
exc.printStackTrace();
return new Rectangle(10, 10) {
--- 220,232 ----
public void endElement(Object o) {
endElement.add(loader.impl_getLineNumber());
}
});
try {
! VBox vb = new VBox();
! vb.setPrefSize(200, 200);
! loader.setRoot(vb);
return (Node) loader.load();
} catch (Exception exc) {
exc.printStackTrace();
return new Rectangle(10, 10) {