Win a copy of The Little Book of Impediments (e-book only) this week in the Agile and Other Processes forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

How to build the MDI JFrame?

 
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.
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic