how-to

Window (swing) applications

Simplest window application

At beginning you need simple class extended javax.swing.JFrame.
public class Window extends javax.swing.JFrame { .. }
For creating window instance you have to call this code from main() method:
public class Main {

  public static void main(String[] args) {

    Window window = new Window();
    window.setVisible(true);
  }
}