package graphics;
import javax.swing.*;

public class ButtonPanelApplication {
   public static void main(String[] args) {
      JFrame window = new JFrame("Frame with buttons in a ButtonPanel");
      window.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
      ButtonPanel primary = new ButtonPanel();
      window.getContentPane().add(primary); // component added to content pane
      window.pack(); // sets the frame's size to accommodate its components
      window.setVisible(true); // displays the frame
   }
}
