>>433
JavaDrive
Home
Swingを使ってみよう
https://www.javadrive.jp/tutorial/
メモ帳にコピペしてjavacでコンパイルしてjavaで実行するべし

import javax.swing.JFrame;

class JSample1_2{
  public static void main(String args[]){
    JFrame frame = new JFrame("MyTitle");
    frame.setBounds(100, 100, 600, 400);
    frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
    frame.setVisible(true);
  }
}