Skip to main content

Resizable, Animated Menu Item

No replies
Joined: 2010-05-11

Hi guys,

I'd like to implement resizable and animated menu items.

so, when a menu item gains focus, it's size changes with hopefully a certain transition effect.

it was quite easy to implement a rollover button as the only thing I had to do was just using HIcon class's HIcon(java.awt.Image imageNormal, java.awt.Image imageFocus, int x, int y, int width, int height) constructor.

I think there must be some classes that supports transition effects.

to summarize, let's say there's a "button A" at x=10, y=10, w=100, h=100

and when the button gains a focus, the buttons attributes changes to

x=50, y=10, w=300, h=300. with a transition effect.

will there be any way to implement this?