Topic: 关于JFrame的问题 |
Print this page |
1.关于JFrame的问题 | Copy to clipboard |
Posted by: zouzoukankan Posted on: 2006-03-09 16:34 碰上个问题,举例如下: public class A extends JFrame{ ....... public JButton button1=new JButton(); ...... } public class B extends JFrame{ ....... A a=new A(); void button2_actionPerformed(ActionEvent e){ a.button1.setEnabled(false); ... } } 事件响应什么的写的都对,这里就省略了,问题出在a.button1.setEnabled(false);这句执行没效果,是不是SUN的限制?如何解决?(前提是必须两个JFrame),请指教,不胜感激! |
2.Re:关于JFrame的问题 [Re: zouzoukankan] | Copy to clipboard |
Posted by: Skybus Posted on: 2006-03-09 18:45 在a.button1.setEnabled(false);这句执行没效果? It's rather bewildering! |
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 |