怎么在JPanel实现模式对话框 看了JDialog 实现模式对话框的方法都是Frame
Test extends JPanel implements ActionListener{
public void actionPerformed(ActionEvent e) {
if(e.getSource()==bt2){
NewJDialog tt = new NewJDialog (this,"添加信息",true);
}
}
}
public class NewJDialog extends JDialog implements ActionListener{}
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货