You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@pivot.apache.org by "Lukas Machacek (Created) (JIRA)" <ji...@apache.org> on 2012/01/17 16:13:39 UTC

[jira] [Created] (PIVOT-835) TextPane is unusable in 2.0.1 release

TextPane is unusable in 2.0.1 release
-------------------------------------

                 Key: PIVOT-835
                 URL: https://issues.apache.org/jira/browse/PIVOT-835
             Project: Pivot
          Issue Type: Bug
          Components: wtk
    Affects Versions: 2.0.1
         Environment: GNU/Linux, SUN JDK 1.7 & 1.6
            Reporter: Lukas Machacek


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 is here:
<?xml version="1.0" encoding="UTF-8"?>
<Window title="TextPane example" maximized="true"
		xmlns:text="org.apache.pivot.wtk.text"
		xmlns="org.apache.pivot.wtk">

	<TablePane>
		<columns>
			<TablePane.Column width="1*"/>
		</columns>

		<TablePane.Row height="1*">
			<Border styles="{color:10}">
				<ScrollPane horizontalScrollBarPolicy="fill" verticalScrollBarPolicy="fill_to_capacity">
					<TextPane tooltipText="Enter character, than press Enter key and try to enter another character">
						<text:Document>
							<text:Paragraph>
								<text:TextNode text="Some text ..."/>
							</text:Paragraph>
						</text:Document>
					</TextPane>
				</ScrollPane>
			</Border>
		</TablePane.Row>
	</TablePane>
</Window>

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Updated] (PIVOT-835) TextPane is unusable in 2.0.1 release

Posted by "Lukas Machacek (Updated) (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/PIVOT-835?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Lukas Machacek updated PIVOT-835:
---------------------------------

    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.

  was:
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 is here:
<?xml version="1.0" encoding="UTF-8"?>
<Window title="TextPane example" maximized="true"
		xmlns:text="org.apache.pivot.wtk.text"
		xmlns="org.apache.pivot.wtk">

	<TablePane>
		<columns>
			<TablePane.Column width="1*"/>
		</columns>

		<TablePane.Row height="1*">
			<Border styles="{color:10}">
				<ScrollPane horizontalScrollBarPolicy="fill" verticalScrollBarPolicy="fill_to_capacity">
					<TextPane tooltipText="Enter character, than press Enter key and try to enter another character">
						<text:Document>
							<text:Paragraph>
								<text:TextNode text="Some text ..."/>
							</text:Paragraph>
						</text:Document>
					</TextPane>
				</ScrollPane>
			</Border>
		</TablePane.Row>
	</TablePane>
</Window>


... removed BXML from issue description and add it as an attachment.
                
> TextPane is unusable in 2.0.1 release
> -------------------------------------
>
>                 Key: PIVOT-835
>                 URL: https://issues.apache.org/jira/browse/PIVOT-835
>             Project: Pivot
>          Issue Type: Bug
>          Components: wtk
>    Affects Versions: 2.0.1
>         Environment: GNU/Linux, SUN JDK 1.7 & 1.6
>            Reporter: Lukas Machacek
>             Fix For: 2.0.2
>
>         Attachments: TextPaneExample.java, textPaneExample_window.bxml
>
>
> 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.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Issue Comment Edited] (PIVOT-835) TextPane is unusable in 2.0.1 release

Posted by "Sandro Martini (Issue Comment Edited) (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/PIVOT-835?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13187758#comment-13187758 ] 

Sandro Martini edited comment on PIVOT-835 at 1/17/12 4:39 PM:
---------------------------------------------------------------

Hi Lukas, 
just committed into trunk test cases, and I sorry to say that the issue is real even in Windows, so maximum priority.

We'll look at this (I and others) asap.

Thank you for now.

                
      was (Author: smartini):
    Hi Lukas, we'll look at this (I and others) asap.
Thank you for now.

                  
> TextPane is unusable in 2.0.1 release
> -------------------------------------
>
>                 Key: PIVOT-835
>                 URL: https://issues.apache.org/jira/browse/PIVOT-835
>             Project: Pivot
>          Issue Type: Bug
>          Components: wtk
>    Affects Versions: 2.0.1
>         Environment: GNU/Linux, SUN JDK 1.7 & 1.6
>            Reporter: Lukas Machacek
>             Fix For: 2.0.2
>
>         Attachments: TextPaneExample.java, textPaneExample_window.bxml
>
>
> 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.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Commented] (PIVOT-835) TextPane is unusable in 2.0.1 release

Posted by "Noel Grandin (Commented) (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/PIVOT-835?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13192928#comment-13192928 ] 

Noel Grandin commented on PIVOT-835:
------------------------------------

Committed a fix in rev 1235672.

Please try it out.
                
> TextPane is unusable in 2.0.1 release
> -------------------------------------
>
>                 Key: PIVOT-835
>                 URL: https://issues.apache.org/jira/browse/PIVOT-835
>             Project: Pivot
>          Issue Type: Bug
>          Components: wtk
>    Affects Versions: 2.0.1
>         Environment: GNU/Linux, SUN JDK 1.7 & 1.6
>            Reporter: Lukas Machacek
>            Assignee: Noel Grandin
>             Fix For: 2.0.2
>
>         Attachments: TextPaneExample.java, textPaneExample_window.bxml
>
>
> 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.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Updated] (PIVOT-835) TextPane is unusable in 2.0.1 release

Posted by "Lukas Machacek (Updated) (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/PIVOT-835?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Lukas Machacek updated PIVOT-835:
---------------------------------

    Comment: was deleted

(was: Simple example which works in 2.0 well but in 2.0.1 not)
    
> TextPane is unusable in 2.0.1 release
> -------------------------------------
>
>                 Key: PIVOT-835
>                 URL: https://issues.apache.org/jira/browse/PIVOT-835
>             Project: Pivot
>          Issue Type: Bug
>          Components: wtk
>    Affects Versions: 2.0.1
>         Environment: GNU/Linux, SUN JDK 1.7 & 1.6
>            Reporter: Lukas Machacek
>             Fix For: 2.0.2
>
>         Attachments: TextPaneExample.java, textPaneExample_window.bxml
>
>
> 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.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Updated] (PIVOT-835) TextPane is unusable in 2.0.1 release

Posted by "Sandro Martini (Updated) (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/PIVOT-835?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Sandro Martini updated PIVOT-835:
---------------------------------

    Fix Version/s: 2.0.2
    
> TextPane is unusable in 2.0.1 release
> -------------------------------------
>
>                 Key: PIVOT-835
>                 URL: https://issues.apache.org/jira/browse/PIVOT-835
>             Project: Pivot
>          Issue Type: Bug
>          Components: wtk
>    Affects Versions: 2.0.1
>         Environment: GNU/Linux, SUN JDK 1.7 & 1.6
>            Reporter: Lukas Machacek
>             Fix For: 2.0.2
>
>
> 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 is here:
> <?xml version="1.0" encoding="UTF-8"?>
> <Window title="TextPane example" maximized="true"
> 		xmlns:text="org.apache.pivot.wtk.text"
> 		xmlns="org.apache.pivot.wtk">
> 	<TablePane>
> 		<columns>
> 			<TablePane.Column width="1*"/>
> 		</columns>
> 		<TablePane.Row height="1*">
> 			<Border styles="{color:10}">
> 				<ScrollPane horizontalScrollBarPolicy="fill" verticalScrollBarPolicy="fill_to_capacity">
> 					<TextPane tooltipText="Enter character, than press Enter key and try to enter another character">
> 						<text:Document>
> 							<text:Paragraph>
> 								<text:TextNode text="Some text ..."/>
> 							</text:Paragraph>
> 						</text:Document>
> 					</TextPane>
> 				</ScrollPane>
> 			</Border>
> 		</TablePane.Row>
> 	</TablePane>
> </Window>

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Commented] (PIVOT-835) TextPane is unusable in 2.0.1 release

Posted by "Lukas Machacek (Commented) (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/PIVOT-835?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13187881#comment-13187881 ] 

Lukas Machacek commented on PIVOT-835:
--------------------------------------

Hi Sandro,

Thanks for your quick response.

I tried it again with more paragraphs and ... with arrows there is no problem I can move through text where I want, Enter key (new line) is not problem when caret is not at the end of line, but when caret is at the end of the line and I press Enter key after that it is impossible to write any text and arrows starts to produce that Exceptions. And another situation is when you are at the beginning of the line and press Enter it shows that line on new position but the line before is shown too instead of empty line. It seams to me that there is something bad with creating of new lines when caret is at the beginning or at the end of line (paragraph).

Lukas
                
> TextPane is unusable in 2.0.1 release
> -------------------------------------
>
>                 Key: PIVOT-835
>                 URL: https://issues.apache.org/jira/browse/PIVOT-835
>             Project: Pivot
>          Issue Type: Bug
>          Components: wtk
>    Affects Versions: 2.0.1
>         Environment: GNU/Linux, SUN JDK 1.7 & 1.6
>            Reporter: Lukas Machacek
>             Fix For: 2.0.2
>
>         Attachments: TextPaneExample.java, textPaneExample_window.bxml
>
>
> 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.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Assigned] (PIVOT-835) TextPane is unusable in 2.0.1 release

Posted by "Sandro Martini (Assigned) (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/PIVOT-835?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Sandro Martini reassigned PIVOT-835:
------------------------------------

    Assignee: Noel Grandin

Hi Noel, 
excuse if I assign this directly to you, but you are our expert on this (and not only :-) ) ...

Bye,
Sandro

                
> TextPane is unusable in 2.0.1 release
> -------------------------------------
>
>                 Key: PIVOT-835
>                 URL: https://issues.apache.org/jira/browse/PIVOT-835
>             Project: Pivot
>          Issue Type: Bug
>          Components: wtk
>    Affects Versions: 2.0.1
>         Environment: GNU/Linux, SUN JDK 1.7 & 1.6
>            Reporter: Lukas Machacek
>            Assignee: Noel Grandin
>             Fix For: 2.0.2
>
>         Attachments: TextPaneExample.java, textPaneExample_window.bxml
>
>
> 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.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Issue Comment Edited] (PIVOT-835) TextPane is unusable in 2.0.1 release

Posted by "Sandro Martini (Issue Comment Edited) (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/PIVOT-835?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13187758#comment-13187758 ] 

Sandro Martini edited comment on PIVOT-835 at 1/17/12 5:09 PM:
---------------------------------------------------------------

Hi Lukas, 
just committed into trunk test cases, and I sorry to say that the issue is real even in Windows, so maximum priority.

For first tests, I see that in TextPaneSkin sometimes I have leadingSelectionBounds == null, and other times trailingSelectionBounds == null, but I don't think the wrong stuff is inside the getCharacterBounds(), could be something related to how key arrows are managed (and set some attributes), inside the keyPressed() method.
Only check for both variable not null remove the NPE but repaints are not right, so we need to look deeply at this (I and others).

And of course this is an important and urgent fix to do.

Thank you for now.

                
      was (Author: smartini):
    Hi Lukas, 
just committed into trunk test cases, and I sorry to say that the issue is real even in Windows, so maximum priority.

We'll look at this (I and others) asap.

Thank you for now.

                  
> TextPane is unusable in 2.0.1 release
> -------------------------------------
>
>                 Key: PIVOT-835
>                 URL: https://issues.apache.org/jira/browse/PIVOT-835
>             Project: Pivot
>          Issue Type: Bug
>          Components: wtk
>    Affects Versions: 2.0.1
>         Environment: GNU/Linux, SUN JDK 1.7 & 1.6
>            Reporter: Lukas Machacek
>             Fix For: 2.0.2
>
>         Attachments: TextPaneExample.java, textPaneExample_window.bxml
>
>
> 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.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Updated] (PIVOT-835) TextPane is unusable in 2.0.1 release

Posted by "Lukas Machacek (Updated) (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/PIVOT-835?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Lukas Machacek updated PIVOT-835:
---------------------------------

    Attachment: textPaneExample_window.bxml
                TextPaneExample.java

Simple example which works in 2.0 well but in 2.0.1 not
                
> TextPane is unusable in 2.0.1 release
> -------------------------------------
>
>                 Key: PIVOT-835
>                 URL: https://issues.apache.org/jira/browse/PIVOT-835
>             Project: Pivot
>          Issue Type: Bug
>          Components: wtk
>    Affects Versions: 2.0.1
>         Environment: GNU/Linux, SUN JDK 1.7 & 1.6
>            Reporter: Lukas Machacek
>             Fix For: 2.0.2
>
>         Attachments: TextPaneExample.java, textPaneExample_window.bxml
>
>
> 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 is here:
> <?xml version="1.0" encoding="UTF-8"?>
> <Window title="TextPane example" maximized="true"
> 		xmlns:text="org.apache.pivot.wtk.text"
> 		xmlns="org.apache.pivot.wtk">
> 	<TablePane>
> 		<columns>
> 			<TablePane.Column width="1*"/>
> 		</columns>
> 		<TablePane.Row height="1*">
> 			<Border styles="{color:10}">
> 				<ScrollPane horizontalScrollBarPolicy="fill" verticalScrollBarPolicy="fill_to_capacity">
> 					<TextPane tooltipText="Enter character, than press Enter key and try to enter another character">
> 						<text:Document>
> 							<text:Paragraph>
> 								<text:TextNode text="Some text ..."/>
> 							</text:Paragraph>
> 						</text:Document>
> 					</TextPane>
> 				</ScrollPane>
> 			</Border>
> 		</TablePane.Row>
> 	</TablePane>
> </Window>

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Commented] (PIVOT-835) TextPane is unusable in 2.0.1 release

Posted by "Sandro Martini (Commented) (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/PIVOT-835?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13187758#comment-13187758 ] 

Sandro Martini commented on PIVOT-835:
--------------------------------------

Hi Lukas, we'll look at this (I and others) asap.
Thank you for now.

                
> TextPane is unusable in 2.0.1 release
> -------------------------------------
>
>                 Key: PIVOT-835
>                 URL: https://issues.apache.org/jira/browse/PIVOT-835
>             Project: Pivot
>          Issue Type: Bug
>          Components: wtk
>    Affects Versions: 2.0.1
>         Environment: GNU/Linux, SUN JDK 1.7 & 1.6
>            Reporter: Lukas Machacek
>             Fix For: 2.0.2
>
>         Attachments: TextPaneExample.java, textPaneExample_window.bxml
>
>
> 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.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Resolved] (PIVOT-835) TextPane is unusable in 2.0.1 release

Posted by "Sandro Martini (Resolved) (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/PIVOT-835?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Sandro Martini resolved PIVOT-835.
----------------------------------

    Resolution: Fixed

Great work, Noel :-) .

Thank you.

                
> TextPane is unusable in 2.0.1 release
> -------------------------------------
>
>                 Key: PIVOT-835
>                 URL: https://issues.apache.org/jira/browse/PIVOT-835
>             Project: Pivot
>          Issue Type: Bug
>          Components: wtk
>    Affects Versions: 2.0.1
>         Environment: GNU/Linux, SUN JDK 1.7 & 1.6
>            Reporter: Lukas Machacek
>            Assignee: Noel Grandin
>             Fix For: 2.0.2
>
>         Attachments: TextPaneExample.java, textPaneExample_window.bxml
>
>
> 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.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Commented] (PIVOT-835) TextPane is unusable in 2.0.1 release

Posted by "Lukas Machacek (Commented) (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/PIVOT-835?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13192952#comment-13192952 ] 

Lukas Machacek commented on PIVOT-835:
--------------------------------------

Hi Noel,

Thank you for quick fix. I tested it and TextPane now works again well. 
I think that this issue can be now set as resolved.

Now I can upgrade my project on Pivot 2.0.1 using this fix - this was the last blocking issue for me ;-)

Lukas
                
> TextPane is unusable in 2.0.1 release
> -------------------------------------
>
>                 Key: PIVOT-835
>                 URL: https://issues.apache.org/jira/browse/PIVOT-835
>             Project: Pivot
>          Issue Type: Bug
>          Components: wtk
>    Affects Versions: 2.0.1
>         Environment: GNU/Linux, SUN JDK 1.7 & 1.6
>            Reporter: Lukas Machacek
>            Assignee: Noel Grandin
>             Fix For: 2.0.2
>
>         Attachments: TextPaneExample.java, textPaneExample_window.bxml
>
>
> 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.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira