2023-09-14 20:54:49 +04:00
|
|
|
package ProjectElectricLocomotive;
|
|
|
|
|
|
|
|
import javax.swing.*;
|
|
|
|
|
|
|
|
public class MainFrameElectricLocomotive extends JFrame {
|
|
|
|
private FormElectricLocomotive _formElectricLocomotive;
|
2023-09-14 22:12:05 +04:00
|
|
|
|
|
|
|
public MainFrameElectricLocomotive() {
|
|
|
|
super();
|
|
|
|
setTitle("ElectroLoco");
|
2023-09-14 20:54:49 +04:00
|
|
|
setDefaultCloseOperation(EXIT_ON_CLOSE);
|
|
|
|
_formElectricLocomotive = new FormElectricLocomotive();
|
|
|
|
setContentPane(_formElectricLocomotive.getPictureBox());
|
|
|
|
setDefaultLookAndFeelDecorated(false);
|
2023-10-08 20:20:04 +04:00
|
|
|
setLocation(500, 200);
|
2023-09-14 20:54:49 +04:00
|
|
|
pack();
|
|
|
|
setVisible(true);
|
|
|
|
}
|
|
|
|
}
|