PIbd-22_Bondarenko_M.S._War.../Main.java

14 lines
386 B
Java
Raw Normal View History

2022-11-16 18:24:14 +04:00
import javax.swing.*;
public class Main {
public static void main(String[] args) {
JFrame frame = new JFrame("Hard №1");
frame.setContentPane(new FormShip().Mainpanel);
frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
frame.setLocation(500, 200);
frame.pack();
frame.setSize(800, 600);
frame.setVisible(true);
}
}