• Post Reply Bookmark Topic Watch Topic
  • New Topic

How to build the MDI JFrame?  RSS feed

 
Richard Phen
Ranch Hand
Posts: 52
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
My question is: There is a parent window, when click a button, it will pops up a child message window. The child window should be close before you active the parent window. How to do this?
The code like this:
public class Parent
{
........
public void doClick()
{
.....
Child c = new Child();
.....
}
}
 
friso dejonge
Ranch Hand
Posts: 162
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
please read in the java tutorial sections:
JDialog and JOptionPane
I think you will find what you are looking for.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!