They decay is first removed from the tooth. The tooth is then filled using special adhesives and incremental buildup of the composite resin filling. The filling is then shaped, polished. Sometimes we characterise a filling using stains to make the filling look natural.
Please discuss your condition with the dentist for the best available treatment and options.