eclipse中setDefaultCloseOperation使用出错
我在eclipse中使用f.setDefaultCloseOperation(JFrame.DO_NOTHING_ON_CLOSE)总是提示在f中未定义,不知道是怎么回事,请高手指教,谢谢! 搜索更多相关的解决方案:
eclipse
----------------解决方案--------------------------------------------------------
f是什么,如果这个类继承JFrame的话你直接setDefaultCloseOperation就可已
----------------解决方案--------------------------------------------------------