pivot-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Sandro Martini <sandro.mart...@gmail.com>
Subject Problem in TextArea
Date Tue, 03 Nov 2009 16:54:41 GMT
Hi,
I've just found a little problem in TextArea: for example try to run
the "Kitchen Sink" as Application, then point the mouse inside the
text area component.
Select all the text with <CTRL>A , then delete with the <Del> key and
I got this:

java.lang.IllegalStateException
	at org.apache.pivot.wtk.TextArea.setSelection(TextArea.java:582)
	at org.apache.pivot.wtk.TextArea.delete(TextArea.java:441)
	at org.apache.pivot.wtk.skin.TextAreaSkin.keyPressed(TextAreaSkin.java:1965)
	at org.apache.pivot.wtk.Component$ComponentKeyListenerList.keyPressed(Component.java:524)
	at org.apache.pivot.wtk.Component.keyPressed(Component.java:2608)
	at org.apache.pivot.wtk.ApplicationContext$DisplayHost.processKeyEvent(ApplicationContext.java:1222)
	at java.awt.Component.processEvent(Component.java:6040)
	at org.apache.pivot.wtk.ApplicationContext$DisplayHost.processEvent(ApplicationContext.java:660)
	at java.awt.Component.dispatchEventImpl(Component.java:4630)
	at java.awt.Component.dispatchEvent(Component.java:4460)
	at java.awt.KeyboardFocusManager.redispatchEvent(KeyboardFocusManager.java:1848)
	at java.awt.DefaultKeyboardFocusManager.dispatchKeyEvent(DefaultKeyboardFocusManager.java:704)
	at java.awt.DefaultKeyboardFocusManager.preDispatchKeyEvent(DefaultKeyboardFocusManager.java:969)
	at java.awt.DefaultKeyboardFocusManager.typeAheadAssertions(DefaultKeyboardFocusManager.java:841)
	at java.awt.DefaultKeyboardFocusManager.dispatchEvent(DefaultKeyboardFocusManager.java:668)
	at java.awt.Component.dispatchEventImpl(Component.java:4502)
	at java.awt.Component.dispatchEvent(Component.java:4460)
	at java.awt.EventQueue.dispatchEvent(EventQueue.java:599)
	at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:269)
	at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:184)
	at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:174)
	at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:169)
	at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:161)
	at java.awt.EventDispatchThread.run(EventDispatchThread.java:122)
Exception in thread "AWT-EventQueue-0" java.lang.NullPointerException
	at org.apache.pivot.wtk.skin.TextAreaSkin.scrollCharacterToVisible(TextAreaSkin.java:1594)
	at org.apache.pivot.wtk.skin.TextAreaSkin.layout(TextAreaSkin.java:1479)
	at org.apache.pivot.wtk.Component.validate(Component.java:1890)
	at org.apache.pivot.wtk.Container.validate(Container.java:341)
	at org.apache.pivot.wtk.Container.validate(Container.java:341)
	at org.apache.pivot.wtk.Container.validate(Container.java:341)
	at org.apache.pivot.wtk.Container.validate(Container.java:341)
	at org.apache.pivot.wtk.Container.validate(Container.java:341)
	at org.apache.pivot.wtk.Container.validate(Container.java:341)
	at org.apache.pivot.wtk.Container.validate(Container.java:341)
	at org.apache.pivot.wtk.Container.validate(Container.java:341)
	at org.apache.pivot.wtk.Container.validate(Container.java:341)
	at org.apache.pivot.wtk.Container.validate(Container.java:341)
	at org.apache.pivot.wtk.Container.validate(Container.java:341)
	at org.apache.pivot.wtk.Container.validate(Container.java:341)
	at org.apache.pivot.wtk.Container.validate(Container.java:341)
	at org.apache.pivot.wtk.ApplicationContext$DisplayHost.processEvent(ApplicationContext.java:661)
	at java.awt.Component.dispatchEventImpl(Component.java:4630)
	at java.awt.Component.dispatchEvent(Component.java:4460)
	at java.awt.KeyboardFocusManager.redispatchEvent(KeyboardFocusManager.java:1848)
	at java.awt.DefaultKeyboardFocusManager.dispatchKeyEvent(DefaultKeyboardFocusManager.java:704)
	at java.awt.DefaultKeyboardFocusManager.preDispatchKeyEvent(DefaultKeyboardFocusManager.java:969)
	at java.awt.DefaultKeyboardFocusManager.typeAheadAssertions(DefaultKeyboardFocusManager.java:841)
	at java.awt.DefaultKeyboardFocusManager.dispatchEvent(DefaultKeyboardFocusManager.java:668)
	at java.awt.Component.dispatchEventImpl(Component.java:4502)
	at java.awt.Component.dispatchEvent(Component.java:4460)
	at java.awt.EventQueue.dispatchEvent(EventQueue.java:599)
	at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:269)
	at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:184)
	at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:174)
	at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:169)
	at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:161)
	at java.awt.EventDispatchThread.run(EventDispatchThread.java:122)


Byeeee

Mime
View raw message