From 614ebc8df71c05f64064774401de667974b4630f Mon Sep 17 00:00:00 2001 From: MorozovDanil Date: Mon, 13 May 2024 13:19:53 +0400 Subject: [PATCH] =?UTF-8?q?=D0=B3=D0=BE=D1=82=D0=BE=D0=B2=D0=B0=20=D0=BA?= =?UTF-8?q?=20=D1=81=D0=B4=D0=B0=D1=87=D0=B5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .idea/Lab(HARD).iml | 6 ++++-- .idea/misc.xml | 2 +- ProjectContainerShip/src/Main.java | 14 ++++++++++++-- 3 files changed, 17 insertions(+), 5 deletions(-) diff --git a/.idea/Lab(HARD).iml b/.idea/Lab(HARD).iml index d6ebd48..17c20fa 100644 --- a/.idea/Lab(HARD).iml +++ b/.idea/Lab(HARD).iml @@ -2,8 +2,10 @@ - - + + + + \ No newline at end of file diff --git a/.idea/misc.xml b/.idea/misc.xml index 639900d..bcb5da6 100644 --- a/.idea/misc.xml +++ b/.idea/misc.xml @@ -1,6 +1,6 @@ - + \ No newline at end of file diff --git a/ProjectContainerShip/src/Main.java b/ProjectContainerShip/src/Main.java index 3e59c38..debcd5b 100644 --- a/ProjectContainerShip/src/Main.java +++ b/ProjectContainerShip/src/Main.java @@ -1,5 +1,15 @@ +package ProjectContainerShip.src; + +import javax.swing.*; public class Main { public static void main(String[] args) { - System.out.println("Hello world!"); + JFrame.setDefaultLookAndFeelDecorated(false); + JFrame frame = new JFrame("Контейнеровоз"); + frame.setContentPane(new FormContainerShip().PanelWrapper); + frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE); + frame.setLocation(500, 200); + frame.pack(); + frame.setSize(700, 500); + frame.setVisible(true); } -} \ No newline at end of file +}