//Author: ^-^Veerle^-^ import javax.swing.JFrame; public class calc2 extends JFrame { public static void main(String[] args) { JFrame.setDefaultLookAndFeelDecorated(true); JFrame frame = new JFrame("Calculator"); frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE); calc2GUI calculatorWindow = new calc2GUI(); frame.setContentPane(calculatorWindow.getGUI()); frame.setJMenuBar(calculatorWindow.getMenu()); frame.setSize(calculatorWindow.WIDTH, calculatorWindow.HEIGHT); frame.setResizable(false); frame.setVisible(true); frame.pack(); } }