PDA

View Full Version : All buttons are plain black-on-white



t-timmy
12 Nov 2009, 7:07 AM
Hi,

I'm new to ext-gwt.
I've installed 2.0.1 (Eclipse Galileo, Google Plugin, GWT 1.7), as instructed in the directions.
I have the images and css folders under the war folder, and the gxt.jar in the project classpath.

However, when I use Button or SplitButton in a simple onModuleLoad, all I get are these buttons that look like labels - plain black on white. The SplitButton doesn't even have the arrow for a dropdown menu.

I want my buttons to look like http://www.extjs.com/examples/explorer.html#buttons

Can anyone help?



public void onModuleLoad()
{
FlowPanel fp = new FlowPanel();
com.extjs.gxt.ui.client.widget.button.Button b = new com.extjs.gxt.ui.client.widget.button.Button("hello");
b.setBorders(true);
fp.add(b);
RootPanel.get().add(fp);
}

sven
12 Nov 2009, 7:09 AM
Make sure you included the gxt-all.css file. Take a look at the setup.txt file.

t-timmy
12 Nov 2009, 7:30 AM
I did:



<!-- -->
<!-- Consider inlining CSS to reduce the number of requested files -->
<!-- -->
<link type="text/css" rel="stylesheet" href="MyApplication.css">
<link rel="stylesheet" type="text/css" href="css/gxt-all.css" />

sven
12 Nov 2009, 7:56 AM
And you are sure the file gets loaded?

t-timmy
12 Nov 2009, 8:09 AM
Firebug lists gxt-all.css under its "CSS" tab, so I guess that means yes?
BTW I removed the trailing slash in the link in my previous post, just to be safe.

I still get only a very simple non-button...

Thanks for the replies.