public void setVisible ( boolean visible ) { super . setVisible ( visible ) ; boolean shouldValidate = false ; if ( visible ) { if ( groupIdCombo . getText ( ) . length ( ) == 0 && groupIdCombo . getItemCount ( ) > 0 ) { groupIdCombo . setText ( groupIdCombo . getItem ( 0 ) ) ; packageCombo . setText ( getDefaultJavaPackage ( ) ) ; packageCustomized = false ; } if ( shouldValidate ) { validate ( ) ; } } }
Loads the group value when the page is displayed .