这个不难,一个JFrame计算器例子:
第一空:extends JFrame implements ActionListener
第二空:jf.setLayout(new FlowLayout(FlowLayout.CENTER));
第三空:jbtEquals.addActionListener(this);
第四空:Integer.parseInt(jtfN1.getText())+Integer.parseInt(jtfN2.getText());
第五空:new Caculator();
第一空:extends JFrame implements ActionListener
第二空:jf.setLayout(new FlowLayout());
第三空:jbtEquals.addActionListener(this);
第四空: Integer.parseInt(jtfN1.getText())+Integer.parseInt(jtfN2.getText())
第五空:new Caculator();
您的问题已经有小伙伴解答了,请点击【采纳】按钮,采纳帮您提供解决思路的答案,给回答的人一些鼓励哦~~
ps:开通问答VIP,享受5次/月 有问必答服务,了解详情↓↓↓
【电脑端】戳>>> https://vip.csdn.net/askvip?utm_source=1146287632
【APP 】 戳>>> https://mall.csdn.net/item/52471?utm_source=1146287632