[Java] 실습 (swing, JFrame, JPanel, awt, event)
·
Language/Java
JPanel의 paintComponent() package swing.graphics; import javax.swing.JFrame; import javax.swing.JPanel; import java.awt.*; //----------------------------------------------------------------------------------------------------------- // public class paintPanelExam extends JFrame //----------------------------------------------------------------------------------------------------------- public cla..
[Java] 실습 (frame)
·
Language/Java
package swing.frame; import java.awt.*; import javax.swing.*; //-------------------------------------------------------------------------- //-------------------------------------------------------------------------- public class ContentPaneExam extends JFrame { //-------------------------------------------------------------------------- ContentPaneExam() { setTitle("ContentPean과 JFrame 공부하기"); s..