#acl All: == ウインドウの表示 == {{{#!java import javax.swing.*; public class Sample1 { public static void main(String[] args) { JFrame f; f = new JFrame(); f.setVisible(true); } } }}} . {{attachment:swing01.png}} {{{#!java import javax.swing.*; public class Sample2 { public static void main(String[] args) { JFrame f, g; f = new JFrame(); f.setVisible(true); f.setTitle("- f -"); f.setSize(200, 300); g = new JFrame(); g.setVisible(true); g.setTitle("- g -"); g.setSize(300, 100); } } }}} . {{attachment:swing02.png}} インスタンス . {{attachment:swing03.png}} シーケンス図 . {{attachment:swing07.png}} {{{ f.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE); }}}