Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8113529

Region: styled thick border is rendered wrong

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P2 P2
    • 8
    • fx2.0
    • javafx
    • b30
      windows 7

      To reproduce run following code



      import javafx.application.Application;
      import javafx.scene.Parent;
      import javafx.scene.Scene;
      import javafx.scene.control.Button;
      import javafx.scene.layout.VBox;
      import javafx.stage.Stage;

      public class TitledPaned extends Application {

          public static void main(String[] args) {
              Application.launch( args);
          }

          private Parent getContent() {
              VBox list = new VBox(10);
              Button but=new Button("Button");
              but.setStyle("-fx-border-color: green;"
                      + "-fx-border-style: dashed;"
                      + "-fx-border-width: 3;");
              but.setFocusTraversable(false);
              list.getChildren().add(but);
            
              return list;
          }
          
          public void start(Stage stage) {
              stage.setX(100);
              stage.setY(100);
              stage.setWidth(300);
              stage.setHeight(300);
              Scene scene = new Scene(getContent());
              stage.setScene(scene);
              stage.setVisible(true);
          }
      }

            dgrieve David Grieve
            anazarov Andrey Nazarov (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported: