submit = new JButton("Update");
submit.addActionListener(new ActionListener() {
public void actionPerformed(ActionEvent event) {
try {
GmailSettingsClient.settings = new GmailSettingsService(GmailSettingsClient.APP_TITLE,
domain.getText(), username.getText(), new String (password.getPassword()));
GmailSettingsClient.users.refresh(domain.getText(), username.getText(),
new String (password.getPassword()));
} catch (ServiceException e) {
JOptionPane.showMessageDialog(null, e, GmailSettingsClient.APP_TITLE,