Go to the documentation of this file.
19package org.sleuthkit.autopsy.timeline;
21import java.io.IOException;
22import java.net.MalformedURLException;
24import java.util.logging.Level;
25import javafx.fxml.FXMLLoader;
26import javafx.scene.Node;
27import org.sleuthkit.autopsy.coreutils.Logger;
28import org.sleuthkit.autopsy.coreutils.ThreadConfined;
60 static public
void construct(Node node, String fxmlFileName) {
61 construct(node, node.getClass(), fxmlFileName);
76 static public
void construct(Node node, Class<? extends Node> clazz, String fxmlFileName) {
77 final String name =
"nbres:/" + clazz.getPackage().getName().replace(
".",
"/") +
"/" + fxmlFileName;
80 FXMLLoader fxmlLoader =
new FXMLLoader(
new URL(name));
81 fxmlLoader.setRoot(node);
82 fxmlLoader.setController(node);
86 }
catch (IOException exception) {
87 LOGGER.log(Level.SEVERE,
"FXMLConstructor was unable to load FXML, falling back on default Class Loader, and trying again.", exception);
89 fxmlLoader.setClassLoader(FXMLLoader.getDefaultClassLoader());
91 }
catch (IOException ex) {
92 LOGGER.log(Level.SEVERE,
"FXMLConstructor was unable to load FXML, node initialization may not be complete.", ex);
95 }
catch (MalformedURLException ex) {
96 LOGGER.log(Level.SEVERE,
"FXMLConstructor was unable to load FXML, node initialization may not be complete.", ex);
synchronized static Logger getLogger(String name)
static final Logger LOGGER
static void construct(Node node, String fxmlFileName)
Copyright © 2012-2024 Sleuth Kit Labs. Generated on:
This work is licensed under a
Creative Commons Attribution-Share Alike 3.0 United States License.