2 Replies Latest reply on May 10, 2011 9:23 AM by TPD-Opitz

    Java JButton resize when mouse over

      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.