Search:

Type: Posts; User: GregBrannon

Search: Search took 0.10 seconds.

  1. Replies
    63
    Views
    7,394

    Re: dispose(); not working

    Is this a rebadged StressedOut?
  2. Replies
    63
    Views
    7,394

    Re: dispose(); not working

    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...
  3. Replies
    63
    Views
    7,394

    Re: dispose(); not working

    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....
  4. Replies
    63
    Views
    7,394

    Re: dispose(); not working

    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...
  5. Replies
    63
    Views
    7,394

    Re: dispose(); not working

    Don't make it difficult. Post the code that throws the error; the code that calls the dispose() method, preferably that whole class.
  6. Replies
    63
    Views
    7,394

    Re: dispose(); not working

    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...
  7. Replies
    63
    Views
    7,394

    Re: dispose(); not working

    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...
  8. Replies
    63
    Views
    7,394

    Re: dispose(); not working

    I thought you were asking about closing one other frame. Why the array? And what do you mean by "smoothly?"
Results 1 to 8 of 8