简体   繁体   English

Swing应用程序中的托盘图标的SWT

[英]SWT for tray icon in Swing application

The tray icon implementation in Java 1.6 has its limitations, eg no support for the alpha channel in the graphic icons. Java 1.6中的托盘图标实现有其局限性,例如,不支持图形图标中的alpha通道。 Did anybody tried to use SWT to support a native looking tray icon? 是否有人尝试使用SWT支持本机外观的托盘图标? Is that possible at all? 那有可能吗?

OK, I gave it a try: it works fine on Windows but on Linux it crashes as soon as I close a JFrame or JDialog . 好的,我尝试了一下:在Windows上运行正常,但是在Linux上,一旦关闭JFrameJDialog它就会崩溃。 It looks like SWT gets confused by the AWT windows on its Linux implementation. 看起来SWT对其Linux实现中的AWT窗口感到困惑。

我认为您只会使用本机调用-我怀疑SWT到那时会为您做很多事情。

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

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