SampleJFrame.java
ファイルのコンテンツ
import javax.swing.JFrame;
public class SampleJFrame {
    public static void main(String[] args) {
	// フレーム生成
	JFrame frame = new JFrame();
	
	// 閉じるボタンの動作
	frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
	// フレームのサイズ
	frame.setSize(200, 150);
	// フレームのタイトル
	frame.setTitle("フレーム");
	// フレーム表示
	frame.setVisible(true);
    }
}
        
                
                Click here to get the file