void () { myMainPanel.removeAll(); myPanels = new OneElementComponent[myParameterInfoControllerData.getDescriptors().length]; for (int i = 0; i < myParameterInfoControllerData.getDescriptors().length; i++) { myPanels[i] = new OneElementComponent(); myMainPanel.add(myPanels[i], new GridBagConstraints(0, i, 1, 1, 1, 0, GridBagConstraints.WEST, GridBagConstraints.HORIZONTAL, JBInsets.emptyInsets(), 0, 0)); } }