Melted wax (Javanese: malam) is applied to cloth before being dipped in dye. It is common for people to use a mixture of beeswax and paraffin wax. The beeswax will hold to the fabric and the paraffin wax will allow cracking, which is a characteristic of batik. Wherever the wax has seeped through the fabric, the dye will not penetrate. Sometimes several colours are used, with a series of dyeing, drying and waxing steps.
Thin wax lines are made with a canting, a wooden handled tool with a tiny metal cup with a tiny spout, out of which the wax seeps. After the last dyeing, the fabric is hung up to dry. Then it is dipped in a solvent to dissolve the wax, or ironed between paper towels or newspapers to absorb the wax and reveal the deep rich colors and the fine crinkle lines that give batik its character. This traditional method of batik making is called batik tulis. (Wikipedia)