Skip to content

Commit 88f2d73

Browse files
hansonrhansonr
authored andcommitted
HelloWorld
1 parent 7335f11 commit 88f2d73

File tree

1 file changed

+22
-0
lines changed

1 file changed

+22
-0
lines changed
Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
package test;
2+
3+
import java.awt.Font;
4+
import java.awt.Label;
5+
6+
import javax.swing.JApplet;
7+
8+
public class HelloWorld extends JApplet {
9+
10+
@Override
11+
public void init() {
12+
13+
Label label = new Label("Hello, World!");
14+
label.setFont(new Font(Font.SANS_SERIF, Font.PLAIN, 32));
15+
label.setAlignment(Label.CENTER);
16+
add(label);
17+
18+
}
19+
20+
}
21+
22+

0 commit comments

Comments
 (0)