offin Posted December 31, 2008 Share Posted December 31, 2008 How would I reset the main JFrame, I wrote JFrame.reset(frame). But in Eclipse it says The method reset(JFrame) is undefined for the type JFrame. Can anybody help me? Link to comment Share on other sites More sharing options...
0 JamesCherrill Posted January 1, 2009 Share Posted January 1, 2009 What do you mean by "reset"? There's no reset method defined for JFrames afaik Link to comment Share on other sites More sharing options...
0 offin Posted January 1, 2009 Author Share Posted January 1, 2009 Reset as in reload(return it to the state it was in before.) Link to comment Share on other sites More sharing options...
0 JamesCherrill Posted January 1, 2009 Share Posted January 1, 2009 Probably easiest to just dispose of the old one and create a new one - otherwise you'll need one lot of code to create it and another similar set of code to reset all its content and state - with inevitable maintenance problems. Link to comment Share on other sites More sharing options...
0 offin Posted January 1, 2009 Author Share Posted January 1, 2009 Done it. Thanks! :) Link to comment Share on other sites More sharing options...
Question
offin
How would I reset the main JFrame, I wrote JFrame.reset(frame). But in Eclipse it says The method reset(JFrame) is undefined for the type JFrame. Can anybody help me?
Link to comment
Share on other sites
4 answers to this question
Recommended Posts