aspose file tools*
The moose likes Swing / AWT / SWT and the fly likes Rounded Buttons Tabs and others -SWT Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "Rounded Buttons Tabs and others -SWT" Watch "Rounded Buttons Tabs and others -SWT" New topic
Author

Rounded Buttons Tabs and others -SWT

Dave Jones
Ranch Hand

Joined: Feb 20, 2005
Posts: 77
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

Joined: Jul 11, 2001
Posts: 15299
    
    6

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.


GenRocket - Experts at Building Test Data
Dave Jones
Ranch Hand

Joined: Feb 20, 2005
Posts: 77
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
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Rounded Buttons Tabs and others -SWT