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

ChoiceBox not showing content for non-string items like Text or Label

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: P4
    • Resolution: Not an Issue
    • Affects Version/s: fx2.0
    • Fix Version/s: None
    • Component/s: javafx
    • Environment:

      Win7 64

      Description

      Hi,

      I am trying to create a choicebox that contains non-text items such as Text or Label but when the choice box is displayed it displays "Label@be1234" instead of hello.

      Is this a bug or do you see an error?

      Thanks!!
      Chris


      javafx.scene.control.ChoiceBox {
          items: [
               "Abc",
               "Def",
               Label {
                    text: "Hello"
                textFill: CColor.rgb(200, 100, 100)
                    font: Font{size: 20}
               }
           ]
      }

        Attachments

          Activity

            People

            Assignee:
            jgiles Jonathan Giles
            Reporter:
            duke J. Duke (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:
              Imported: