This commit is contained in:
Zyzf 2022-12-23 13:52:43 +04:00
parent dfde6a71b7
commit 16cc086e0b
2 changed files with 2 additions and 3 deletions

View File

@ -85,7 +85,7 @@ public class ControllerMapWithSetBoats {
Stage stageBoat = new Stage();
FXMLLoader fxmlLoader = new FXMLLoader(FormBoat.class.getResource("form-boat-view.fxml"));
Scene sceneBoat = new Scene(fxmlLoader.load(), 320, 240);
Scene sceneBoat = new Scene(fxmlLoader.load(), 500, 400);
FirstUpdateBoatGUI(sceneBoat, stageBoat, fxmlLoader);

View File

@ -143,8 +143,7 @@ public class ControllerSetMixedBoats {
_boat.DrawTransport(gc);
}
}
private void SetData()
{
private void SetData() {
Random rnd = new Random();
_boat.SetPosition(rnd.nextInt(90) + 10, rnd.nextInt(90),
(int) canvas.getWidth(), (int) canvas.getHeight());