Application only works when executed from netbeans

Printable View