Java Barcode reading, creating and printing


DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

Results 1 to 5 of 5

Thread: Java Barcode reading, creating and printing

  1. #1
    Join Date
    Feb 2004
    Posts
    3

    Java Barcode reading, creating and printing

    I'm looking for information or ideas on implementing barcode functionality for my pos/inventory system. anyone know of where I can find good tutorials and studies of how this could be best accomplished?
    There is no such thing as a problem, unless the servers are on fire.
    Sometimes great opportunity comes brilliantly disguised as bad news.

  2. #2
    Join Date
    Feb 2004
    Posts
    808
    seeing as i work as a programmer of such systems, i have a couple of ideas..

    there are 2 types of barcode scanner in the world:

    rs232 and keyboard wedge

    rs232 are serial port scanners. any barcode they scan appears on the serial port as a sequence of numbers.
    keyboard wedge are like intelligent keyboards; you connect the scanner to a ps2 keyboard port, scan the barcode and the scanner literally "presses" the number buttons 5, 0, 3, 1, 2 ... finally "pressing" return at the end, just as though the user typed the barcode and presssed return

    KWedge are the easiest to use; any JTextField can accept their input

    create/print is a simple matter too. use a barcode font, and print out the number of the barcode, with the font set to the barcode font. one such example is IDAutomation39, a free numerical-only barcode font. IDA will sell you a version of the font that does alphamerical characters if you need them, the only thing to remember is to put a * at either end of the code, so barcode 541346151603 becomes *541346151603*.. oh, and codes less than 4 digits long, dont scan
    The 6th edict:
    "A thing of reference thing can hold either a null thing or a thing to any thing whose thing is assignment compatible with the thing of the thing" - ArchAngel, www.dictionary.com et al.
    JAR tutorial GridBag tutorial Inherited Shapes Inheritance? String.split(); FTP?

  3. #3
    Join Date
    Feb 2004
    Posts
    3
    Well thank you for that information input. If you dont mind me asking during that project did you run into any issues or have things that you would look out for?
    There is no such thing as a problem, unless the servers are on fire.
    Sometimes great opportunity comes brilliantly disguised as bad news.

  4. #4
    Join Date
    Feb 2004
    Posts
    808
    no, but then.. i program the epos using vb

    there really arent any major traps, cos like i say, theres nothing specifically epos... everything you do can be written and tested on a normal pc..
    The 6th edict:
    "A thing of reference thing can hold either a null thing or a thing to any thing whose thing is assignment compatible with the thing of the thing" - ArchAngel, www.dictionary.com et al.
    JAR tutorial GridBag tutorial Inherited Shapes Inheritance? String.split(); FTP?

  5. #5
    Join Date
    Feb 2004
    Posts
    3
    If you are looking to create on-screen or print barcodes, an Open Source API exists on SourceForge. The project is called Barbecue and is located directly at http://sourceforge.net/projects/barbecue/

    However, I have not yet tried it...

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center
 
 
FAQ
Latest Articles
Java
.NET
XML
Database
Enterprise
Questions? Contact us.
C++
Web Development
Wireless
Latest Tips
Open Source


   Development Centers

   -- Android Development Center
   -- Cloud Development Project Center
   -- HTML5 Development Center
   -- Windows Mobile Development Center