需要SWT通知动画框(a.k.a烤面包机)

时间:2022-07-15 22:21:42

In a Java project (SWT desktop app), I want to inform the user about events through animated notification box (actually, it's not required to be animated). Something like MSN or any other IM client.

在Java项目(SWT桌面应用程序)中,我想通过动画通知框告知用户事件(实际上,它不需要动画)。像MSN或任何其他IM客户端的东西。

There is JToaster for Swing, but I wonder if there isn't any other implementation based on SWT.

有针对Swing的JToaster,但我想知道是否没有基于SWT的任何其他实现。

Thanks!

3 个解决方案

#1


2  

The MyLyn plugin for Eclipse does this. Since it's open source, maybe you can check the MyLyn code to see how it's done there?

Eclipse的MyLyn插件就是这样做的。既然它是开源的,也许您可​​以查看MyLyn代码以了解它是如何完成的?

#2


3  

If you want to create SWT-based System notifications, this is the best resource to start with:

如果要创建基于SWT的系统通知,这是开始使用的最佳资源:

http://hexapixel.com/2009/06/30/creating-a-notification-popup-widget

The author creates real System notifications which are stackable and fade out nicely.

作者创建了可堆叠和淡出的真实系统通知。

#3


1  

Check the BallonWindow from Novocode, it does something similar to what you need, without delving deep into an open source project. It is not animated, but it does show a notification as a separate window with an irregular background.

从Novocode检查BallonWindow,它可以执行类似于您需要的操作,而无需深入研究开源项目。它不是动画,但它确实将通知显示为具有不规则背景的单独窗口。

I have a blog post that explains its usage.

我有一篇博客文章解释了它的用法。

#1


2  

The MyLyn plugin for Eclipse does this. Since it's open source, maybe you can check the MyLyn code to see how it's done there?

Eclipse的MyLyn插件就是这样做的。既然它是开源的,也许您可​​以查看MyLyn代码以了解它是如何完成的?

#2


3  

If you want to create SWT-based System notifications, this is the best resource to start with:

如果要创建基于SWT的系统通知,这是开始使用的最佳资源:

http://hexapixel.com/2009/06/30/creating-a-notification-popup-widget

The author creates real System notifications which are stackable and fade out nicely.

作者创建了可堆叠和淡出的真实系统通知。

#3


1  

Check the BallonWindow from Novocode, it does something similar to what you need, without delving deep into an open source project. It is not animated, but it does show a notification as a separate window with an irregular background.

从Novocode检查BallonWindow,它可以执行类似于您需要的操作,而无需深入研究开源项目。它不是动画,但它确实将通知显示为具有不规则背景的单独窗口。

I have a blog post that explains its usage.

我有一篇博客文章解释了它的用法。