简体   繁体   English

Java Swing-如何为JLabel添加外观效果?

[英]Java Swing - How do I add an appearing effect for JLabel?

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? 我该怎么做?

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. 我不确定“出现效果”的含义,但如果要创建一些颜色效果,可以扩展JLabel类并添加一些自定义的“颜色/图像效果”。 Maybe this example for creating a JLabel with various effects gets you started. 也许此示例创建具有各种效果JLabel会让您入门。

See also How to animate a JLabel 另请参见如何为JLabel设置动画

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM