Hallo,

CSS doesn't work. Whats wrong here?

Thanks,
Michael


TestProject.java
Code:
Button myButton = new Button("button");

// myButton.setWidth("250"); // <-- working!

myButton.setStylePrimaryName("myButton"); // not working!

myButton.addListener(Events.Select, new Listener<ButtonEvent>() {
    public void handleEvent(ButtonEvent be) {
        Window.alert("Registration");
    }
});
TestProject.css

Code:
.myButton { width: 250px; }
TestProject.html

HTML Code:
<link type="text/css" rel="stylesheet" href="css/gxt-all.css">
<link type="text/css" rel="stylesheet" href="TestProject.css">