tightvnc java viewer, cancel connection dialog popup

when running tightvnc java viewer, add parameter “-password=mypassword myhost:9401”

change line 181 in Viewer.java,

from

final boolean allowInteractive = allowAppletInteractiveConnections || ! isApplet;

to

final boolean allowInteractive = false;