package newpackage; import java.net.URISyntaxException; import javafx.application.Application; import javafx.scene.Scene; import javafx.scene.layout.Pane; import javafx.scene.layout.PaneBuilder; import javafx.stage.Stage; /** * * @author mrkam */ public class Bug extends Application { static { // System.setProperty("http.proxyHost", ""); // System.setProperty("http.proxyPort", ""); } /** * @param args the command line arguments */ public static void main(String[] args) { launch(args); } @Override public void start(Stage stage) throws URISyntaxException { Pane root = PaneBuilder.create() .minWidth(100) .minHeight(100) .prefWidth(200) .prefHeight(200) .maxWidth(300) .maxHeight(300) .id("pane") .build(); Scene scene = new Scene(root); // String url = this.getClass().getResource("../css/Bug.css").toURI().toString(); // System.out.println("url = " + url); // scene.getStylesheets().setAll("file:///D:/JavaFX/temp/BugsFilingFX/dist/BugsFilingFX.jar/css/Bug.css"); // scene.getStylesheets().setAll(url); scene.getStylesheets().setAll("/css/Bug.css"); stage.setScene(scene); stage.show(); } }