HI, all I'm new at gxt and i have a problem with the Button-Widget and SetStyleName.
Here is the Code :
Code:
import com.extjs.gxt.ui.client.widget.button.Button;
// import com.google.gwt.user.client.ui.Button;
import com.google.gwt.core.client.EntryPoint;
import com.google.gwt.user.client.ui.RootPanel;
/**
* Entry point classes define <code>onModuleLoad()</code>.
*/
public class Test implements EntryPoint {
public void onModuleLoad() {
Button bTest=new Button("Test");
bTest.setStyleName("myButton");
RootPanel.get("inhalt").add(bTest);
}
}
and the CSS:
Code:
.myButton {
background-image: none;
background-color: white;
color : black;
border : none;
}
.myButton:hover {
background-image: none;
border:none;
}
If I take the Button from the GWT it works perfekt. When I use the gxt-Button the CSS will be ignored.
Where is my mistake?
Thanks