Мелкие правки к 1 лабораторной

This commit is contained in:
Илья 2023-10-09 13:10:34 +04:00
parent c2fee6a8f0
commit 1d873b4a41
2 changed files with 2 additions and 0 deletions

View File

@ -4,6 +4,7 @@ import java.awt.*;
public class DrawingWheels { public class DrawingWheels {
private WheelNumber wheelNumber; private WheelNumber wheelNumber;
public void setWheelNumber(int number) { public void setWheelNumber(int number) {
switch (number) { switch (number) {
case 2: case 2:

View File

@ -5,6 +5,7 @@ import javax.swing.*;
public class FrameMonorail extends JFrame { public class FrameMonorail extends JFrame {
PictureBox pictureBox; PictureBox pictureBox;
public FrameMonorail() { public FrameMonorail() {
super("Monorail"); super("Monorail");
setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE); setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);