code: public void setStructure1(Structure structure){
  		this.structure1 = structure;
  		if ( structure != null) {
  			setAtoms(structure1,panel1);
  			label1.setText(structure.getPDBCode());
  			label1.repaint();
  		}
  
  
  	}
docs: has been called with setting the atoms directly