mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
preferred focused component for wizards
This commit is contained in:
@@ -448,6 +448,13 @@ public abstract class AbstractWizard<T extends Step> extends DialogWrapper {
|
||||
});
|
||||
}
|
||||
|
||||
@Nullable
|
||||
@Override
|
||||
public JComponent getPreferredFocusedComponent() {
|
||||
JComponent component = mySteps.get(myCurrentStep).getPreferredFocusedComponent();
|
||||
return component == null ? super.getPreferredFocusedComponent() : component;
|
||||
}
|
||||
|
||||
protected boolean canGoNext() {
|
||||
return true;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user