Separator in JavaFX
Separator in JavaFX:
________________________________________________
import javafx.application.Application;
import javafx.geometry.Orientation;
import javafx.scene.Scene;
import javafx.scene.control.Label;
import javafx.scene.control.Separator;
import javafx.scene.layout.VBox;
import javafx.stage.Stage;
public class JavaFXSeparator extends Application {
@Override
public void start(Stage stage) {
Label lbl1 = new Label("Java");
Label lbl2 = new Label("Python");
Separator s = new Separator(Orientation.HORIZONTAL);
VBox vbox = new VBox(lbl1, s, lbl2);
Scene scene = new Scene(vbox, 250, 250);
stage.setTitle("JavaFX Separator");
stage.setScene(scene);
stage.show();
}
public static void main(String[] args) {
Application.launch(args);
}
}
_____________________________________________
Dark Hers
YouTube
https://instagram.com/darkhers
https://www.facebook.com/darkhers
TikTok
https://www.tiktok.com/@darkhers
https://www.pinterest.co.uk/darkhers
Comments
Post a Comment