File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/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


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
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: 36453
    
  15
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
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: about java swings