Buttons with Round Edges

102 views
Skip to first unread message

abhiram

unread,
Sep 7, 2009, 2:33:48 AM9/7/09
to Google Web Toolkit
Hi all,

Which is the best method to implement a button with Round edges? I
was trying to implement a CSS code where I can set the corner images.
But i was just able to insert the image at only one corner. Can
someone send me a sample code where 4 different images are set for the
4 corners?

regards,
Abhiram

rjcarr

unread,
Sep 8, 2009, 2:47:31 AM9/8/09
to Google Web Toolkit
It doesn't look like the gwt provided factory buttons have corner
options (even though I thought they did).

My advice would be to get your buttons working as you like outside of
GWT and then build your own widget using some type of gridded panel
like a FlexTable. It really isn't that hard to convert your html
button to GWT once you have it worked out.

Sri

unread,
Sep 8, 2009, 8:20:35 AM9/8/09
to Google Web Toolkit
Look at the class DecoratorPanel. Its sole purpose is to give you the
ability to add Rounded Corners.
Reply all
Reply to author
Forward
0 new messages