question: public CommandEditor ( ActionCommand cmd , EditableResources res , String uiName , List < com . codename1 . ui . Command > commands , Properties projectGeneratorSettings , boolean java5 ) { this . java5 = java5 ; this . projectGeneratorSettings = projectGeneratorSettings ; this . uiName = uiName ; initComponents ( ) ; goToSource . setEnabled ( projectGeneratorSettings != null ) ; com . codename1 . ui . Command [ ] existing = new com . codename1 . ui . Command [ commands . size ( ) + 1 ] ; existing [ 0 ] = null ; for ( int iter = 1 ; iter < existing . length ; iter ++ ) { existing [ iter ] = commands . get ( iter - 1 ) ; } Vector postActions = new Vector ( ) ; postActions . addElement ( "None" ) ; Vector actions = new Vector ( ) ; actions . addElement ( "None" ) ; actions . addElement ( "Minimize" ) ; actions . addElement ( "Exit" ) ; actions . addElement ( "Execute" ) ; actions . addElement ( "Back" ) ; backCommand . setSelected ( cmd . isBackCommand ( ) ) ; String [ ] uiEntries = new String [ res . getUIResourceNames ( ) . length ] ; System . arraycopy ( res . getUIResourceNames ( ) , 0 , uiEntries , 0 , uiEntries . length ) ; Arrays . sort ( uiEntries ) ; for ( String uis : uiEntries ) { if ( ! uiName . equals ( uis ) ) { actions . addElement ( uis ) ; postActions . addElement ( uis ) ; } } action . setModel ( new DefaultComboBoxModel ( actions ) ) ; postAction . setModel ( new DefaultComboBoxModel ( postActions ) ) ; String a = cmd . getAction ( ) ; if ( a != null ) { if ( a . startsWith ( "@" ) ) { a = a . substring ( 1 ) ; asynchronous . setSelected ( true ) ; } else { if ( a . startsWith ( "!" ) ) { a = a . substring ( 1 ) ; String [ ] arr = a . split ( ";" ) ; action . setSelectedItem ( arr [ 0 ] ) ; postAction . setSelectedItem ( arr [ 1 ] ) ; } else { if ( a . startsWith ( "$" ) ) { a = a . substring ( 1 ) ; } } } } action . setSelectedItem ( a ) ; name . setText ( cmd . getCommandName ( ) ) ; id . setModel ( new SpinnerNumberModel ( cmd . getId ( ) , - 10000 , Integer . MAX_VALUE , 1 ) ) ; ResourceEditorView . initImagesComboBox ( icon , res , false , true ) ; icon . setSelectedItem ( cmd . getIcon ( ) ) ; ResourceEditorView . initImagesComboBox ( rollover , res , false , true ) ; rollover . setSelectedItem ( cmd . getRolloverIcon ( ) ) ; ResourceEditorView . initImagesComboBox ( pressed , res , false , true ) ; pressed . setSelectedItem ( cmd . getPressedIcon ( ) ) ; ResourceEditorView . initImagesComboBox ( disabled , res , false , true ) ; disabled . setSelectedItem ( cmd . getDisabledIcon ( ) ) ; }
target:  Creates new form CommandEditor 