001    /*
002     * JUserTable.java
003     *
004     * Created on 12. Juni 2001, 17:30
005     */
006    
007    package users.swing;
008    
009    import javax.swing.table.*;
010    import javax.swing.*;
011    
012    import java.util.Comparator;
013    
014    import users.*;
015    
016    import util.swing.*;
017    
018    /**
019     * A {@link JTable} for displaying and editing the contents of a {@link UserManager}.
020     *
021     * @author Thomas Medack
022     * @version 3.0 12/06/2001
023     * @since v3.0
024     */
025    public class JUserTable extends util.swing.JAbstractTable {
026    
027        /**
028         * Create a new JUserTable.
029         *
030         * @param u the UserManager to be displayed.
031         * @param cmp a Comparator defining the sort order. If <code>null</code>, the Users are ordered in
032         * their natural order.
033         * @param ted a TableEntryDescriptor that can split CatalogItems into a table's cells.
034         */
035        public JUserTable(UserManager u, Comparator cmp, TableEntryDescriptor ted) {
036    
037            super(new UserTableModel(u, cmp, ted));
038        }
039    }