From 2442b008f63bf27fd65123d2345756a129e23c4f Mon Sep 17 00:00:00 2001 From: VictoriaPresnyakova Date: Fri, 23 Dec 2022 12:21:55 +0400 Subject: [PATCH] full 3 --- FormBoat.java | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/FormBoat.java b/FormBoat.java index df0a6f8..b0778a1 100644 --- a/FormBoat.java +++ b/FormBoat.java @@ -35,11 +35,11 @@ public class FormBoat extends JDialog{ gr.fillRect(0, 0, PictureBox.getWidth(), PictureBox.getHeight()); if (_boat != null) { _boat.DrawTransport(gr); - JLabel imageOfPlane = new JLabel(); - imageOfPlane.setPreferredSize(PictureBox.getSize()); - imageOfPlane.setMinimumSize(new Dimension(1, 1)); - imageOfPlane.setIcon(new ImageIcon(bmp)); - PictureBox.add(imageOfPlane,BorderLayout.CENTER); + JLabel imageOfBoat = new JLabel(); + imageOfBoat.setPreferredSize(PictureBox.getSize()); + imageOfBoat.setMinimumSize(new Dimension(1, 1)); + imageOfBoat.setIcon(new ImageIcon(bmp)); + PictureBox.add(imageOfBoat,BorderLayout.CENTER); } validate(); }