Everywhere you can find lectures on how to import a class. How to import a file?
My example:
public class JavaApplication36 extends Application { public static void main(String[] args) { launch(args); } @Override public void start(Stage primaryStage) throws Exception { System.out.println("Все хорошо"); Parent pane = FXMLLoader.load(getClass().getResource("fxml/scene1.fxml")); Scene scene = new Scene(pane, 700, 500); primaryStage.setScene(scene); primaryStage.setTitle("Адресная книга"); primaryStage.show(); } } If I start writing import , it simply underlines
