void syncLists() { JList list = webPanels[1 - panelIndex].instanceList; DefaultListModel model1 = (DefaultListModel) instanceList.getModel(); DefaultListModel model2 = (DefaultListModel) list.getModel(); model2.clear(); int n = model1.getSize(); for (int i = 0; i < n; i++) model2.addElement(model1.get(i)); list.setSelectedIndices(new int[] {}); enableButtons(instanceList); webPanels[1 - panelIndex].enableButtons(list); }
protected void reset() { fCounterPanel.reset(); fProgressIndicator.reset(); fFailureView.clear(); fFailures.clear(); }
public void clearFormEntry() { formEntry.clear(); listModel.clear(); revalidate(); }