透明视窗秋千 [英] Transparent Swing Windows

查看:152
本文介绍了透明视窗秋千的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个小的JWindow 上有一个标志,用户可以拖动的东西。
我主要是发展在OS X上我的应用程序为了得到一个透明的窗口,我用

I have a little JWindow with a logo on it that users can drag stuff to. I develop my application mainly on OS X. To get a transparent window i use

setBackground(new Color(0,0,0,0));

在Mac上这个工作很漂亮,但我不能让Windows上的相同的效果。
有没有什么办法让一个透明窗口,而无需使用1.6的特定功能。

On a mac this works beautifully but I can't get the same effect on windows. Is there any way to get a transparent window without using 1.6 specific features.

我需要1.5兼容。

推荐答案

1.5的Java不支持透明窗口。
此功能引入了1.6.10版本的一部分。
见AWTUtilities类的更多细节。

As of 1.5 Java does not support transparent windows. This feature is introduced as part of 1.6.10 release. See AWTUtilities class for more details.

这篇关于透明视窗秋千的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆