Мелкие правки.
This commit is contained in:
parent
a58a16db28
commit
b1aa92cbec
@ -8,7 +8,7 @@ public enum Direction
|
||||
|
||||
private final int DirectionCode;
|
||||
|
||||
private Direction(int directionCode)
|
||||
Direction(int directionCode)
|
||||
{
|
||||
this.DirectionCode = directionCode;
|
||||
}
|
||||
|
@ -4,13 +4,15 @@ public class EntityPlane
|
||||
{
|
||||
//скорость
|
||||
public int Speed;
|
||||
public int GetSpeed(){
|
||||
public int GetSpeed()
|
||||
{
|
||||
return Speed;
|
||||
}
|
||||
|
||||
//вес
|
||||
public float Weight;
|
||||
public float GetWeight(){
|
||||
public float GetWeight()
|
||||
{
|
||||
return Weight;
|
||||
}
|
||||
|
||||
|
@ -94,6 +94,7 @@ public class FormMapWithSetPlanesGeneric {
|
||||
|
||||
int result = JOptionPane.showConfirmDialog(null,"Удалить объект?","Удаление",
|
||||
JOptionPane.YES_NO_OPTION,JOptionPane.WARNING_MESSAGE);
|
||||
|
||||
if(result==JOptionPane.NO_OPTION)
|
||||
{
|
||||
return;
|
||||
|
@ -34,7 +34,6 @@ public class FormParam extends JFrame
|
||||
return new DrawingTriangleAirplaneWindow();
|
||||
}
|
||||
|
||||
//if r == 2
|
||||
return new DrawingRectAirplaneWindow();
|
||||
}
|
||||
|
||||
|
@ -50,7 +50,7 @@ public class FormPlane extends JDialog
|
||||
validate();
|
||||
}
|
||||
|
||||
//создание всплывающего окна
|
||||
//создание всплывающего окна
|
||||
public FormPlane()
|
||||
{
|
||||
super(new Frame("Airbus"));
|
||||
|
Loading…
x
Reference in New Issue
Block a user