dlgPanel.setLayout(logonBorderLayout);
buttonBar.setLayout(buttonBarFlowLayout);
buttonBarGrid.setLayout(buttonBarGridLayout);
buttonBarGridLayout.setColumns(2);
buttonBarGridLayout.setHgap(6);
okButton.setLabel(res.getString("LOG_ON"));
okButton.addActionListener(new OkButtonListener(this));
okButton.addKeyListener(this);
buttonBarGrid.add(okButton );
cancelButton.setLabel(res.getString("CANCEL"));
cancelButton.addActionListener(new CancelButtonListener(this));
cancelButton.addKeyListener(this);
buttonBarGrid.add(cancelButton);
buttonBar.add(buttonBarGrid);
dlgPanel.add(buttonBar,BorderLayout.SOUTH);
client.setLayout(clientGridBagLayout);
statusLabel.setAlignment(Label.CENTER);
statusLabel.setText(res.getString("WELCOME_TO_THE"));
client.add(statusLabel,new GridBagConstraints2(0, 0, 2, 1, 0.0, 0.0
,GridBagConstraints.CENTER, GridBagConstraints.HORIZONTAL, new Insets(4, 4, 4, 4), 0, 0));
nameLabel.setText(res.getString("YOUR_NAME"));
client.add(nameLabel,new GridBagConstraints2(0, 1, 1, 1, 0.0, 0.0
,GridBagConstraints.WEST, GridBagConstraints.NONE, new Insets(4, 20, 4, 0), 0, 0));
name.setText(login);
name.addKeyListener(this);
name.selectAll();
client.add(name,new GridBagConstraints2(1, 1, 1, 1, 1.0, 0.0
,GridBagConstraints.WEST, GridBagConstraints.HORIZONTAL, new Insets(4, 0, 4, 20), 20, 0));
passwordLabel.setText(res.getString("PASSWORD"));
client.add(passwordLabel,new GridBagConstraints2(0, 2, 1, 1, 0.0, 0.0
,GridBagConstraints.WEST, GridBagConstraints.NONE, new Insets(4, 20, 4, 0), 0, 0));
password.setText(pass);
password.addKeyListener(this);
password.selectAll();
password.setEchoChar('*"); //NORES
client.add(password,new GridBagConstraints2(1, 2, 1, 1, 1.0, 0.0
,GridBagConstraints.WEST, GridBagConstraints.HORIZONTAL, new Insets(4, 0, 4, 20), 20, 0));
dlgPanel.add(client,BorderLayout.CENTER);