This week's giveaway is in the Spring forum.
We're giving away four copies of Learn Spring Security (video course) and have Eugen Paraschiv on-line!
See this thread for details.
Win a copy of Learn Spring Security (video course) this week in the Spring forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

about java swings

 
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: 48363
56
  • 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: 899
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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic