use of javafx.fxml.FXMLLoader in project TeachingInSimulation by ScOrPiOzzy.
the class PublishListForTeacher method loadFXML.
/**
* 加载界面布局文件
*/
private void loadFXML() {
FXMLLoader loader = new FXMLLoader();
URL fxmlUrl = this.getClass().getResource("/view/library/PublishList.fxml");
loader.setLocation(fxmlUrl);
loader.setController(this);
loader.setRoot(this);
loader.setResources(ResourceBundle.getBundle("i18n/messages"));
try {
loader.load();
LOG.debug("加载FXML界面{}完成", fxmlUrl);
} catch (IOException e) {
e.printStackTrace();
LOG.error("加载FXML界面{}失败,错误信息:{}", fxmlUrl, e.getMessage());
}
}
use of javafx.fxml.FXMLLoader in project TeachingInSimulation by ScOrPiOzzy.
the class PreparationDetail method loadFXML.
private void loadFXML() {
FXMLLoader loader = new FXMLLoader();
URL fxmlUrl = this.getClass().getResource("/view/preparation/Detail.fxml");
loader.setLocation(fxmlUrl);
loader.setController(this);
loader.setRoot(this);
loader.setResources(ResourceBundle.getBundle("i18n/messages"));
try {
loader.load();
LOG.debug("加载FXML界面{}完成", fxmlUrl);
} catch (IOException e) {
e.printStackTrace();
LOG.error("加载FXML界面{}失败,错误信息:{}", fxmlUrl, e.getMessage());
}
}
use of javafx.fxml.FXMLLoader in project TeachingInSimulation by ScOrPiOzzy.
the class PreparationMenu method loadFXML.
/**
* 加载界面布局文件
*/
private void loadFXML() {
FXMLLoader loader = new FXMLLoader();
URL fxmlUrl = this.getClass().getResource("/view/preparation/LeftMenu.fxml");
loader.setLocation(fxmlUrl);
loader.setController(this);
loader.setRoot(this);
try {
loader.load();
LOG.debug("加载FXML界面{}完成", fxmlUrl);
} catch (IOException e) {
e.printStackTrace();
LOG.error("加载FXML界面{}失败,错误信息:{}", fxmlUrl, e.getMessage());
}
}
use of javafx.fxml.FXMLLoader in project TeachingInSimulation by ScOrPiOzzy.
the class PreviewQuestionPaper method loadFXML.
/**
* 加载界面布局文件
*/
private void loadFXML() {
FXMLLoader loader = new FXMLLoader();
URL fxmlUrl = this.getClass().getResource("/view/question/Paper.fxml");
loader.setLocation(fxmlUrl);
loader.setController(this);
loader.setRoot(this);
loader.setResources(ResourceBundle.getBundle("i18n/messages"));
try {
loader.load();
LOG.debug("加载FXML界面{}完成", fxmlUrl);
} catch (IOException e) {
e.printStackTrace();
LOG.error("加载FXML界面{}失败,错误信息:{}", fxmlUrl, e.getMessage());
}
}
use of javafx.fxml.FXMLLoader in project jphp by jphp-compiler.
the class TrayNotification method initTrayNotification.
private void initTrayNotification(String title, String message, NotificationType type) {
try {
FXMLLoader fxmlLoader = new FXMLLoader(getClass().getResource("/tray/views/TrayNotification.fxml"));
fxmlLoader.setController(this);
fxmlLoader.load();
initStage();
initAnimations();
setTray(title, message, type);
} catch (IOException e) {
e.printStackTrace();
}
}
Aggregations