Integer chosen = (Integer)((JComboBox)e.getSource()).getSelectedItem(); int chosen_val = chosen.intValue();  String layout_type; if(chosen_val < layout_names.length) { layout_type = layout_names[chosen_val]; if(layout_type != null) { _pluginRef.setLayout(layout_type, true); } } }
if(DEBUG) {System.out.println("Setting ANIMATE:" + animate_button.isSelected());} pluginRef.setAnimateLayout(animate_button.isSelected()); }
		            public void actionPerformed(ActionEvent e) {		                Integer chosen = (Integer)((JComboBox)e.getSource()).getSelectedItem();		                int chosen_val = chosen.intValue();		                		                String layout_type;		                if(chosen_val < layout_names.length) {		                    layout_type = layout_names[chosen_val];			                if(layout_type != null) {			                    _pluginRef.setLayout(layout_type, true);			                }		                }		            }