//Get all Swing/AWT primitive components in the views and add them to the panel.
ArrayList<Component> components = new ArrayList<>();
for (int i = 0; i < panel.getComponentCount(); i++) {
//Get all Swing/AWT primitive components in the views and add them to the panel.
ArrayList<Component> components = new ArrayList<>();
for (int i = 0; i < panel.getComponentCount(); i++) {