I am working on a personal project in order to learn Java. Basically its a swing application to print out product labels. I am planning to have 12 labels per sheet.
---------------------------------
| | |
---------------------------------
| | |
---------------------------------
| | |
---------------------------------
| | |
---------------------------------
I have designed the menu bars and and the tool bar. I was wondering what swing component I should use for the labels? Each label will hold the same product information and will hold a serial that will increment by 1.
It is display only, but I will have a wizard window where the user can make font or font color changes that will be reflected on all the labels.
Consider JTable
, which can render an adjustable, rectangular grid. Your wizard / editor can update a single cell renderer, which knows the row and column number, and the class provides printing support.