I am new to Java Swing. I am creating a frame with some components.
I have to close the frame and open another frame when the button is clicked. I had tried setVis
setVis
Did you try calling dispose() on the frame? I think that may be what you're looking for.