Hello,
the default settings can be changed by passing parameters with the calling of JavaViewer.
Example:
Code: Select all
java.exe -cp "your path to VncViewer" VncViewer HOST "host_url" PORT 5900 "Show Controls" No "View only" Yes "JPEG image quality" "JPEG off" "Restricted colors" "Full"
All possible parameters and their values can be found in the source code, VncViewer.java and OptionsFrame.java:
HOST
PORT
Open New Window
ENCPASSWORD
Show Controls
Show Offline Desktop
Defer screen updates
Defer cursor updates
Defer update requests
Encoding
Compression level
JPEG image quality
Cursor shape updates
Use CopyRect
Restricted colors
Mouse buttons 2 and 3
View only
Share desktop
What I don't know:
How do I have to call the JavaViewer in a Browser? I would type
http://host_name:5800
but in this case I get a generated HTML-file with the default-parameters in it. How can I change the default-settings of this HTML-file?