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

Pane : text node not render in Pane

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: P3
    • Resolution: Not an Issue
    • Affects Version/s: 7u6
    • Fix Version/s: 8
    • Component/s: javafx
    • Labels:

      Description

      Run this code to reproduce the issue:

          @Override
          public void start(Stage primaryStage) {
              BorderPane root = new BorderPane();
              
              Pane pane = new Pane();
              
              pane.getChildren().add(new Text("Text"));
              
              root.setCenter(pane);
              
              Scene scene = new Scene(root, 500, 500);
              primaryStage.setTitle(VersionInfo.getRuntimeVersion());
              primaryStage.setScene(scene);
              primaryStage.show();
          }

      The code creates an empty scene. If the line "Pane pane = new Pane();" is changed to "Pane pane = new StackPane();" the text will be shown on the screen.

        Attachments

          Activity

            People

            • Assignee:
              ekrejcir Eva Krejčířová (Inactive)
              Reporter:
              slugovoy Sergey Lugovoy (Inactive)
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:
                Imported: