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

Feature suggestion : input masks

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Duplicate
    • Icon: P4 P4
    • None
    • None
    • javafx
    • None

      JavaFX currently misses an elementary feature : input validation / restriction.
      I think most people would like to have an easy-to-use input mask on TextInputControl-fields, sensible options could be :

      ALPHANUMERIC restriction
      ALPHA restriction
      NUMERIC restriction
      FLOAT restriction which would also allow at most one decimal separator - this would have to be read from the current locale, of course because the decimal seperator is different in some countries as you might know - being able to explicitly choose it from a list would also be nice because some developers create applications for foreign languages ...

      input-masks of some sort with mask-symbols for the most common types of input (see above) - sometimes the developer has to provide limited fields in which both the position and the specific type of input is restricted

      length limits (min and max)

      all of these should be configurable in scenebuilder - which is pretty easy to implement as there is already the possibility to add choiceboxes and textfields to scenebuilder itself via custom properties on TextField-extending, custom fields, included as library in SB

      These are pretty basic functionalities, most frameworks other than JavaFX already implement it in some way ... please think about it, pass the idea to your team of TextInputControl-experts sometime - the community will most assuredly appreciate it

            msladecek Martin Sládeček
            dmackjfx Daniel Mack (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported: