fixture.click();
}
};
} else if (container instanceof JTabbedPane) {
JTabbedPane pane = (JTabbedPane) container;
final JTabbedPaneFixture fixture =
new JTabbedPaneFixture(testFrame.robot, pane);
return new IClickable() {
@Override
public void click() {
fixture.click();
}
};
} else if (container instanceof JPanel) {
JPanel pane = (JPanel) container;
final JPanelFixture fixture =
new JPanelFixture(testFrame.robot, pane);
return new IClickable() {
@Override
public void click() {
fixture.focus();
}
};
} else {
return getClickableParentRecursive(container.getParent());
}