• Post Reply Bookmark Topic Watch Topic
  • New Topic

JButton raised effect.  RSS feed

 
mitesh mehta
Greenhorn
Posts: 25
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi all,
i want to add a 3-D raised effect for the Button when mouse moves over a Button.
Can anyone please tell me how to achive the same.
Thank you.
Mitesh
 
Nathan Pruett
Bartender
Posts: 4121
IntelliJ IDE Java Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Attach a mouseListener to the button. In mouseEntered() set the button's border to :


in mouseExited() set the button's border to :
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!