Newer
Older
Algolike / src / main / java / views / MainFrame.java
Shinji on 15 Jun 2022 511 bytes ・GUIを設置
package views;

import controls.StepScheduler;
import models.Algo;

import javax.swing.*;
import java.awt.*;

public class MainFrame extends JFrame {
    StepScheduler stepScheduler;

    public MainFrame(){
        super("Algolike");
        stepScheduler = new StepScheduler();
        var mainPanel = new MainPanel(stepScheduler);
        this.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);

        mainPanel.setVisible(true);
        this.add(mainPanel, BorderLayout.CENTER);
        this.pack();
    }
}