package edu.drexel.cs451_rbbtd.apologies.gui;

public class MainMenu {
    public static void main(String[] args) {
        System.out.println("hello world");
    }
}

@@ -44,124 +44,2767 @@
 i;%0A%0A
-public class MainMenu %7B%0A    public static void main(String%5B%5D args) %7B%0A        System.out.println(%22hello world%22);%0A    %7D
+import javax.swing.*;%0Aimport java.awt.*;%0Aimport java.awt.event.ActionEvent;%0Aimport java.awt.event.ActionListener;%0A%0Apublic class MainMenu %7B%0A%0A    public JPanel rootPanel;%0A    private JButton newGameButton;%0A    private JButton quitButton;%0A%0A    public MainMenu() %7B%0A        // add listeners%0A        newGameButton.addActionListener(new ActionListener() %7B%0A            @Override%0A            public void actionPerformed(ActionEvent actionEvent) %7B%0A                System.out.println(%22this should switch to the player setup window%22);%0A            %7D%0A        %7D);%0A%0A        quitButton.addActionListener(new ActionListener() %7B%0A            @Override%0A            public void actionPerformed(ActionEvent actionEvent) %7B%0A                System.exit(0);%0A            %7D%0A        %7D);%0A    %7D%0A%0A    public static void main(String%5B%5D args) %7B%0A        JFrame frame = new JFrame(%22Apologies%22);%0A        frame.setContentPane(new MainMenu().rootPanel);%0A        frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);%0A        frame.setResizable(false);%0A        frame.pack();%0A        frame.setVisible(true);%0A    %7D%0A%0A    %7B%0A        setUpGUI();%0A    %7D%0A%0A    private void setUpGUI() %7B%0A        rootPanel = new JPanel();%0A        rootPanel.setLayout(new BoxLayout(rootPanel, BoxLayout.PAGE_AXIS));%0A        rootPanel.setBorder(BorderFactory.createEmptyBorder(15,15,15,15));%0A%0A        setUpTitle();%0A        rootPanel.add(Box.createVerticalStrut(10));%0A        setUpButtons();%0A    %7D%0A%0A    private void setUpTitle() %7B%0A        JLabel titleLabel = new JLabel(%22Apologies%22);%0A        titleLabel.setFont(titleLabel.getFont().deriveFont(24.0f));%0A        titleLabel.setHorizontalAlignment(SwingConstants.CENTER);%0A        rootPanel.add(centerJustify(titleLabel));%0A%0A        rootPanel.add(Box.createVerticalStrut(3));%0A%0A        JLabel subtitleLabel = new JLabel(%22board game%22);%0A        subtitleLabel.setFont(subtitleLabel.getFont().deriveFont(14.0f));%0A        subtitleLabel.setHorizontalAlignment(SwingConstants.CENTER);%0A        rootPanel.add(centerJustify(subtitleLabel));%0A    %7D%0A%0A    private Container centerJustify(Component component) %7B%0A        Box box = Box.createHorizontalBox();%0A        box.add(Box.createHorizontalGlue());%0A        box.add(component);%0A        box.add(Box.createHorizontalGlue());%0A        return box;%0A    %7D%0A%0A    private void setUpButtons() %7B%0A        newGameButton = new JButton(%22New Game%22);%0A        newGameButton.setToolTipText(%22Set up a new game of Apologies%22);%0A        newGameButton.setHorizontalAlignment(SwingConstants.CENTER);%0A        rootPanel.add(centerJustify(newGameButton));%0A%0A        quitButton = new JButton(%22Quit%22);%0A        newGameButton.setToolTipText(%22Exit this program%22);%0A        newGameButton.setHorizontalAlignment(SwingConstants.CENTER);%0A        rootPanel.add(centerJustify(quitButton));%0A    %7D%0A
 %0A%7D%0A

implement main menu GUI