03-09-2011 02:10 AM
Hi, I am trying to change AutoCompleteField border with a border that respond to focus change by changing color. I succeed in removing the default border by AutoCompleteField_instance.getEditField().setBorde
Does anyone succeed in doing what I am trying to do?
Apart from the main problem, AutoCompleteField that are used in the application always leave blue cursor even when not focussed, unlike EditField, and it also leave grey background inconsistently.
I also have difficulties in typing text that is not in the choices.
Thank you for your help.
01-23-2012 07:20 AM
use the foll: setBorder(BorderFactory.createRoundedBorder(new XYEdges(int,
Add this in onFocus() and onUnFocus and pass the 'color' accordingly. This shud solve your border problem.
About the "Blue Cursor problem"...i solved it by painting each char that is entered and displayed a pipe operator as a cursor depding on the current cursor position.