We are having trouble getting the bar code reduced in width and height when placed in a JPanel.
We are basing our code on your example file but the setSize() method doesn't seem to have any effect on the barcode object.
Our code snippet is held below. When and if we can get this working we will make a donation.
Many thanks
Rob Rutter
R&W
barcode = BarcodeFactory.createCode128B(LabelDetailsClass.sCageLabelSeq);
barcode.setSize(50,100);
panel.add(barcode);