1번 import javax.swing.*; import java.util.Scanner; public class Chapter13 extends JFrame { class MyThread implements Runnable { public void run() { System.out.println("스레드 실행 시작"); for(int i=1; i GamePanel.this.getWidth()) target.setLocation(0,0); else target.setLocation(x, y); target.getParent().repaint(); try { sleep(20); } catch(InterruptedException e) { target.setLocation(0, 0); target.getPa..