welcome: please sign in
location: "ウインドウの表示"の差分
3と4のリビジョン間の差分
2009-11-27 00:52:57時点のリビジョン3
サイズ: 267
編集者: masahiko
コメント:
2009-11-27 01:01:56時点のリビジョン4
サイズ: 650
編集者: masahiko
コメント:
削除された箇所はこのように表示されます。 追加された箇所はこのように表示されます。
行 6: 行 6:
 public class Sample  public class Sample1
行 19: 行 19:

 {{{#!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}}

ウインドウの表示

  •    1  import javax.swing.*;
       2 
       3  public class Sample1
       4  {
       5         public static void main(String[] args)
       6         {
       7                 JFrame f;
       8                 
       9                 f = new JFrame();
      10                 f.setVisible(true);
      11         }
      12  }
    
  • swing01.png

       1  import javax.swing.*;
       2  
       3  public class Sample2
       4  {
       5         public static void main(String[] args)
       6         {
       7                 JFrame f, g;
       8                 
       9                 f = new JFrame();
      10                 f.setVisible(true);
      11                 f.setTitle("- f -");
      12                 f.setSize(200, 300);
      13                 
      14                 g = new JFrame();
      15                 g.setVisible(true);
      16                 g.setTitle("- g -");
      17                 g.setSize(300, 100);
      18         }
      19  }
    
  • swing02.png

ウインドウの表示 (最終更新日時 2011-12-13 02:59:08 更新者 masahiko)