Is this a rebadged StressedOut?
Type: Posts; User: GregBrannon
Is this a rebadged StressedOut?
Very confusing. Why is there a dispose() method in the GameListener class? (By convention, class names in Java begin with capital letters. Please follow Java's naming conventions.) What is it...
Then slow down, back up, and simplify.
Start with your first class - simply get it on screen. From its constructor, create an instance of the second class, passing to it a reference to the first....
So you have the dispose() method just hanging out there as a statement on a line by itself. That means it must be enclosed by a class that includes the dispose() method, AND that it will close the...
Don't make it difficult. Post the code that throws the error; the code that calls the dispose() method, preferably that whole class.
I assume you mean this error: cannot find symbol symbol: method dispose()
If the object on which the dispose() method is being called is a JFrame, then IT'S IMPOSSIBLE to get that error. You're...
A 'reference to an object' can be passed through a constructor or obtained from a getter method. In the scenario you've described, it seems the more typical approach would be to use the second...
I thought you were asking about closing one other frame. Why the array? And what do you mean by "smoothly?"