language/java실습
[java,자바] JFrame Window메소드 알아보기
import java.awt.event.WindowAdapter; import java.awt.event.WindowEvent; import javax.swing.JFrame; import javax.swing.JLabel; public class WindowAdapterInnerTest extends JFrame{ JLabel lb = new JLabel("WindowAdapter 테스트중"); public WindowAdapterInnerTest() { add(lb); setSize(500,500); setVisible(true); setDefaultCloseOperation(DISPOSE_ON_CLOSE); setDefaultCloseOperation(DO_NOTHING_ON_CLOSE); Adap..
2021. 1. 14. 20:19
최근댓글