void (final JPanel panel) { for(int i=0; i<panel.getComponentCount(); i++) { RadComponent button = new RadAtomicComponent(null, JButton.class, Integer.toString(i)); myManager.addSnapshotComponent(panel, (JComponent) panel.getComponent(i), myContainer, button); } }