Here you can find the source of dictsReset(ArrayList
public static void dictsReset(ArrayList<HashMap> listDicts, HashMap<JCheckBox, JSpinner> DictBoxSpinner, HashMap<JCheckBox, JTextField> DictBoxTextField, HashMap<JCheckBox, JComboBox> DictBoxComboBox, HashMap<JRadioButton, JSpinner> DictRadioButtonSpinner, HashMap<JRadioButton, JTextField> DictRadioButtonTextField)
//package com.java2s; /*//from w ww . j ava 2 s . co m * Armadillo Workflow Platform v1.0 * A simple pipeline system for phylogenetic analysis * * Copyright (C) 2009-2011 Etienne Lord, Mickael Leclercq * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program. If not, see <http://www.gnu.org/licenses/>. */ import java.util.ArrayList; import java.util.HashMap; import javax.swing.JCheckBox; import javax.swing.JComboBox; import javax.swing.JRadioButton; import javax.swing.JSpinner; import javax.swing.JTextField; public class Main { public static void dictsReset(ArrayList<HashMap> listDicts, HashMap<JCheckBox, JSpinner> DictBoxSpinner, HashMap<JCheckBox, JTextField> DictBoxTextField, HashMap<JCheckBox, JComboBox> DictBoxComboBox, HashMap<JRadioButton, JSpinner> DictRadioButtonSpinner, HashMap<JRadioButton, JTextField> DictRadioButtonTextField) { DictBoxSpinner.clear(); DictBoxTextField.clear(); DictBoxComboBox.clear(); DictRadioButtonSpinner.clear(); DictRadioButtonTextField.clear(); listDicts.clear(); listDicts.add(DictBoxSpinner); listDicts.add(DictBoxTextField); listDicts.add(DictBoxComboBox); listDicts.add(DictRadioButtonSpinner); listDicts.add(DictRadioButtonTextField); } }