How to set the width and height of the displayed image in a button

How can I please specify the size of the image that I display in a button which I create dynamically.

HtmlCommandButton button =new HtmlCommandButton();

button.setImage(image.getUrl());

Thanks in advance

Message was edited by:

WebService

[309 byte] By [WebServicea] at [2007-11-27 5:14:59]
# 1
Apply CSS through setStyle() or setStyleClass().
BalusCa at 2007-7-12 10:37:07 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...
# 2
Can you please explain to me.Because I don't know how to make it .And thereis no method named setStyle or setStyleClass for the HtmlCommandButton.Thanks
WebServicea at 2007-7-12 10:37:07 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...
# 3

Follow some CSS tutorials to learn more about it.

Here is a page with some links: http://www.google.com/search?q=css+tutorial

Then you're doing or interpreting something wrong. The methods are actually there. I can play with them in my playground and they are also described in the the HtmlCommandButton API: http://java.sun.com/javaee/javaserverfaces/1.2/docs/api/javax/faces/component/html/HtmlCommandButton.html

BalusCa at 2007-7-12 10:37:07 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...
# 4
Thank you for all your responses.
WebServicea at 2007-7-12 10:37:07 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...