This commit is contained in:
VictoriaPresnyakova 2022-12-23 12:21:55 +04:00
parent defe5faee7
commit 2442b008f6

View File

@ -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();
}