List of usage examples for javafx.stage Stage setWidth
public final void setWidth(double value)
From source file:ambroafb.general.StagesContainer.java
public static void setSizeFor(Stage stage) { String path = getPathForStage(stage); try {// w w w . ja v a 2 s. c om String json_str = GeneralConfig.prefs.get("stage_size_" + path, null); if (json_str == null) { return; } JSONObject json = new JSONObject(json_str); if (json.getBoolean("isMaximized")) { stage.setMaximized(true); } else { stage.setWidth(json.getDouble("width")); stage.setHeight(json.getDouble("height")); } } catch (JSONException ex) { Logger.getLogger(Utils.class.getName()).log(Level.SEVERE, null, ex); } }
From source file:Main.java
License:asdf
@Override public void start(Stage stage) { stage.setWidth(500); stage.setHeight(500);//from ww w.j a va2s . co m Scene scene = new Scene(new Group()); VBox root = new VBox(); final WebView browser = new WebView(); final WebEngine webEngine = browser.getEngine(); ScrollPane scrollPane = new ScrollPane(); scrollPane.setContent(browser); webEngine.loadContent("<b>asdf</b>"); root.getChildren().addAll(scrollPane); scene.setRoot(root); stage.setScene(scene); stage.show(); }
From source file:Main.java
@Override public void start(final Stage stage) { stage.setWidth(500); stage.setHeight(500);//from ww w. j a va 2 s. c o m Scene scene = new Scene(new Group()); VBox root = new VBox(); CategoryAxis lineXAxis = new CategoryAxis(getData()); root.getChildren().addAll(lineXAxis); scene.setRoot(root); stage.setScene(scene); stage.show(); }
From source file:Main.java
@Override public void start(final Stage stage) { stage.setWidth(500); stage.setHeight(500);/*from w w w. j av a 2s .c om*/ Scene scene = new Scene(new Group()); VBox root = new VBox(); NumberAxis lineYAxis = new NumberAxis(0, 100, 10); CategoryAxis lineXAxis = new CategoryAxis(); lineYAxis.setLabel("Sales"); lineXAxis.setLabel("Products"); root.getChildren().addAll(lineXAxis); scene.setRoot(root); stage.setScene(scene); stage.show(); }
From source file:Main.java
@Override public void start(final Stage stage) { stage.setWidth(500); stage.setHeight(500);// w w w . ja v a2 s . co m Scene scene = new Scene(new Group()); VBox root = new VBox(); CategoryAxis lineXAxis = new CategoryAxis(getData()); System.out.println(lineXAxis.toRealValue(1.2)); root.getChildren().addAll(lineXAxis); scene.setRoot(root); stage.setScene(scene); stage.show(); }
From source file:Main.java
@Override public void start(final Stage stage) { stage.setWidth(500); stage.setHeight(500);/*from w ww . jav a2 s . c om*/ Scene scene = new Scene(new Group()); VBox root = new VBox(); CategoryAxis lineXAxis = new CategoryAxis(getData()); System.out.println(lineXAxis.getStartMargin()); root.getChildren().addAll(lineXAxis); scene.setRoot(root); stage.setScene(scene); stage.show(); }
From source file:Main.java
@Override public void start(final Stage stage) { stage.setWidth(500); stage.setHeight(500);/*from ww w.jav a2 s. c o m*/ Scene scene = new Scene(new Group()); VBox root = new VBox(); CategoryAxis lineXAxis = new CategoryAxis(getData()); System.out.println(lineXAxis.getEndMargin()); root.getChildren().addAll(lineXAxis); scene.setRoot(root); stage.setScene(scene); stage.show(); }
From source file:Main.java
@Override public void start(final Stage stage) { stage.setWidth(500); stage.setHeight(500);//from w ww.jav a 2 s.c om Scene scene = new Scene(new Group()); VBox root = new VBox(); CategoryAxis lineXAxis = new CategoryAxis(getData()); lineXAxis.setGapStartAndEnd(true); root.getChildren().addAll(lineXAxis); scene.setRoot(root); stage.setScene(scene); stage.show(); }
From source file:Main.java
@Override public void start(final Stage stage) { stage.setWidth(500); stage.setHeight(500);//from w w w .j ava 2 s. c om Scene scene = new Scene(new Group()); VBox root = new VBox(); CategoryAxis lineXAxis = new CategoryAxis(getData()); System.out.println(lineXAxis.getZeroPosition()); root.getChildren().addAll(lineXAxis); scene.setRoot(root); stage.setScene(scene); stage.show(); }
From source file:Main.java
@Override public void start(final Stage stage) { stage.setWidth(500); stage.setHeight(500);//from w ww .j a va2 s . com Scene scene = new Scene(new Group()); VBox root = new VBox(); CategoryAxis lineXAxis = new CategoryAxis(getData()); ObservableList<String> list = lineXAxis.getCategories(); root.getChildren().addAll(lineXAxis); scene.setRoot(root); stage.setScene(scene); stage.show(); }