Langdrill is a helper for testing your foreign language vocabulary. It uses GTK+ toolkit and VDK (a C++ wrapper arround GTK+). It is similar with JavaDrill.
Support for displaying Japanese characters is included. For this, Japanese fonts must be installed on your system, for instance the xfonts-intl-japanese package.