/**
  * Returns a default name for the column using spreadsheet conventions: A, B, C, ... Z, AA, AB,
  * etc. If <code>column</code> cannot be found, returns an empty string.
  *
  * @param columnIndex the column being queried
  * @return a string containing the default name of <code>column</code>
  */
 public String getColumnName(final int columnIndex) {
   if (columnIndex == 0) {
     return SettingsMessages.getInstance().getString("ShowPasswordsDialog.URL");
   } else if (columnIndex == 1) {
     return SettingsMessages.getInstance().getString("ShowPasswordsDialog.Username");
   } else if (columnIndex == 2) {
     return SettingsMessages.getInstance().getString("ShowPasswordsDialog.Password");
   }
   return super.getColumnName(columnIndex);
 }
 /** Defines an <code>Action</code> object with a default description string and default icon. */
 private RemovePasswordsAction() {
   putValue(Action.SMALL_ICON, IconLoader.getInstance().getRemoveIcon());
   putValue(
       Action.SHORT_DESCRIPTION,
       SettingsMessages.getInstance().getString("ShowPasswordsDialog.RemovePassword"));
   setEnabled(false);
 }
  public void init() {
    setTitle(SettingsMessages.getInstance().getString("ShowPasswordsDialog.Title"));

    removeAction = new RemovePasswordsAction();

    tableModel = new PasswordTableModel();
    passwordTable = new JTable(tableModel);
    passwordTable.getSelectionModel().addListSelectionListener(removeAction);

    super.init();
  }
 /** Defines an <code>Action</code> object with a default description string and default icon. */
 private ShowPasswordsAction() {
   putValue(
       Action.NAME,
       SettingsMessages.getInstance().getString("ShowPasswordsDialog.ShowPasswords"));
 }