Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Rounded Buttons Tabs and others -SWT

 
Dave Jones
Ranch Hand
Posts: 77
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi
I'm using SWT and I can't find a way to get my buttons to have rounded edges
I would also like to have my Tabs rounded.
It is supposed to be simple!!

can anybody help??
Thanks
 
Gregg Bolinger
GenRocket Founder
Ranch Hand
Posts: 15302
6
Chrome IntelliJ IDE Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by Dave Jones:
Hi
I'm using SWT and I can't find a way to get my buttons to have rounded edges
I would also like to have my Tabs rounded.
It is supposed to be simple!!

can anybody help??
Thanks


SWT uses native os calls to draw its widgets. So if the target os doesn't have rounded corners, you won't have them. You could use a widget without a border I supose and put an image of the button you want on it.

On the flip side, you can do whatever shaped widgets you want with Swing (to an extent) since it draws all its own widgets instead of relying on the os.

Not trying to suggest anything, that's just the way it is.
 
Dave Jones
Ranch Hand
Posts: 77
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks Gregg,
I can't use swing... so I'll just have to find some other way to round edge the Tab headers, anyway, I'm still open for suggestions about the Tabfolders
Dave
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic