Search:

Type: Posts; User: Shivam24

Search: Search took 0.07 seconds.

  1. [SOLVED] Re: How to use the same instance of an object in two methods

    Never mind. I solved my issue. All I had to do was make frame a static public object.
  2. [SOLVED] How to use the same instance of an object in two methods

    My issue is that in my code, I create a new JFrame object called frame. In another method I want to close that frame. Any suggestions?



    // Non-relevant code
    private static class oddbutton...
Results 1 to 2 of 2