Menu

#25 reducing display size of bar code in JPanel

open
Swing/AWT (4)
5
2008-01-17
2008-01-17
No

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);

Discussion


Log in to post a comment.