virtual keyboard documentation

XMLWordPrintable

    • Type: Bug
    • Resolution: Unresolved
    • Priority: P4
    • tbd
    • Affects Version/s: 8u31, 9
    • Component/s: javafx

      Looks like the vk documentation doesn't show how to enable the vk on a touch device and doesn't specify which platforns is supported in?

      can u confirm whether the following documentation is correct?

      http://docs.oracle.com/javase/8/javafx/user-interface-tutorial/embed.htm


      Some examples are simply incorrect, for example setting a string property in Example 30-1 Setting Email Layout for the Virtual Keyboard
      results in an exception:

      Exception in thread "JavaFX Application Thread" java.lang.ClassCastException: class java.lang.String cannot be cast to class java.lang.Integer (java.lang.String and java.lang.Integer are in module java.base of loader 'bootstrap')
      at javafx.controls/com.sun.javafx.scene.control.skin.FXVKSkin.getNodeVKType(FXVKSkin.java:350)
      at javafx.controls/com.sun.javafx.scene.control.skin.FXVKSkin.updateKeyboardType(FXVKSkin.java:363)
      at javafx.controls/com.sun.javafx.scene.control.skin.FXVKSkin$1.invalidated(FXVKSkin.java:498)
      at javafx.base/com.sun.javafx.binding.ExpressionHelper$SingleInvalidation.fireValueChangedEvent(ExpressionHelper.java:147)
      at javafx.base/com.sun.javafx.binding.ExpressionHelper.fireValueChangedEvent(ExpressionHelper.java:91)
      at javafx.base/javafx.beans.property.ObjectPropertyBase.fireValueChangedEvent(ObjectPropertyBase.java:106)
      at javafx.base/javafx.beans.property.ObjectPropertyBase.markInvalid(ObjectPropertyBase.java:113)
      at javafx.base/javafx.beans.property.ObjectPropertyBase.set(ObjectPropertyBase.java:147)
      at javafx.base/javafx.beans.property.ObjectProperty.setValue(ObjectProperty.java:78)
      at javafx.controls/com.sun.javafx.scene.control.skin.FXVK.setAttachedNode(FXVK.java:84)
      at javafx.controls/com.sun.javafx.scene.control.skin.FXVK.attach(FXVK.java:102)
      at javafx.controls/javafx.scene.control.skin.TextInputControlSkin.lambda$1(TextInputControlSkin.java:315)
      at javafx.controls/com.sun.javafx.scene.control.LambdaMultiplePropertyChangeListenerHandler.lambda$2(LambdaMultiplePropertyChangeListenerHandler.java:95)
      at javafx.base/javafx.beans.WeakInvalidationListener.invalidated(WeakInvalidationListener.java:82)
      at javafx.base/com.sun.javafx.binding.ExpressionHelper$Generic.fireValueChangedEvent(ExpressionHelper.java:376)

            Assignee:
            Unassigned
            Reporter:
            Anahata Technologies (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Imported: