Trending News
Promoted
請問一下java中兩個函數的問題?
就是frame.dispose( ) 跟frame.hide( )有何差別?
兩個不是都可以讓frame消失不是嗎?
2 Answers
Rating
- ?Lv 62 decades agoFavorite Answer
hide()是隱藏元件。。。可以讓它再現。。。
dispose()是釋放視窗所使用的資源。。。沒了。。。不能再現。。。您不再使用某個視窗時才dispose()。。。
記得參考一下API文件。。。
Source(s): http://java.sun.com/
Still have questions? Get your answers by asking now.