I have one question regarding about retrieving Barcode data.

Below screen shot is the my java application.
[![enter image description here](https://i.stack.imgur.com/UMkxz.jpg)](https://i.stack.imgur.com/UMkxz.jpg)

For example, the barcode data have "12345-6789".
I put cursor on "Mo No." and scan barcode, System will read barcode and display on "Mo No." filled as "12345-6789"

But what I want is "12345" in Mo No. and "6789" in Container No. Once I scanned barcode. 
How should I implement the code.
Please advice.Thanks.