Measure the length of the area where you intend to use staples and record it. Obtain gimp or other trim to lay over the line of staples. Add at least 1 inch to each length of trim for the project to provide an allowance for a small hem at the end of the trim. Bring along a scrap of the fabric to match the trim or gimp. Most fabric stores carry upholstery fabric, tools and trim.
Place the staples in a straight line along the edges of the object you are upholstering, staying within a margin that your trim can cover.
Heat the hot glue gun. When the glue melts, apply the gimp or trim along the area where you stapled. Start in the most obscure corner of the piece you are upholstering. Apply the glue in a line approximately 3 inches at a time and lay the trim over the glue as you go. Press the gimp firmly to secure it to the furniture. If the furniture you are upholstering has corners, apply extra glue at the corner and work the gimp into the corner as smoothly as you can.
When you get close to the end, lay the trim on the last part of the area you are trimming to measure how much you need to finish the project, allowing a 3/8-inch hem. Thread the needle and sew the end of the trim down. Continue to use the hot glue gun to secure the gimp or trim, until you reach the end, adding a little extra glue to the end to reduce the chance of the end corner lifting.