JFrame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE); 和 system.exit( )區別

J Frame 的setDefaultCloseOperation(int) 方法參數類型是int型, 並且JFrame.EXIT_ON_CLOSE也是int型, 下面是相對應的整形數據能做爲setDefaultCloseOperation的參數: 0 = DO_NOTHING_ON_CLOSE, 1 = HIDE_ON_CLOSE, 2 = DISPOSE_ON_CLOSE, 3 = EXIT_
相關文章
相關標籤/搜索