Мелкие правки.

This commit is contained in:
Programmist73 2022-11-10 23:30:18 +04:00
parent a58a16db28
commit b1aa92cbec
5 changed files with 7 additions and 5 deletions

View File

@ -8,7 +8,7 @@ public enum Direction
private final int DirectionCode;
private Direction(int directionCode)
Direction(int directionCode)
{
this.DirectionCode = directionCode;
}

View File

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

View File

@ -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;

View File

@ -34,7 +34,6 @@ public class FormParam extends JFrame
return new DrawingTriangleAirplaneWindow();
}
//if r == 2
return new DrawingRectAirplaneWindow();
}

View File

@ -50,7 +50,7 @@ public class FormPlane extends JDialog
validate();
}
//создание всплывающего окна
//создание всплывающего окна
public FormPlane()
{
super(new Frame("Airbus"));