Java Code Examples for javafx.scene.paint.Color#DARKSEAGREEN

The following examples show how to use javafx.scene.paint.Color#DARKSEAGREEN . You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: EpidemicReportsSettingsController.java    From MyBox with Apache License 2.0 6 votes vote down vote up
@FXML
public void defaultSourcesColors() {
    Color color = Color.LINEN;
    predefinedRect.setFill(color);
    FxmlControl.setTooltip(predefinedRect, new Tooltip(FxmlColor.colorNameDisplay(color)));

    color = Color.THISTLE;
    filledRect.setFill(color);
    FxmlControl.setTooltip(filledRect, new Tooltip(FxmlColor.colorNameDisplay(color)));

    color = Color.WHITE;
    inputtedRect.setFill(color);
    FxmlControl.setTooltip(inputtedRect, new Tooltip(FxmlColor.colorNameDisplay(color)));

    color = Color.DARKSEAGREEN;
    statisticRect.setFill(color);
    FxmlControl.setTooltip(statisticRect, new Tooltip(FxmlColor.colorNameDisplay(color)));
}
 
Example 2
Source File: BorderPaneSample.java    From marathonv5 with Apache License 2.0 4 votes vote down vote up
public BorderPaneSample() {
    super(400, 400);
    BorderPane borderPane = new BorderPane();

    //Top content
    Rectangle topRectangle = new Rectangle(400, 23, Color.DARKSEAGREEN);
    topRectangle.setStroke(Color.BLACK);
    borderPane.setTop(topRectangle);

    //Left content
    Label label1 = new Label("Left hand");
    Label label2 = new Label("Choice One");
    Label label3 = new Label("Choice Two");
    Label label4 = new Label("Choice Three");
    VBox leftVbox = new VBox();
    leftVbox.getChildren().addAll(label1, label2, label3, label4);
    borderPane.setLeft(leftVbox);

    //Right content
    Label rightlabel1 = new Label("Right hand");
    Label rightlabel2 = new Label("Thing A");
    Label rightlabel3 = new Label("Thing B");
    VBox rightVbox = new VBox();
    rightVbox.getChildren().addAll(rightlabel1, rightlabel2, rightlabel3);
    borderPane.setRight(rightVbox);

    //Center content
    Label centerLabel = new Label("We're in the center area.");
    ImageView imageView = new ImageView(ICON_48);

    //Using AnchorPane only to position items in the center
    AnchorPane centerAP = new AnchorPane();
    AnchorPane.setTopAnchor(centerLabel, Double.valueOf(5));
    AnchorPane.setLeftAnchor(centerLabel, Double.valueOf(20));
    AnchorPane.setTopAnchor(imageView, Double.valueOf(40));
    AnchorPane.setLeftAnchor(imageView, Double.valueOf(30));
    centerAP.getChildren().addAll(centerLabel, imageView);
    borderPane.setCenter(centerAP);

    //Bottom content
    Label bottomLabel = new Label("I am a status message, and I am at the bottom.");
    borderPane.setBottom(bottomLabel);

    getChildren().add(borderPane);
}
 
Example 3
Source File: BorderPaneSample.java    From marathonv5 with Apache License 2.0 4 votes vote down vote up
public BorderPaneSample() {
    super(400, 400);
    BorderPane borderPane = new BorderPane();

    //Top content
    Rectangle topRectangle = new Rectangle(400, 23, Color.DARKSEAGREEN);
    topRectangle.setStroke(Color.BLACK);
    borderPane.setTop(topRectangle);

    //Left content
    Label label1 = new Label("Left hand");
    Label label2 = new Label("Choice One");
    Label label3 = new Label("Choice Two");
    Label label4 = new Label("Choice Three");
    VBox leftVbox = new VBox();
    leftVbox.getChildren().addAll(label1, label2, label3, label4);
    borderPane.setLeft(leftVbox);

    //Right content
    Label rightlabel1 = new Label("Right hand");
    Label rightlabel2 = new Label("Thing A");
    Label rightlabel3 = new Label("Thing B");
    VBox rightVbox = new VBox();
    rightVbox.getChildren().addAll(rightlabel1, rightlabel2, rightlabel3);
    borderPane.setRight(rightVbox);

    //Center content
    Label centerLabel = new Label("We're in the center area.");
    ImageView imageView = new ImageView(ICON_48);

    //Using AnchorPane only to position items in the center
    AnchorPane centerAP = new AnchorPane();
    AnchorPane.setTopAnchor(centerLabel, Double.valueOf(5));
    AnchorPane.setLeftAnchor(centerLabel, Double.valueOf(20));
    AnchorPane.setTopAnchor(imageView, Double.valueOf(40));
    AnchorPane.setLeftAnchor(imageView, Double.valueOf(30));
    centerAP.getChildren().addAll(centerLabel, imageView);
    borderPane.setCenter(centerAP);

    //Bottom content
    Label bottomLabel = new Label("I am a status message, and I am at the bottom.");
    borderPane.setBottom(bottomLabel);

    getChildren().add(borderPane);
}