From 0db5c98d2d4a6d9605ba77fef6389f2f6d831338 Mon Sep 17 00:00:00 2001 From: dimazhelovanov Date: Mon, 24 Oct 2022 20:59:27 +0300 Subject: [PATCH] =?UTF-8?q?=D0=92=D1=82=D0=BE=D1=80=D0=BE=D0=B9=20=D0=BA?= =?UTF-8?q?=D0=BE=D0=BC=D0=BC=D0=B8=D1=82.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- FormBattleship.java | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/FormBattleship.java b/FormBattleship.java index cb3aa2e..127eb33 100644 --- a/FormBattleship.java +++ b/FormBattleship.java @@ -1,5 +1,15 @@ -public class FormBattleship { - public static void main(String[] args) { +import javax.swing.*; +import java.awt.*; +import java.awt.event.ComponentEvent; +import java.awt.event.ComponentListener; +import java.util.Random; +public class FormBattleship extends JComponent { + private DrawningBattleship _battleship; + private EntityBattleship _entityBattleship; + public static void main(String[] args) { + FormBattleship formBattleship = new FormBattleship(); + } + public FormBattleship() { } }