Auto advance input field focus after barcode scan

Try something like this:

propertyChange event

if event.propertyName == "text":
	if chr(13) in event.newValue or chr(10) in event.newValue:
		event.source.parent.getComponent("txt2").requestFocusInWindow()
	

NOTE TO SELF [size=50](and you since you are reading this)[/size]: PASTING text into a text field does NOT fire the propertyChange event.