Dear Fred,
I am not able to find the panel 1 and panel 2 with code also.
IWidgetLocator panel1Locator= (IWidgetLocator) ui
.find(new SwingWidgetLocator(JPanel.class, 0,
new NamedWidgetLocator("Panel3")));
System.out.println("panel1Locator ::" + panel1Locator);
IWidgetLocator panel2Locator= (IWidgetLocator) ui
.find(new SwingWidgetLocator(JPanel.class, 1,
new NamedWidgetLocator("Panel3")));
System.out.println("panel2Locator ::" + panel2Locator);
Note: As I mentioned , Child panels in "Panel3" dont have any name. That's the reason am giving only index here. I think above code is working if i have names forchild components.
It would be a great help if you could provide your inputs on this.
Regards,
Arun Kumar K.