Изменены названия.
This commit is contained in:
@@ -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;
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user