一个JAVA编写的简单计算器 public class myFrame{ public static void main(String[] args) { JFrame frame = new JFrame(); frame.setBounds(500, 200,400,400); frame.add(new CalculatorPanel()); frame.setTitle("大飞射手"); frame.setVisible(true); frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE); } }