• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

BarCodes

 
Philip Pross
Ranch Hand
Posts: 76
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have been doing some research to do with reading barcodes, but each time I come to the same conclusion, where a user enters the barcode number and the program creates a labeled barcode.
My question therefor is ... can an applet read barcodes? Basically what I would like to do is use a scanner gun to read the barcode for invertory.
Phil
 
Nathan Pruett
Bartender
Posts: 4121
IntelliJ IDE Java Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Well, there would have to be some way for Java to interface with the barcode reader... this would require some JNI... ( Java Native Interface - write a C/C++ program to do the machine dependent stuff to read the port the scanner is plugged into, and make Java able to interface with it. ) unless the scanner had Java classes written for it already... ( which is rather unlikely... ) Also, an applet may not be the best choice for this... applets usually run on webpages, and are not supposed to interact with the users actual computer except through the browser for security reasons. Interacting with a barcode scanner would most probably be against security restrictions... so you will either need to design your program as an application, or read up on signed applets if it simply must run as an applet...

HTH,
-Nate
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic