Separate parent and child frames
1 posts in topic
Flat View  Flat View

Posted By:   Mira_Dimitrijevic
Posted On:   Tuesday, June 17, 2008 01:08 PM


I am developing a Java application that needs to be able to open a subset of the information displayed in the main window (parent frame) in a new/separate window (child frame). Of course the underlying data needs to be shared such that changes/edits to the data displayed in the child window are also displayed in the main window (possibly via an 'apply' button). I know about MDI and JInternalFrame but the actual requirement specifies that the subset of data should be displayed in a separate frame. Any advice on how to do that?

Many thanks in advance for any insight,


Re: Separate parent and child frames

Posted By:   Suresh_G  
Posted On:   Monday, June 23, 2008 12:36 PM

How u r displaying the data in the main window ? in JTable ?

If it is in JTable, create list of objects and render that object list in parent window.Then use the same list in the child windows and edit the data.Just do a repaint call on your parent window. That's it.

About | Sitemap | Contact