swing parent child interaction

From: - (nobody_at_hoem.om)
Date: 03/30/05


Date: Wed, 30 Mar 2005 11:34:29 +0800

i have a JFrame that has a JPanel in the BorderLayout.CENTER.
inside the JPanel is a JTabbedPane at it's center.

i have an action that instantiates a subclass of JDialog which is passed
an instance of JFrame. When an OK button is pressed, I want to add a
panel to the JTabbedPane.

other than providing a frame.getTabbedPane().add(panel), is there a
better way to do it?


Quantcast