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

Stage with Text do not come up, exception thrown

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Cannot Reproduce
    • Icon: P2 P2
    • fx1.3
    • fx1.3
    • javafx
    • Mac 10.5, soma integration b18, prism, jdk1.6

      This is reproducible with soma integration b18 with prism. Not reproducible with swing toolkit. This is seen on mac 10.5

      Trying to show a Stage with a Text node present throws the following exception. Stage is not shown and the app waits

      java.lang.NullPointerException
      at com.sun.javafx.sg.prism.NGText.getContentBounds(NGText.java:64)
      at com.sun.javafx.sg.prism.NGNode.getEffectBounds(NGNode.java:486)
      at com.sun.javafx.sg.prism.NGNode.getClippedBounds(NGNode.java:465)
      at com.sun.javafx.sg.prism.NGNode.getCompleteBounds(NGNode.java:438)
      at com.sun.javafx.sg.prism.NGGroup.getContentBounds(NGGroup.java:156)
      at com.sun.javafx.sg.prism.NGNode.getEffectBounds(NGNode.java:486)
      at com.sun.javafx.sg.prism.NGNode.getClippedBounds(NGNode.java:465)
      at com.sun.javafx.sg.prism.NGNode.getCompleteBounds(NGNode.java:438)
      at javafx.scene.Scene.userInit$(Scene.fx:314)
      at com.sun.javafx.runtime.FXBase.complete$(FXBase.java:56)
      at test1.javafx$run$(test1.fx:8)


      Testcase:
      import javafx.stage.*;
      import javafx.scene.*;
      import javafx.scene.text.*;

      Stage {
          width: 250
          height: 250
          scene: Scene {
              content: Text {
                  content: "Some Label"
                  translateX: 30
                  translateY: 100
              }
          }
      }


            tdv Dmitri Trembovetski (Inactive)
            gramachasunw Girish Ramachandran (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported: