Agreed. This cannot be explicitly set in the Settings dialog in the Java Sample application.
Note: It is possible to set the host and port using JVM parameters (-DhttpProxy.Host=<host name or ip> -DhttpProxy.Port=<port> -Dhttp.proxyUser=<UserName> -Dhttp.proxyPassword=<somePassword>
In code the ArcGIS Runtime SDK for Java provides this API:
ProxySetup proxySetup = new ProxySetup();
String proxyHost = "myproxy.domain.com";
int proxyPort = 8080 ;
UserCredentials proxyCredentials = new UserCredentials();
proxyCredentials.setUserAccount("userName", "password");
try {
ProxySetup.setupProxy(proxyHost, proxyPort, proxyCredentials);
}
catch (EsriSecurityException e) {
// TODO Auto-generated catch block
e.printStackTrace();
}