JAVA2 - Day4 - GridBagLayout, Canvas
<기본적인 프레임 틀 복습하기> package com.layout; public class Main { public static void main(String[] args) { MyFrame my=new MyFrame("AWT",300,300); my.setVisible(true); } } ------------------------------------------------------------------------------------ package com.layout; import java.awt.Frame; import java.awt.event.WindowAdapter; import java.awt.event.WindowEvent; public class MyFrame extends Frame{ public MyFrame(String title, int width, int height) { //title setTitle(title); //size setSize(width, height); //window event // - local inner class /* class MyWindow extends WindowAdapter{ @Override public void windowClosing(WindowEvent e) { System.exit(0); } } MyWindow win=new MyWindow(); addWindowListener(win); */ // -anonymous class /* WindowAdapter win=new WindowAdapter() { @Override public void windowClosing(WindowEvent e) { Syst...