01: /*
02: ** $Id: QueryTable.java,v 1.3 2000/10/21 16:24:03 mrw Exp $
03: **
04: ** JTable view for viewing the results of a query.
05: **
06: ** Mike Wilson, July 2000, mrw@whisperingwind.co.uk
07: **
08: ** (C) Copyright 2000, Mike Wilson, Reading, Berkshire, UK
09: **
10: ** This program is free software; you can redistribute it and/or modify
11: ** it under the terms of the GNU General Public License as published by
12: ** the Free Software Foundation; either version 2 of the License, or
13: ** (at your option) any later version.
14: **
15: ** This program is distributed in the hope that it will be useful,
16: ** but WITHOUT ANY WARRANTY; without even the implied warranty of
17: ** MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18: ** GNU General Public License for more details.
19: **
20: ** You should have received a copy of the GNU Library General
21: ** Public License along with this library; if not, write to the
22: ** Free Software Foundation, Inc., 59 Temple Place - Suite 330,
23: ** Boston, MA 02111-1307 USA.
24: */
25:
26: package uk.co.whisperingwind.vienna;
27:
28: import javax.swing.JTable;
29: import javax.swing.table.TableModel;
30: import javax.swing.event.TableModelEvent;
31:
32: class QueryTable extends JTable {
33: public QueryTable(TableModel model) {
34: super (model);
35: }
36:
37: public void refresh() {
38: TableModelEvent event = new TableModelEvent(getModel(),
39: TableModelEvent.HEADER_ROW);
40: tableChanged(event);
41: }
42: }
|