I am creating an application that needs to print out labels for file folders (like in a doctors office). The label need to have a barcode (may be optional), text (normal and rotated) and colored blocks. Similar to the image below.
The problem I am having is that I have no idea where to start to make this happen. I read some tutorials on the print services and was getting buried in technical details of selecting the printer. After selecting the printer, I need to create the print job. Now, this is where I am stuck. I have no idea how I am to make this "object" to be printed. Am I somehow supposed to make a BufferedImage and send that to the print job or do something else? I have never had to create an image or a print job in Java before and am stuck on this point. If creating an image is the best way to go, can anybody point me to a decent tutorial on how to create images?
I realize this is a bit open ended, but I need help getting pointed in the right direction. 3rd party software (that requires a license or paying for) is not an option. I did see the Barbeque code from apache to create barcodes, I saw that that can be sent to a PNG, GIF, etc. But, even if I could do that, it would not be part of the rest of the image/label that has text and other colored areas.
Any help getting pointed in the right direction would be greatly appreciated, I am on a bit of a time crunch.