• Post Reply Bookmark Topic Watch Topic
  • New Topic

Buttons Shape.  RSS feed

 
P Jain
Ranch Hand
Posts: 52
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi!
Can we draw buttons of different shapes.If yes, then How ?
I have to draw rounded buttons.How can I do it.
 
henri delbrouck
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You just have to define a new MyButton class expending JButton and to overwrite some methods used to render the button.
 
P Jain
Ranch Hand
Posts: 52
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi!
Can you please give me some examples so that I can initiate.
 
Joe Ess
Bartender
Posts: 9426
12
Linux Mac OS X Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The Java Tutorial has a trail about Custom Painting which talks about creating your own components.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!