예제 #1
0
 public void removeUser(String username_) {
   Enumeration e = _users.elements();
   while (e.hasMoreElements()) {
     User u = (User) e.nextElement();
     if (u.account.equals(username_)) {
       _users.remove(u);
       break;
     }
   }
 }
예제 #2
0
 public Object getValueAt(int row_, int column_) {
   // later....
   User user = (User) _users.elementAt(row_);
   switch (column_) {
     case 0:
       return user.account;
     case 1:
       return user.fullname;
     default:
       return "Invalid";
   }
 }
예제 #3
0
 public int getRowCount() {
   return _users.size();
 }
예제 #4
0
 public void addUser(User user_) {
   _users.add(user_);
 }