Advertisement
Guest User

CSS bug

a guest
Mar 20th, 2014
123
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.68 KB | None | 0 0
  1. import javafx.application.Application;
  2. import javafx.scene.Scene;
  3. import javafx.scene.control.Label;
  4. import javafx.stage.Stage;
  5.  
  6.  
  7. /**
  8.  *  Main class for the "Hello World" style example
  9.  */
  10. public class Main extends Application {
  11.  
  12.   /**
  13.    * @param args the command line arguments
  14.    */
  15.   public static void main(String[] args) {
  16.     Application.launch(args);
  17.   }
  18.  
  19.   @Override
  20.   public void start(Stage stage) {
  21.    
  22.       Label label = new Label();
  23.       label.setStyle(" -fx-border-style:dashed; -fx-border-width:0; ");
  24.       label.setText("test");
  25.      
  26.       Scene scene = new Scene(label, 300, 500);
  27.       stage.setScene(scene);
  28.       stage.show();
  29.      
  30.   }
  31. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement