Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
在我们的 Centos 6.0 盒子上,我试图有一个半透明的窗口,上面有一个简单的消息。想法是停止用户输入任何数据,而我的程序连接到的程序已停止。但是,当我使用 OpenJdk 6 尝试它时,AWTUtilities 代码失败并出现异常。如果我尝试在此条目Java 透明窗口中作为示例提供的代码,我得到的只是一个带有弯曲角面板的紫色窗口,它不是半透明的。任何想法我将如何实现这种效果?
你能做的不多。如果屏幕上已经有 JFrame/JDialog,则可以改用玻璃窗格