To paint hardwood floors, sweep off any dust and vacuum spilled crumbs and dirt. Then, fill in any cracks with wood putty and gently sand the floor until smooth. Afterward, apply a coat of wood stain and wait for it to dry before applying a second coat.