aspose file tools*
The moose likes Swing / AWT / SWT and the fly likes about java swings Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "about java swings" Watch "about java swings" New topic
Author

about java swings

raja ramesh
Greenhorn

Joined: Jan 09, 2008
Posts: 25
can we implement JButton shape as other than rectangular(like circle,ellipse etc) ?
Campbell Ritchie
Sheriff

Joined: Oct 13, 2005
Posts: 39834
    
  28
Don't know. Look at this old thread.

Anybody else able to help? Should this thread be transferred to the Swing forum?
Brian Cole
Author
Ranch Hand

Joined: Sep 20, 2005
Posts: 862
Originally posted by pranaya geetha:
can we implement JButton shape as other than rectangular(like circle,ellipse etc) ?


Sure we can. The thread that Campbell Ritchie mentions says that one
must match the containers background, but I don't think that's the case.



note: Even though the corners are transparent, the button will still
react to clicks/rollovers on those corners.


bitguru blog
 
 
subject: about java swings