MorenaCapabilities library example

MorenaCapabilities library allows these new features:
  1. Pops up pure Java user interface windows to allow users to set the required scanning capabilities (options in Sane).
  2. It remembers the last used interface (Twain/Sane), last used hardware, last used capabilities and their values.

Morena Capabilities Example contains three buttons

International support

MorenaCapabilities library is designed to pop up it's User Interface with the preferable language. To introduce your language, follow this scenario:
  1. Duplicate messages.properties file located in the resources directory of the morena.jar file.
  2. Rename the new duplicated file according to your locale's language and country. For more information see documentation to the ResourceBundle.getBundle method. E.g in our country - Slovakia - the name of the file have to be messages_sk_SK.properties. The language and country codes are available e.g. here.
  3. Translate messages to your language. Use Latin-1 or Unicode-encoded characters only. You can use Java's native2ascii utility to convert your native-encoded characters to the required encoding. See our messages_sk_SK.properties to check, how can such a file look like.
  4. You need to include the new properties file to the classpath of your project. You have more possibilities, how to do it.
  5. Set up your required locale's language and country as a -D system properties of the VM arguments, when you run your project. E.g. to use locales in Slovakia, use -Duser.language=sk -Duser.country=SK.

Technical notes





Please, notice, that this library is in beta version and can be changed. We appreciate your experiences with using this library.