.getString("label.proxy_password_required");
Preferences.openPreferences(Preferences.CONNECTIONS_TAB,
message);
- Preferences.getInstance().proxyAuthPasswordCheckHighlight(true);
+ Preferences.getInstance()
+ .proxyAuthPasswordCheckHighlight(true, true);
}
else
{
public void proxyAuthPasswordCheckHighlight(boolean enabled)
{
+ proxyAuthPasswordCheckHighlight(enabled, false);
+ }
+
+ public void proxyAuthPasswordCheckHighlight(boolean enabled,
+ boolean grabFocus)
+ {
if (enabled && proxyType.isSelected(customProxy.getModel())
&& proxyAuth.isSelected()
&& !proxyAuthUsernameTB.getText().isEmpty()
&& proxyAuthPasswordPB.getDocument().getLength() == 0)
{
-
- proxyAuthPasswordPB.grabFocus();
+ if (grabFocus)
+ proxyAuthPasswordPB.grabFocus();
proxyAuthPasswordPB.setBackground(Color.PINK);
}
else