2021年12月23日

摘要: java swing 本地目录或文件选择 直接上代码 JButton fileChoose = new JButton("选择文件或目录"); fileChoose.addActionListener(new ActionListener() { public void actionPerforme 阅读全文
posted @ 2021-12-23 13:50 搬砖小将 阅读(964) 评论(0) 推荐(0)
 
摘要: 关于swing窗口问题 叉关闭子窗口并关闭所有窗口 JFrame f_2 = new JFrame("XXX"); f_2.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE); 叉关闭子窗口不关闭其他窗口 JFrame f_2 = new JFrame("X 阅读全文
posted @ 2021-12-23 13:47 搬砖小将 阅读(464) 评论(0) 推荐(0)