authLayout.setHGap ( 4 );
authLayout.setVGap ( 4 );
authPanel.setLayout ( authLayout );
final WebLabel hostLabel = new WebLabel ();
hostLabel.setLanguage ( "weblaf.proxy.auth.host" );
hostLabel.setHorizontalAlignment ( WebLabel.RIGHT );
hostLabel.setEnabled ( false );
authPanel.add ( hostLabel, "0,0" );
final WebTextField hostValue = new WebTextField ( proxySettings.getProxyHost (), 10 );
hostValue.setEnabled ( false );
hostValue.putClientProperty ( GroupPanel.FILL_CELL, true );
final WebLabel portLabel = new WebLabel ();
portLabel.setLanguage ( "weblaf.proxy.auth.port" );
portLabel.setHorizontalAlignment ( WebLabel.RIGHT );
portLabel.setEnabled ( false );
final WebTextField portValue = new WebTextField ( proxySettings.getProxyPort () );
portValue.setEnabled ( false );
authPanel.add ( new GroupPanel ( 2, hostValue, portLabel, portValue ), "1,0" );
authPanel.add ( new WebSeparator ( WebSeparator.HORIZONTAL ), "0,1,1,1" );
final WebLabel loginLabel = new WebLabel ();
loginLabel.setLanguage ( "weblaf.proxy.auth.login" );
loginLabel.setHorizontalAlignment ( WebLabel.RIGHT );
authPanel.add ( loginLabel, "0,2" );
loginField = new WebTextField ( 12 );
loginField.addAncestorListener ( new AncestorAdapter ()
{
@Override
public void ancestorAdded ( final AncestorEvent event )
{
loginField.requestFocusInWindow ();
}
} );
authPanel.add ( loginField, "1,2" );
final WebLabel passLabel = new WebLabel ();
passLabel.setLanguage ( "weblaf.proxy.auth.pass" );
passLabel.setHorizontalAlignment ( WebLabel.RIGHT );
authPanel.add ( passLabel, "0,3" );
passwordField = new WebPasswordField ( 12 );
authPanel.add ( passwordField, "1,3" );