I think you may have misunderstood my first question about destroying a JFrame. What i am looking for is a way to destroy the JFrame w/in the code....not upon an action by the user.
3) what exactly is the ImageObserver? Ive seen things like this that could be set to null if they werent...
Thanks for the response jstreich.
1) so i would use setDefaultCloseOperation(EXIT_ON_CLOSE)?
2) if i had a derived class of JFrame could this be changed?
3) pretty obvious i guess.
4) what i was looking for is probably this setExtendedState().
-Thanks again!
Ok, ive looked through the java documentation and have a few questions.
1)How can i destroy a JFrame without ending an application? I noticed that it has a .destroy() method, but it contains no code. Would .dispose() and .setVisible(false) work (or the other way around)?
2)Is it possible to...
you could give your custom class a boolean value to track wether it was picked or not
then in the random method you pick a random number:
if it has been picked use recursion to invoke the method again
if not you return the result.
i think that would work anyway
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.