This discussion is archived
2 Replies Latest reply: May 10, 2011 2:23 AM by TPD-Opitz-Consulting-com RSS

Java JButton resize when mouse over

857860 Newbie
Currently Being Moderated
Hi,
I'd like to know the techniques in Java2D to do the following visual effect in Java2D and Java Swing apps.

The JButton becomes bigger when the mouse is over it and returns back to its normal size when the mouse is not over it.

Thank you.

This visual effect usually is seen on some Web applications when there are some toolbars in the Web browsers that contain some buttons.
When the user moves the mouse and places the mouse over some button then the button gets bigger.

Legend

  • Correct Answers - 10 points
  • Helpful Answers - 5 points