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

fx:id with dashes

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Unresolved
    • Icon: P4 P4
    • tbd
    • 7u6
    • javafx

      In Clojure the naming convention is roughly similar to camelCase, only that you use a dash "-" instead of an uppercase letter.
      fx:id="firstNameColumn" would be ==> fx:id="first-name-column".
      I noticed that this FXML file loads without problems:
      <?import javafx.scene.control.*?>
      <?import javafx.scene.layout.*?>

      <HBox>
        <VBox>
          <Label text='Benutzername:'/>
          <Label text="Passwort"/>
        </VBox>
        <VBox>
          <TextField id="tf-username"/>
          <PasswordField id='pw'/>
        </VBox>
        <Button text="Click Me!" id='bt-1'/>
      </HBox>

      But when I prefix the "id" with "fx:" then it doesn't work. <TextField fx:id="tf-username"/> ==> Exception.
      Please let the parser accept such inputs too.

            Unassigned Unassigned
            athiemejfx Andre Thieme (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Imported: