Uploaded image for project: 'Pivot'
  1. Pivot
  2. PIVOT-835

TextPane is unusable in 2.0.1 release

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 2.0.1
    • Fix Version/s: 2.0.2
    • Component/s: wtk
    • Labels:
      None
    • Environment:
      GNU/Linux, SUN JDK 1.7 & 1.6

      Description

      Hi all,

      I'm facing loss of functionality in TextPane component after upgrade of Pivot from 2.0 on 2.0.1 version (Sandro's last build from 8.1.2012).

      You can try it in this simple example. Click into first line, press Enter key, cursor goes on new line but from now it is impossible to write any text and on each press of arrow Up or Down key it throws NullPointerException:
      java.lang.NullPointerException
      at org.apache.pivot.wtk.skin.TextPaneSkin.updateSelection(TextPaneSkin.java:1168)
      at org.apache.pivot.wtk.skin.TextPaneSkin.selectionChanged(TextPaneSkin.java:1117)
      at org.apache.pivot.wtk.TextPane$TextPaneSelectionListenerList.selectionChanged(TextPane.java:199)
      at org.apache.pivot.wtk.TextPane.setSelection(TextPane.java:736)
      at org.apache.pivot.wtk.skin.TextPaneSkin.keyPressed(TextPaneSkin.java:926)
      ...

      Example BXML and Java files are attached.

        Attachments

        1. textPaneExample_window.bxml
          0.7 kB
          Lukas Machacek
        2. TextPaneExample.java
          0.8 kB
          Lukas Machacek

          Issue Links

            Activity

              People

              • Assignee:
                grandinj Noel Grandin
                Reporter:
                cgrim Lukas Machacek
              • Votes:
                0 Vote for this issue
                Watchers:
                0 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: