/** * Constructs a LibraryPanel. * * @param libraries a list of libraries (represented by Library objects). */ public LibraryPanel(final List libraries) { setLayout(new BorderLayout()); this.model = new LibraryTableModel(libraries); this.table = new JTable(this.model); add(new JScrollPane(this.table)); }
/** * Constructs a LibraryPanel. * * @param libraries a list of libraries (represented by Library objects). */ public LibraryPanel(final List libraries) { setLayout(new BorderLayout()); this.model = new LibraryTableModel(libraries); this.table = new JTable(this.model); add(new JScrollPane(this.table)); }
/** * Constructs a LibraryPanel. * * @param libraries a list of libraries (represented by Library objects). */ public LibraryPanel(final List libraries) { setLayout(new BorderLayout()); this.model = new LibraryTableModel(libraries); this.table = new JTable(this.model); add(new JScrollPane(this.table)); }