I have two differnt classes' that extend from the JFrame class. I have a button on one frame that should go to the next Frame, but how would I do that?
godzab
0
Junior Poster in Training
Recommended Answers
Jump to PostWhat do you mean by "go to the next frame"?
Call a method in another class that extends JFrame?
Hide the current frame and set another one visible?
Jump to PostHow would I know the frame has been closed in the main method, so I could set Java2 to become visible.
If your code is the code that closes the frame you want to know the status of, the code that closes the frame could set the state …
All 7 Replies
NormR1
563
Posting Sage
Team Colleague
godzab
0
Junior Poster in Training
NormR1
563
Posting Sage
Team Colleague
Krokcy
14
Newbie Poster
godzab
0
Junior Poster in Training
Krokcy
14
Newbie Poster
NormR1
563
Posting Sage
Team Colleague
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.