I am developing a simple application for printing stickers and I need to print barcodes. For some reasons I need to generate barcodes as text not as images. It is all good enough with barcode creation and printing but scanner do not recognize these barcodes.
I am using JLabel component and system barcode font for it (IDAutomationHC39M, C39HrP24DhTt)
for barcode creation. Scanner tried to recognize it (it automatically switched to constant laser mode) but there is no result.
Barcode text example 999-999999-9/9
So, maybe I missed something or did something wrong? Full explanation or link will be appreciated!
UPD code example
barcodeLabel = new JLabel("*"+hwb.getNumber()+"-1/1*");
Font f = new Font("IDAutomationHC39M",java.awt.Font.PLAIN,8);
barcodeLabel.setFont(f);
Please ignore hardcoded "1/1" - it's for test only.
UPD printed barcode example

SOME UPDATE
It looks strange but seems that problem is in the scanner - I have tried with a laser scanner, the scanner application on my Android phone and got no result. I called it strange because the scanner successfully worked with code39 barcodes before. Now I have tried to scan with zxing-based scanner in my own Android app and it recognized successfully. I will make some experiments with different scanners during next days.
FINALLY
I have tried to scan these barcodes on two other scanners (Metrologic and Symbol) and they show perfect results - all barcodes recognized successfully. I think all problems was in my cheap scanner - it works great with barcodes printed on laser printer but if print quality is not ideal - it useless. I'm very sorry that I have started topic because of this stupid device and my own inattention. Anyway thanks for all commentators, topic may be closed.