I have found that i can have a style defined in CSS Style sheet:

gwt-focus {
         border: 1px solid #FF0000;

 }

and have this applied to a widget on its focus
for example:  myTextBox.addFoucsListener(new FocusListener){
public void onFocus(Widget arg0) {
                // TODO Auto-generated method stub

                arg0.addStyleName("gwt-focus");
        }

        public void onLostFocus(Widget arg0) {
                // TODO Auto-generated method stub
                                arg0.removeStyleName("gwt-focus");
        }
});

But it is bad that i have to add the listener for all the widgets that
needs this change. :(

Regards,
Satya


On Apr 23, 2:56 pm, satya <[email protected]> wrote:
> Hi,
>
> I need to set the border color to Red on focus for all of my fields. I
> added the following in CSS:
>
> .gwt-TextBox:focus {
>          border: 1px solid #FF0000;
>
> }
>
> seems to work in FireFox, but not in IE. Is there any way i can get it
> to work for IE?
>
> Thank you very much,
> Satya
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to