кнопки не пропадают

This commit is contained in:
Данил Лопатин 2024-02-19 09:27:57 +03:00
parent 21cf202793
commit fbec28cbb1
2 changed files with 2 additions and 2 deletions

View File

@ -1,4 +1,4 @@
import javafx.scene.paint.Color;
import java.awt.Color;
public class EntityWarmlyLocomotive {

View File

@ -50,7 +50,7 @@ public class FormWarmlyLocomotive extends JFrame {
leftButton.setSize(30, 30);
leftButton.setLocation(775, 420);
pictureBox.add(leftButton);
repaint();
add(pictureBox);
}