public void paint ()
    {
      int i, j;
      dl_atom dla = null;
      dl_bond dlb = null;
      Vector dlist = new Vector ();
      if (showForces)
	computeForces ();
      for (i = 0; i < atomList.size (); i++)
	{
	  dla = new dl_atom ((atom) atomList.elementAt(i), v);
	  dlist.addElement (dla);
	}
      for (i = 0; i < atomList.size (); i++)
	{
	  atom a1 = (atom) atomList.elementAt (i);
	  for (j = 0; j < a1.bonds.size (); j++)
	    {
	      bond b = (bond) a1.bonds.elementAt(j);
	      atom a2 = b.otherAtom(a1);
	      if (a1.x[0] < a2.x[0])
		{
		  dlb = new dl_bond (b, v);
		  dlist.addElement (dlb);
		}
	    }
	  if (showForces)
	    {
	      dlforce dlf = new dlforce (a1.x, a1.f, v);
	      dlf.setForceMultiplier (forceMultiplier);
	      dlist.addElement (dlf);
	    }
	}
      if (dla != null)
	dla.paint (dlist, mypanel.getGraphics ());
      else if (dlb != null)
	dlb.paint (dlist, mypanel.getGraphics ());
    }