Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

about java swings  RSS feed

 
raja ramesh
Greenhorn
Posts: 25
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
can we implement JButton shape as other than rectangular(like circle,ellipse etc) ?
 
Campbell Ritchie
Sheriff
Posts: 53720
127
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 932
1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!