//---------------------------------------------------------------------------- // // SimpleCalc3.java // // written by: Simon Parsons // last modified: 7th September 2012 // // A slightly more advanced version of the simple graphical calculator // import javax.swing.*; // Use the swing library public class SimpleCalc3{ public static void main(String[] args){ JFrame frame = new JFrame("My Simple Calculator"); // Set up frame frame.getContentPane().add(new CalcComponent3()); // Create new component frame.setSize(300,200); // Set frame size frame.setVisible(true); // Make frame visible } }