/* * To change this license header, choose License Headers in Project Properties. * To change this template file, choose Tools | Templates * and open the template in the editor. */ package accordion_32692_resizescrollbarissue; import java.util.logging.Level; import java.util.logging.Logger; import javafx.application.Application; import javafx.fxml.FXMLLoader; import javafx.scene.Parent; import javafx.scene.Scene; import javafx.stage.Stage; /** * * @author jcambon */ public class Main extends Application { /** * @param args the command line arguments */ public static void main(String[] args) { Application.launch(Main.class, (java.lang.String[])null); } @Override public void start(Stage primaryStage) { try { Parent page = (Parent) FXMLLoader.load(Main.class.getResource("TitledPane-ScrollPane-redraw-bug.fxml")); Scene scene = new Scene(page); primaryStage.setScene(scene); primaryStage.setTitle("test FXML"); primaryStage.show(); } catch (Exception ex) { //Logger.getLogger(TestFxml.class.getName()).log(Level.SEVERE, null, ex); } } }