日期:2014-05-20  浏览次数:20785 次

netbeans窗口应用程序 新建窗口
用netbeans生成窗口应用程序,想点击某个按钮后,弹出一个新窗口,并实现新窗口与原来窗口之间的值传递,该怎么办?
回答请详细点,新手学习中……
如在.net中直接添加一个windows窗体,然后form2 f2=new form2();f2.show();就可以实现打开新窗口了!

------解决方案--------------------
new JFrameMain().setVisible(true);
------解决方案--------------------
在BUTTON的监听器中添加:
JFrame jf=new JFrame("this new frame");
jf.setVisible();
------解决方案--------------------
public MainFrame(String user,int at) {
this.user = user;
this.at = at; 


ShowUserL.setText(MainFrame.user);
------解决方案--------------------
怎么还没结贴!!
------解决方案--------------------
探讨
如在.net中直接添加一个windows窗体,然后form2 f2=new form2();f2.show();就可以实现打开新窗口了!