Barcode readers are generally accessed through serial I/O, e.g. using the javax.comm package (some links are
here). The manual of the reader should tell you what to send and what to receive (if it doesn't anyway come with example code).
If you're talking about filling in a textfield of an HTML form in the browser, then you'd need to have an
applet running on that page which can access the barcode reader.