简体   繁体   English

在Java swing应用程序中打印标签

[英]Printing Labels in Java swing application

I have to develop an java swing application that will take customer details (name, address, contact number) and print each set on information to sticky labels. 我必须开发一个java swing应用程序,它将获取客户详细信息(名称,地址,联系号码)并将每组信息打印到粘性标签。 There are 10 labels per A4 sheet in a 5 x 2 matrix (each cell size 96 x 50.8 mm). 每张A4纸有5个标签,每个A4纸5 x 2矩阵(每个单元尺寸96 x 50.8 mm)。

Does anyone know if there are other java API's out there designed specificly for printing? 有谁知道是否还有其他专门为打印设计的java API?

Like said, java.awt.print is the package to look up. 如上所述, java.awt.print是要查找的包。 There are official tutorials avialable here: http://docs.oracle.com/javase/tutorial/2d/printing/ 这里有官方教程: http//docs.oracle.com/javase/tutorial/2d/printing/

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM