0

I have to create a menu bar with a logo panel at far end of the bar and I have done it. But It's required that logo must have "appearing" effect? How can I do it?

mKorbel
  • 109,525
  • 20
  • 134
  • 319
Trần Nam
  • 23
  • 3
  • What exactly do you mean by appearing effect? An animation on start of the program (e.g. the label flying in), hover/mouseover effect or something completely different? – Lukas Rotter May 07 '16 at 16:59
  • yeah, label has the effect. It's something like effects in MS powerpoint(fly in, float in... )... Can you help me please? – Trần Nam May 07 '16 at 17:05
  • Does java swing support this? – Trần Nam May 07 '16 at 17:05
  • Please tell us which of the effects the desired effect is, so we can provide more specific help. Generally, you could use a [`Timer`](https://docs.oracle.com/javase/tutorial/uiswing/misc/timer.html) for the animation. – Lukas Rotter May 07 '16 at 17:10
  • I need a simple example to understand it, so you can help me using any effect that you think it's easy to understand xD – Trần Nam May 07 '16 at 17:17

1 Answers1

2

I'm not exactly sure what you mean with "appearring effect", but if you want to create some color effects, you could extend the JLabel class and add some custom Color/Image Effects. Maybe this example for creating a JLabel with various effects gets you started.

See also How to animate a JLabel

Community
  • 1
  • 1
Mad Matts
  • 1,118
  • 10
  • 14