Example usage for javafx.stage Stage show

List of usage examples for javafx.stage Stage show

Introduction

In this page you can find the example usage for javafx.stage Stage show.

Prototype

@Override
public final void show() 

Source Link

Usage

From source file:Main.java

@Override
public void start(Stage stage) {
    Scene scene = new Scene(new Group());
    stage.setTitle("Tooltip Sample");
    stage.setWidth(300);/*from   w w w . j  av  a  2  s .co  m*/
    stage.setHeight(150);

    Button button = new Button("Hover Over Me");
    button.setTooltip(new Tooltip("Tooltip for Button"));

    ((Group) scene.getRoot()).getChildren().add(button);

    stage.setScene(scene);
    stage.show();
}

From source file:Main.java

@Override
public void start(Stage stage) {
    ChoiceBox<String> choiceBox = new ChoiceBox<String>(cursors);

    StringConverter sc = new NumberStringConverter();

    choiceBox.setConverter(sc);//from w w w. j  av a 2 s .c  o m

    VBox box = new VBox();
    box.getChildren().add(choiceBox);
    final Scene scene = new Scene(box, 300, 250);
    scene.setFill(null);
    stage.setScene(scene);
    stage.show();
}

From source file:Main.java

@Override
public void start(Stage primaryStage) {
    Group group = new Group();

    Rectangle rect = new Rectangle(20, 20, 200, 200);

    StrokeTransition sT = new StrokeTransition(Duration.millis(2000), rect, Color.LIME, Color.YELLOW);
    sT.play();//from  w w w.ja va  2 s . com

    group.getChildren().add(rect);

    Scene scene = new Scene(group, 300, 200);
    primaryStage.setScene(scene);
    primaryStage.show();
}

From source file:Main.java

@Override
public void start(Stage stage) {
    Group root = new Group();
    Scene scene = new Scene(root, 300, 150);
    stage.setScene(scene);//from www .  j  a  v a 2s.  com
    stage.setTitle("Sample");

    Text t = new Text(10, 50, "This is a test");

    t.setTextAlignment(TextAlignment.JUSTIFY);
    t.setText("First row");
    t.setFont(new Font(20));

    root.getChildren().add(t);

    stage.show();
}

From source file:com.cdd.bao.editor.endpoint.BrowseEndpoint.java

public void actionOpen() {
    Branch branch = currentBranchValue();
    if (branch == null || branch.schema == null)
        return;/*w  ww. j  a  v a  2s.  co m*/

    Stage stage = new Stage();
    EditSchema edit = new EditSchema(stage);
    edit.loadFile(null, branch.schema);
    stage.show();
}

From source file:com.coolchick.translatortemplater.Main.java

@Override
public void start(final Stage primaryStage) throws Exception {
    this.primaryStage = primaryStage;
    primaryStage.setTitle("Hello Cel");
    showMailSpitter();//from  ww  w .j av  a2 s .  c o m
    primaryStage.show();
}

From source file:Main.java

@Override
public void start(final Stage stage) {
    stage.setWidth(500);//from w  w w . j  a v  a 2s. c o m
    stage.setHeight(500);
    Scene scene = new Scene(new Group());

    VBox root = new VBox();
    CategoryAxis lineXAxis = new CategoryAxis(getData());

    lineXAxis.setEndMargin(0.9);

    root.getChildren().addAll(lineXAxis);
    scene.setRoot(root);

    stage.setScene(scene);
    stage.show();
}

From source file:Main.java

@Override
public void start(Stage primaryStage) {
    primaryStage.setTitle("Text Fonts");

    Group g = new Group();
    Scene scene = new Scene(g, 550, 250);

    Text text1 = new Text();
    text1.setText("Hello World!");
    text1.setX(50);//from   w ww . j av  a  2  s.c o m
    text1.setY(50);
    text1.setFill(Color.RED);

    g.getChildren().add(text1);

    primaryStage.setScene(scene);
    primaryStage.show();
}

From source file:Main.java

@Override
public void start(final Stage stage) {
    stage.setWidth(500);//from w  ww .ja  v a 2s .c  om
    stage.setHeight(500);
    Scene scene = new Scene(new Group());

    VBox root = new VBox();
    CategoryAxis lineXAxis = new CategoryAxis(getData());

    lineXAxis.setStartMargin(1.2);

    root.getChildren().addAll(lineXAxis);
    scene.setRoot(root);

    stage.setScene(scene);
    stage.show();
}

From source file:Main.java

@Override
public void start(Stage stage) throws Exception {

    stage.setScene(new Scene(new SurveyWizard(stage), 400, 250));
    stage.show();
}