Изменены названия.

This commit is contained in:
2022-11-10 17:50:43 +04:00
parent c14a90b1de
commit 183ab1fb78
2 changed files with 3 additions and 3 deletions

View File

@@ -35,7 +35,7 @@ public class DrawingEntities <T extends EntityShip,U extends IAdditionalDrawing
indx=Integer.toString(ind1);
indy=Integer.toString(ind2);
}
public DrawingShip CreateTractor()
public DrawingShip CreateShip()
{
Random rnd = new Random();
int indEnt=0;

View File

@@ -78,7 +78,7 @@ public class FormParam extends JFrame{
if((_drawingEntities.Insert(ship)!=-1) & (_drawingEntities.Insert(deck)!=-1))
{
JOptionPane.showMessageDialog(null,"Объект добавлен");
Draw(_drawingEntities.CreateTractor());
Draw(_drawingEntities.CreateShip());
LabelInfo.setText(_drawingEntities.indx+ " " + _drawingEntities.indy);
}
else
@@ -100,7 +100,7 @@ public class FormParam extends JFrame{
if((_drawingEntities.Insert(_ship)!=-1) & (_drawingEntities.Insert(deck)!=-1))
{
JOptionPane.showMessageDialog(null,"Объект добавлен");
Draw(_drawingEntities.CreateTractor());
Draw(_drawingEntities.CreateShip());
LabelInfo.setText(_drawingEntities.indx+ " " + _drawingEntities.indy);
}
else