以下は私のバーコードを印刷します(BBQを使用)
try{
Barcode b = BarcodeFactory.createCode128(info);
PrinterJob job = PrinterJob.getPrinterJob();
job.setPrintable(b);
if (job.printDialog()){}
job.print();
}
}catch (Exception e){
e.printStackTrace();
}
印刷領域の位置を設定したい..異なる番号で次を試しましたが、出力は同じです。
Point p = new Point(10, 10);
b.setLocation(p);
私は何が欠けていますか?