private final FocusTraversalPolicy navButtonsPolicy;
public FocusTraversal(WizardPage wpage, JComponent page, FocusTraversalPolicy pagePolicy, FocusTraversalPolicy navButtonsPolicy) {
this.wpage = wpage;
this.page = page;
this.pagePolicy = (pagePolicy != null) ? pagePolicy : new LayoutFocusTraversalPolicy() {
@Override
protected boolean accept(Component c) {
return !((c instanceof JLabel) || (c instanceof JPanel) || (c instanceof UIResource) ||
(c instanceof JViewport) || (c instanceof JScrollPane) ||