Adding Cascading styles (CSS) to Google Web Toolkit (GWT) widgets is much simpler and involves only two steps.
Let us provide you with an example which would create buttons shown below.

Coding in your java class:
CSS rules:
- Style name
- set style name
for a widget using the $widgetInstance$.setStyleName() method or - stick with the default
style name of the widget (use for setting global values)
default style name examples:- for buttons: .gwt-Button
- for Check Boxs: .gwt-CheckBox
- set style name
- CSS style rule
- Add CSS style rules to a .css file and import that into the html page or
- write those inside the html page itself. (not recommended)
Let us provide you with an example which would create buttons shown below.

Coding in your java class:
Button cancelButton = new Button("Cancel");
Button loginButton = new Button("Login");
loginButton.setStyleName("buttons");CSS rules:
.gwt-button {
background: #EEEEFF;
color: #0000CC;
font-size: 12px;
}
.buttons {
background: #CCCCCC;
color: #333333;
font-size: 12px;
}


Read more about GWT and news release at
A new version of Firefox, 2.0.0.6 has been released today. This is another security update. And they released the 2.0.0.5 version just 13 days ago. That's why I really love Firefox. When ever an issue is reported, they work on it and provide us with a new version so that we are on the safe side always. And this is not the case with some other browsers where people have to wait months and years for some fixes. So thanks guys for all your dedication on making a better product.
