相关疑难解决方法(0)

Swing模态对话框拒绝关闭 - 有时!

// This is supposed to show a modal dialog and then hide it again. In practice,
// this works about 75% of the time, and the other 25% of the time, the dialog
// stays visible.
// This is on Ubuntu 10.10, running:
// OpenJDK Runtime Environment (IcedTea6 1.9) (6b20-1.9-0ubuntu1)

// This always prints
// setVisible(true) about to happen
// setVisible(false) about to happen
// setVisible(false) has just happened
// even when the dialog stays visible.

package modalproblemdemo;

import java.awt.Frame; …
Run Code Online (Sandbox Code Playgroud)

java swing multithreading modal-dialog jdialog

6
推荐指数
1
解决办法
2118
查看次数

安全桌面模式效果的Java应用程序

现在有没有人如何实现"安全桌面模式"(效果),例如从Windows Vista/7 UAC同意块获得?

我假设它是一些功能,它将在这里删除像素(并可能使它们变灰),然后最终将其绘制到屏幕...我想将它应用到我的应用程序,以防止用户做任何事情,直到另一个用户连接到系统(但除此之外)

我真的很感激这个建议.

亲切的问候

一个

编辑:我真的只是在寻找这个

        graphicsFX.setColor(new Color(0, 0, 0, 0.8f));  
        graphicsFX.fillRect(0, 0, 800, 600);  
Run Code Online (Sandbox Code Playgroud)

延迟输入我可以做得很好......

谢谢大家....

java graphics swing jlayer glasspane

2
推荐指数
1
解决办法
438
查看次数