Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import javafx.application.Application;
- import javafx.scene.Scene;
- import javafx.scene.control.Label;
- import javafx.stage.Stage;
- /**
- * Main class for the "Hello World" style example
- */
- public class Main extends Application {
- /**
- * @param args the command line arguments
- */
- public static void main(String[] args) {
- Application.launch(args);
- }
- @Override
- public void start(Stage stage) {
- Label label = new Label();
- label.setStyle(" -fx-border-style:dashed; -fx-border-width:0; ");
- label.setText("test");
- Scene scene = new Scene(label, 300, 500);
- stage.setScene(scene);
- stage.show();
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement