Added a NetBeans project for the Okular example. Also extended and refactored the example a bit.