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

Exception get thrown when the Stage X,Y cordinate are bind to a variable

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P4 P4
    • fx1.2
    • fx1.1
    • javafx
    • Tested on Windows platform, JavaFX-SDK1.1

      This is a very simple scenario. The attached testcase has a Stage where the X coordinate is bind to a variable.

      When we try to drag the Stage (manually or changing the value for X coordinate on some event), exception get thrown.


      ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

      Exception in thread "AWT-EventQueue-0" com.sun.javafx.runtime.AssignToBoundException: Cannot assign to bound variable
              at com.sun.javafx.runtime.location.FloatVariable.setAsFloat(FloatVariable.java:111)
              at com.sun.javafx.stage.WindowStageDelegate$1ComponentListener$anon8.componentMoved(WindowStageDelegate.fx:230)
              at java.awt.Component.processComponentEvent(Unknown Source)
              at java.awt.Component.processEvent(Unknown Source)
              at java.awt.Container.processEvent(Unknown Source)
              at java.awt.Window.processEvent(Unknown Source)
              at java.awt.Component.dispatchEventImpl(Unknown Source)
              at java.awt.Container.dispatchEventImpl(Unknown Source)
              at java.awt.Window.dispatchEventImpl(Unknown Source)
              at java.awt.Component.dispatchEvent(Unknown Source)
              at java.awt.EventQueue.dispatchEvent(Unknown Source)
              at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source)
              at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source)
              at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
              at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
              at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
              at java.awt.EventDispatchThread.run(Unknown Source)
      ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

            morris Morris Meyer (Inactive)
            snathsunw Subrata Nath (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported: