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

Handling of incorrect values by the inspector could be improved

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Duplicate
    • Icon: P3 P3
    • 8
    • 7u6
    • javafx
    • None

      Today, when a user enters a property value, the inspector check its validity, and set back the previous value if the entered value is invalid.
      This is problematic, since SB erase data entered by a user.
      The worst case is for "complex" values such as Style.
      e.g drop a Button, and from Properties section, enter "-fx-background-color," (syntax error : ',' instead of ';'). This is a CSS syntax error, the value is erased, and an error message appears in the message panel.

      We also have the case of incorrect values, accepted by the API. For instance, negative height or width. This is accepted by the Fx API, but have unexpected effect (see DTL-4991). SB should warn the user in this case.

            mchicharro Moises Chicharro
            jcambon Jerome Cambon
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported: