Win a copy of Testing JavaScript Applications this week in the HTML Pages with CSS and JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Bear Bibeault
  • Ron McLeod
  • Jeanne Boyarsky
  • Paul Clapham
Sheriffs:
  • Tim Cooke
  • Liutauras Vilda
  • Junilu Lacar
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • fred rosenberger
  • salvin francis
Bartenders:
  • Piet Souris
  • Frits Walraven
  • Carey Brown

rounded corner

 
Ranch Hand
Posts: 46
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi,

can any one please help me for rounder corners. i stuck on this from many days..

i want to apply round corners to textbox, window panel.
for button i have used image. but it's a single image which didn't grow. so my button stays with same width.
same happens with textbox.

for window panel from using CSS is it possible to make corners rounded??

please help....................
 
Bartender
Posts: 11445
19
Android Google Web Toolkit Mac Eclipse IDE Ubuntu Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You can choose to simply wrap your widget in a DecoratedPanel.
Else you can check out the css which GWT provides to see how it is done
 
Saloon Keeper
Posts: 2629
128
Google Web Toolkit Eclipse IDE Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
As maneesh said, you can use a decorated panel for it.
Now for the implementation,

you can either use a gif rounded corner (wont be smooth)
or a png rounded corder (smooth)

I prefer to use the GWT's ImageBundle class to do so, it combines all corners into a single image so that its loaded only once by the browser.
the menu in Inf Explorer in my site was done in the same manner.
 
Nilesh Pat
Ranch Hand
Posts: 46
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thank you for your replay. maneesh and salvin.
DecoratorPanel is good.
but as salvin said how can i use GWT's ImageBundle class to combines all corners into a single image? and how to apply that image on your widget? can anyone give hint or sample code?
i am new to GWT.
i want to apply round corners to buttons, textboxes, popup panels etc.
 
salvin francis
Saloon Keeper
Posts: 2629
128
Google Web Toolkit Eclipse IDE Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Simple. the 4 corners are in your image bundle so you can convert them into an image widget ...
The DecoratorPanel allows you to set the widgets for the corners so you can use those images @ corners...
next you have to figure out what is to be done for the sides...
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
    Bookmark Topic Watch Topic
  • New Topic