How do i get the components when a new window opens from the main window?

In a given application, i am able to get the list of components for the main window. When an event happens in main window, now a new window opens here how do i get the components for this newly opened window? Here for this new window how do i do a getComponents()
[277 byte] By [piussanjay] at [2007-9-26 22:15:39]
# 1

> In a given application, i am able to get the list of

> components for the main window. When an event happens

> in main window, now a new window opens here how do i

> get the components for this newly opened window? Here

> for this new window how do i do a getComponents()

When the main window opens the new window you will have to store the new window as a variable in the main window. That way you can use the handle to it.

for example

setWindow2(...code to instantiate the new window);

In order for the main window to have access to the second window it will have to have a handle to it. ie a variable.

smalltalk2k at 2007-7-4 1:45:39 > top of Java-index,Other Topics,Java Community Process (JCP) Program...