回答編集履歴

1

コード追加

2018/05/11 10:44

投稿

退会済みユーザー
test CHANGED
@@ -2,4 +2,38 @@
2
2
 
3
3
 
4
4
 
5
+ ```java
6
+
7
+ Frame() {
8
+
9
+ setSize(300, 300);
10
+
11
+ setLocationRelativeTo(null);
12
+
13
+ setResizable(false);
14
+
15
+ setVisible(true);
16
+
17
+ setLayout(null);
18
+
19
+
20
+
21
+ for (int i = 0; i < 5; i++) {
22
+
23
+ nl[i] = new JLabel();
24
+
25
+ add(nl[i]);
26
+
27
+ nl[i].setBounds(10, 20 + 30 * i, 85, 20);
28
+
29
+ nl[i].setText("aaaaa");
30
+
31
+ }
32
+
33
+ }
34
+
35
+ ```
36
+
37
+
38
+
5
39
  ![イメージ説明](f325e8149b745700d3676af4593e35f0.png)