> 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.