⇤ ← 2009-11-27 01:31:51時点のリビジョン1
サイズ: 43
コメント:
|
サイズ: 524
コメント:
|
削除された箇所はこのように表示されます。 | 追加された箇所はこのように表示されます。 |
行 3: | 行 3: |
. {{attachment:swing04.png}} {{{#!java import javax.swing.*; import java.awt.*; public class Test05 { public static void main(String[] args) { JFrame f; Container cp; JPanel p; f = new JFrame(); f.setVisible(true); f.setTitle("swing"); f.setSize(200, 300); f.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE); cp = f.getContentPane(); p = new JPanel(); cp.add(p); } } }}} . {{attachment:swing05.png}} |
ウインドウの内容
1 import javax.swing.*; 2 import java.awt.*; 3 4 public class Test05 5 { 6 public static void main(String[] args) 7 { 8 JFrame f; 9 Container cp; 10 JPanel p; 11 12 f = new JFrame(); 13 f.setVisible(true); 14 f.setTitle("swing"); 15 f.setSize(200, 300); 16 f.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE); 17 cp = f.getContentPane(); 18 p = new JPanel(); 19 cp.add(p); 20 } 21 }