Never mind. I solved my issue. All I had to do was make frame a static public object.
Type: Posts; User: Shivam24
Never mind. I solved my issue. All I had to do was make frame a static public object.
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...