lab3 some minor fixes

This commit is contained in:
Zakharov_Rostislav 2023-11-11 18:15:09 +04:00
parent 9549cdbfa5
commit 0190f57a9c

View File

@ -35,7 +35,6 @@ public class HardFrame extends JFrame {
do {
check = generic.insertBlock(generic.makeRandomBlock());
}while(check);
buttonMakeObject.addActionListener(e -> {
DrawingShip drawingShip = generic.makeObject();
drawingShip.setPosition(pictureBoxWidth / 2 - drawingShip.getWidth()/2, pictureBoxHeight / 2 - drawingShip.getHeight()/2);