문제

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.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top