import java.awt.BorderLayout; import java.awt.event.ActionEvent; import java.awt.event.ActionListener; import javax.swing.JButton; import javax.swing.JFrame; import javax.swing.JLabel; import javax.swing.JPanel; @SuppressWarnings("serial") public class MasgDlg extends JFrame implements ActionListener { Calculate24 bp=new Calculate24(); protected MasgDlg( Calculate24 btp,String strMsg){ this.setTitle("��ʾ����"); bp=btp; JPanel textp=new JPanel(); JPanel btnp=new JPanel(); JLabel label=new JLabel(); this.setLayout(new BorderLayout()); this.add(textp,BorderLayout.NORTH); this.add(btnp,BorderLayout.SOUTH); textp.add(label,BorderLayout.CENTER); label.setText(strMsg); this.setSize(580,100); this.setLocation(400,300); JButton btnOk=new JButton("ȷ��"); JButton btnquit=new JButton("�˳�"); btnOk.setActionCommand("restart"); btnOk.addActionListener(this); btnquit.setActionCommand("quit"); btnquit.addActionListener(this); btnp.add(btnOk); btnp.add(btnquit); this.setVisible(true);//��ʾ�Ի��� this.setAlwaysOnTop(true); bp.btnStart.setEnabled(false); } public void actionPerformed(ActionEvent e) { if(e.getActionCommand().equals("restart")){ this.dispose(); bp.btnStart.setEnabled(true); } else if(e.getActionCommand().equals("quit")){ System.exit(0); //���ضԻ��� } } //������ /*public static void main(String []args){ new MsgDlg("��ӭ�ٴ�ʹ��"); }*/ }

xingxing1234 LV10
2023年3月22日
floweyws LV6
2022年6月3日
leslie123456 LV4
2018年7月9日
lw19900921 LV25
2018年7月5日
wyx065747 LV67
2017年12月10日
半路出家 LV2
2014年11月13日
hello LV7
2014年6月17日
骑着猪猪去逛街 LV32
2014年1月7日
最代码官方 LV168
2012年10月31日
yihui1229 LV13
2012年10月31日

Dominick LV14
2024年4月28日
xingxing1234 LV10
2023年3月22日
微信网友_6191697646571520 LV6
2022年11月24日
SZEPEZS LV9
2022年6月10日
floweyws LV6
2022年6月3日
liuqiang1314520
2020年10月16日
暂无贡献等级
675104182 LV14
2020年9月22日
hxb2000 LV1
2020年6月5日
a1677596408 LV23
2020年5月16日
lllpppwww LV5
2020年4月1日