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.
我想知道是否有一种简单的方法可以让对话框在很短的时间内可见,然后让它变得不可见。或者即使有可能立即做到这一点。
干杯,凯什
在一个方法中这样做:
Thread t = new Thread() { public void run() { try { Thread.sleep(5000); } catch(Exception ex) { } dialog.setVisible(false); } t.start(); dialog.setVisible(true);