you can change the color of a button using the CSS background-color
property. If you want to change the color of all your buttons use
.gwt-Button and overide it style. If you are using different button of
varied color/ sizes then change the property of the individual button
.gwt-Button {
}
.button1 {
}
if you are using a custom style you need to associate the style to the
button
button.setStyleName("button1");
Also, check out custom buttons under widgets. This would tell you how
to associate different images with a button especially if you want to
show different styles/gradients on mouse over/ disabled etc.
regards
Ashwin
On Thursday 21 July 2011 01:49 AM, Robert Lockwood wrote:
I started working with GWT some months ago but stopped because of
computer availability. I've just installed Tomcat in an old computer
of mine and have been able to deploy an example program on it. I
don't know much HTML, CSS, and am still learning Java (which I've been
learning just for this project).
I'm attempting to change some things in the MyWebApp project that uses
asynch.
I've been able to modify the code, html, and css to move the title,
table, and popup box to the left side and have attempted to position
them 10px from the left using css "margin". It doesnt' work for the
table - how do I do that?
I thought of creating the table in the Java file but it's not clear
how to do that.
css Margin doesn't work to position the popup from the table, just
from the top. I'd like to be able to position it down from the table.
And last and least: how does one change the color of a button on
display and after some event?
TIA
--
When I was 12 I thought I would live forever.
So far, so good.
--
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.
--
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.