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

[SplitMenuButton] : css style to change background not visible.

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: P3
    • Resolution: Duplicate
    • Affects Version/s: 8
    • Fix Version/s: None
    • Component/s: javafx
    • Environment:

      jdk1.8b58

      Description

       @Override
          public void start(Stage stage) throws Exception {
              BorderPane root = new BorderPane();
              
              SplitMenuButton splitButton = new SplitMenuButton();
              splitButton.setText("SplitButton");
              Button button = new Button("Button");
              String style = "-fx-background-color:red;";
              splitButton.setStyle(style);
              button.setStyle(style);
              
              root.setCenter(HBoxBuilder.create().children(splitButton, button).spacing(50).build());
              
              Scene scene = new Scene(root, 300, 100);
              stage.setScene(scene);
              stage.setTitle(VersionInfo.getRuntimeVersion());
              stage.show();
          }

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              slugovoy Sergey Lugovoy (Inactive)
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:
                Imported: