You can draw them on the object's graphics context using Graphics.drawString(), OR you can use the component's label (if it has one) to display the desired number. There may be other ways, but those...