![](https://img-blog.csdnimg.cn/20201014180756916.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
java swing
alan_zyy
这个作者很懒,什么都没留下…
展开
-
java 常用弹出框
显示一个错误对话框,该对话框显示的 message 为 'alert': JOptionPane.showMessageDialog(null, "alert", "alert", JOptionPane.ERROR_MESSAGE); 显示一个内部信息对话框,其 message 为 'information': JOptionPane.showInternal...原创 2009-10-15 16:15:09 · 79 阅读 · 0 评论 -
dispose方法
对于JDialog等Window 在程序中显式调用window.dispose()方法将触发windowClosed事件 因此可以在程序中调用window.dispose()模拟鼠标点击关闭按钮 以便在public void windowClosed(WindowEvent e) 方法中处理window退出是的一些操作...原创 2009-11-12 11:16:30 · 519 阅读 · 0 评论