java swing JDialog 问题
classAextendsJFrame{publicA(){JButtonj=newJButton("XXX");add(j);j.addActionListener(n...
class A extends JFrame{
public A(){
JButton j=new JButton("XXX");
add(j);
j.addActionListener(new ActionListener(){
public void actionPerformed(ActionEvent e){
JDialog jj=new JDialog(frame,"Title",true);
}
});
}
}
请问frame这边怎么表示父窗口啊 展开
public A(){
JButton j=new JButton("XXX");
add(j);
j.addActionListener(new ActionListener(){
public void actionPerformed(ActionEvent e){
JDialog jj=new JDialog(frame,"Title",true);
}
});
}
}
请问frame这边怎么表示父窗口啊 展开
1个回答
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询