/* (non-Javadoc)
* @see javafx.application.Application#start(javafx.stage.Stage)
*/
@Override
public void start(Stage primaryStage) throws Exception {
FX2TabPane p = new FX2TabPane();
p.setSkin(new FX2TabPaneSkin(p));
FX2Tab tab = new FX2Tab();
tab.setCloseVetoHandler(new Callback<Tab, Boolean>() {
@Override
public Boolean call(Tab param) {
return Boolean.TRUE;
}
});
tab.setText("Hello World");
p.getTabs().add(tab);
Scene s = new Scene(p,200,200);
primaryStage.setScene(s);
primaryStage.show();
}