Topic: 请教如何通过点击菜单的某项来打开一个窗口?

  Print this page

1.请教如何通过点击菜单的某项来打开一个窗口? Copy to clipboard
Posted by: suntrees
Posted on: 2004-10-03 09:02

我不知道用什么方法,希望各位大侠指点一二,最好给出一个例子!谢谢!

2.Re:请教如何通过点击菜单的某项来打开一个窗口? [Re: suntrees] Copy to clipboard
Posted by: David0203
Posted on: 2004-10-03 10:11

MenuItem2.addActionListener(new java.awt.event.ActionListener() {
       public void actionPerformed(java.awt.event.ActionEvent e) {
         Form2 l = new Form2();
         l.show(); // TODO Auto-generated Event stub actionPerformed()
       }
     });

3.Re:请教如何通过点击菜单的某项来打开一个窗口? [Re: suntrees] Copy to clipboard
Posted by: suntrees
Posted on: 2004-10-03 10:27

frame也可以找开吗?

4.Re:请教如何通过点击菜单的某项来打开一个窗口? [Re: suntrees] Copy to clipboard
Posted by: aleel_008
Posted on: 2004-10-03 10:27

good


   Powered by Jute Powerful Forum® Version Jute 1.5.6 Ent
Copyright © 2002-2021 Cjsdn Team. All Righits Reserved. 闽ICP备05005120号-1
客服电话 18559299278    客服信箱 714923@qq.com    客服QQ 714923