7
Create a first window
- import java.awt.Frame;
- public class SimpleWindow0 {
- static Frame appwin;
- public static void main(String[] args) {
- appwin = new Frame("Application");
- appwin.setBounds(100, 100, 300, 200);
- appwin.setVisible(true);
- }
- }
Compile the program as usual then run it with the interpreter:
$ javac SimpleWindow0.java
$ java SimpleWindow0
Comments