void () { if (mySteps.isEmpty()) { return; } final Step step = mySteps.get(myCurrentStep); LOG.assertTrue(step != null); step._init(); myCurrentStepComponent = step.getComponent(); LOG.assertTrue(myCurrentStepComponent != null); showStepComponent(myCurrentStepComponent); Icon icon = step.getIcon(); if (icon != null) { myIcon.setIcon(icon); myIcon.setBorder(BorderFactory.createEmptyBorder(0, 0, 0, 8)); } updateButtons(); UiNotifyConnector.doWhenFirstShown(myCurrentStepComponent, () -> { requestFocusTo(getPreferredFocusedComponent()); }); }