welcome: please sign in
location: "ウインドウの内容"の差分
1と2のリビジョン間の差分
2009-11-27 01:31:51時点のリビジョン1
サイズ: 43
編集者: masahiko
コメント:
2009-11-27 01:34:42時点のリビジョン2
サイズ: 524
編集者: masahiko
コメント:
削除された箇所はこのように表示されます。 追加された箇所はこのように表示されます。
行 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}}

ウインドウの内容

  • swing04.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  }
    
  • swing05.png

ウインドウの内容 (最終更新日時 2010-12-13 02:46:25 更新者 masahiko)