質問編集履歴
4
メッセージの追加
test
CHANGED
File without changes
|
test
CHANGED
@@ -44,9 +44,9 @@
|
|
44
44
|
|
45
45
|
JButton b;
|
46
46
|
|
47
|
-
b=new JButton();
|
47
|
+
b=new JButton(); //ボタンを生成
|
48
48
|
|
49
|
-
b.setText("押してください");
|
49
|
+
b.setText("押してください"); //ボタンに文字を表示
|
50
50
|
|
51
51
|
f.getContentPane().add(b); //フレームにボタンを追加
|
52
52
|
|
3
「b.setText("押してください");」を追加
test
CHANGED
File without changes
|
test
CHANGED
@@ -44,7 +44,9 @@
|
|
44
44
|
|
45
45
|
JButton b;
|
46
46
|
|
47
|
-
b=new JButton();
|
47
|
+
b=new JButton();
|
48
|
+
|
49
|
+
b.setText("押してください");
|
48
50
|
|
49
51
|
f.getContentPane().add(b); //フレームにボタンを追加
|
50
52
|
|
2
「f.getContentPane().add(b);」を追加
test
CHANGED
File without changes
|
test
CHANGED
@@ -44,9 +44,11 @@
|
|
44
44
|
|
45
45
|
JButton b;
|
46
46
|
|
47
|
-
b=new JButton(); //ボタン
|
47
|
+
b=new JButton(); // ボタンの生成
|
48
48
|
|
49
|
+
f.getContentPane().add(b); //フレームにボタンを追加
|
50
|
+
|
49
|
-
|
51
|
+
int num;
|
50
52
|
|
51
53
|
lb=new JLabel();
|
52
54
|
|
1
初心者アイコンの追加
test
CHANGED
File without changes
|
test
CHANGED
File without changes
|