Ok I have two frames.. one frame calls the other frame so it's like a dialog box... the second frame pops out, and yeah i want to close this second frame with a button.. how do i do it?? I was also wondering let's just say that I have two buttons in my second frame a YES and a NO... when the YES or NO gets clicked, the second frame closes.. how will the first frame will know which of the two button closed the second frame
it2051229
-3
Junior Poster in Training
Recommended Answers
Jump to PostInstead of a second frame use a dialog box. Read in this JOptionPane the static methods that begin with show...(...) .
Jump to PostOh come on man.. i want a FRAME.. a window.. don't limit my creativity :(
You do know that you can handle a Dialog (or JDialog) in exactly the same way you do a JFrame, except that you do not have, per default, the min max buttons on the frame, …
Jump to PostOf course, this is exactly what a Dialog is for...
All 9 Replies
javaAddict
900
Nearly a Senior Poster
Team Colleague
Featured Poster
it2051229
-3
Junior Poster in Training
masijade
1,351
Industrious Poster
Team Colleague
Featured Poster
mSJava
0
Newbie Poster
it2051229
-3
Junior Poster in Training
mSJava
0
Newbie Poster
Ezzaral
2,714
Posting Sage
Team Colleague
Featured Poster
masijade
1,351
Industrious Poster
Team Colleague
Featured Poster
Ezzaral
2,714
Posting Sage
Team Colleague
Featured Poster
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.