You can try the Java Twain from http://www.gnome.sk
Nowadays, this product is going to be replaced with the Morena - Image Acquisition Framework for Java(tm) Platform .
Both in Java Twain and in Morena there is a tutorial which will help you much to try out your camera or scanner from java application whithin few minutes.
As for activating an image scanner from the program using a button built into the program, get inspired by the code of the example WebStartUpload.java from the JavaTwain (Morena) package.
Erika
> I am writing an application and need to activate an
> image scanner from the program using a button built
> into the program.Could someone please let me know how
> to achieve this.Thanks
Hi,
You can try a package named: JTwain, which is available at http://asprise.com/product/jtwain.
JTwain supports all kinds of digital cameras and scanners. You can use Java to access, contorl digital cameras and scanners, and of course, to acquire images with flexible settings.
The developers' guide is available @ http://asprise.com/product/jtwain/devGuide.php
In the simplest case, one line of Java code can solve your problem.
Good luck!