
这个不难,一个JFrame计算器例子:
第一空:extends JFrame implements ActionListener
第二空:jf.setLayout(new FlowLayout(FlowLayout.CENTER));
第三空:jbtEquals.addActionListener(this);
第四空:Integer.parseInt(jtfN1.getText())+Integer.parseInt(jtfN2.getText());
第五空:new Caculator();