All done 2.0
This commit is contained in:
parent
f3419a40e6
commit
7018134d52
@ -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;
|
||||
|
@ -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
|
||||
|
@ -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();
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user