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

Accordion : changed background in content TItledPane

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • P3
    • 8
    • 8
    • javafx
    • jdk 1.8.0-ea-b56, SWPipeline

    Description

      Run this code:

      @Override
          public void start(Stage stage) throws Exception {
              BorderPane root = new BorderPane();
              
              Accordion accordion = new Accordion();
              TitledPane pane1 = TitledPaneBuilder.create().text("123456789").content(new Label("Text")).build();
              TitledPane pane2 = TitledPaneBuilder.create().text("Title 2").content(new Label("Text")).build();
              accordion.setMaxSize(250, 250);
              accordion.getPanes().addAll(pane1, pane2);
              accordion.setStyle("-fx-border-color: red;-fx-border-insets: 20;");
              root.setCenter(accordion);
              
              Scene scene = new Scene(root, 500, 500);
              stage.setScene(scene);
              stage.show();
              stage.setTitle(VersionInfo.getRuntimeVersion());
          }

      Attachments

        1. accordion-2.2.png
          accordion-2.2.png
          14 kB
        2. accordion-8.0.png
          accordion-8.0.png
          16 kB
        3. d3d-toolbar.png
          d3d-toolbar.png
          20 kB
        4. sw-toolbarpng.png
          sw-toolbarpng.png
          29 kB

        Activity

          People

            msoch Martin Ĺ och
            slugovoy Sergey Lugovoy (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:
              Imported: