|Re: Font changes when editing a cell with an Inline Text Control [message #1063212 is a reply to message #1063208]
||Wed, 12 June 2013 16:23
| desis machino
Registered: May 2013
Thanks for the quick response Edwin. I really need this functionality (if possible), so I went ahead and created my own object implementing ICellEditor. This way I thought I could get control of the Text control.|
I found doing it this way also produces the same result. I even implemented a VerifyListener on the Text object and when a valid Key is pressed, I tried to change the Font on the Text object to the desired Font.
What happens now is that when I type a valid character in an editable cell, the Font changes briefly to my desired Font and then back to the default font.
I was hoping by implementing an ICellEditor and controlling the Text object I could achieve what I wanted. Is this possible? If not, do you know if it possible to change the default font so that I can modify the Font Text object will display when in edit mode?
Just to update, in my own ICellEditor class, I had the some code as the TextCellEditor. I then modified my implementation by removing the code in the keyReleased KeyListener method. What I found is that, if the getCanonicalValue method is not called, the Font does not change. Of course I lose the validation that occurs by removing this logic. Not sure if this was intentional or a misuse on my part.
[Updated on: Wed, 12 June 2013 16:38]
Report message to a moderator
Powered by FUDForum
. Page generated in 0.01919 seconds