All done 2.0

This commit is contained in:
gg12 darfren 2023-11-10 13:29:14 +04:00
parent f3419a40e6
commit 7018134d52
3 changed files with 5 additions and 3 deletions

View File

@ -13,8 +13,8 @@ import java.util.Random;
public class DrawningMonorail {
protected EntityMonorail EntityMonorail;
private int _pictureWidth;
private int _pictureHeight;
public int _pictureWidth;
public int _pictureHeight;
protected int _startPosX;
protected int _startPosY;
protected int _monorailWidth = 133;

View File

@ -60,6 +60,8 @@ public class FormMonorailCollection {
if (_monorails.Insert(form.SelectedMonorail()) != -1)
{
JOptionPane.showMessageDialog(null, "Объект добавлен", "Информация", JOptionPane.INFORMATION_MESSAGE);
form.SelectedMonorail()._pictureWidth = pictureBoxWidth;
form.SelectedMonorail()._pictureHeight = pictureBoxHeight;
Draw();
}
else

View File

@ -15,6 +15,6 @@ import javax.swing.*;
public class Main {
public static void main(String[] args) throws IOException {
HardForm form = new HardForm();
FormMonorailCollection form = new FormMonorailCollection();
}
}