I'm trying to dispose my JFrame by clicking a button, located on a JPanel that is placed on the JFrame that I want to close.
I tried to make a static method on the JFrame class, but ofcourse my IDE told me that wasn't going to happen.
Anyone thinking of a solution?
Thanks!
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…