|
From: Adam A. (JIRA) <no...@sp...> - 2010-03-18 22:52:34
|
TextComponentInterceptor only works with JTextFields
----------------------------------------------------
Key: RCP-629
URL: https://jira.springsource.org/browse/RCP-629
Project: Spring Rich Client Project
Issue Type: Bug
Components: Core
Affects Versions: 1.1.0
Reporter: Adam Armistead
Assignee: Lieven Doclo
The TextComponentInterceptor class getTextComponent method casts a JTextField to a JTextField and the editor component of a JSpinner as a JTextField or just gets the editor component if it is a DefaultEditor.
This class implies by name and should process JTextComponents. The getTextComponent method currently ignores JEditorPanes and JTextAreas as well as any custom developer classes that directly extends JTextComponent.
This should be able to be fixed simply by modifying the first instanceof check to look for any JTextComponent and return a casted instance of that instead of the current check for JTextField which is needlessly restrictive.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://jira.springsource.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
|