NameDateSize

..14-Dec-201711

JDBCAdapter.javaH A D14-Dec-20178.9 KiB

OldJTable.javaH A D14-Dec-20179.8 KiB

README.txtH A D14-Dec-20171.7 KiB

TableExample.javaH A D14-Dec-20179.9 KiB

TableExample2.javaH A D14-Dec-20174 KiB

TableExample3.javaH A D14-Dec-20176.7 KiB

TableExample4.javaH A D14-Dec-20179.2 KiB

TableMap.javaH A D14-Dec-20173.9 KiB

TableSorter.javaH A D14-Dec-201712.4 KiB

README.txt

1The four examples in this directory show how to use some of the
2features of the JTable component.
3
4TableExample:
5   This application includes a GUI for configuring the
6   database connection and specifying the query.
7TableExample2:
8   The query and database connection are specified at the command
9   line.  The results are displayed in a JTable.
10TableExample3:
11   Is a minimal example showing how to plug a generic sorter into the
12   JTable.
13TableExample4:
14   Uses specialized renderers and editors.
15
16TableExample3 and TableExample4 do not depend on database connectivity
17and can be compiled and run in the normal way.
18
19The most interesting example is probably TableExample, which has a
20TextArea that can be used as an editor for an SQL expression.  Pressing
21the Fetch button sends the expression to the database.  The results are
22displayed in the JTable underneath the text area.
23
24To run TableExample and TableExample2, you need to find a driver for
25your database and set the environment variable JDBCHOME to a directory
26where the driver is installed.  See the following URL for a list of
27JDBC drivers provided by third party vendors:
28
29  http://java.sun.com/products/jdbc/drivers.html
30
31Once you find the driver, you can run one of the database examples by
32specifying a class path that includes the JDBC classes and the example
33classes.
34
35For example:
36
37  java -classpath $(JDBCHOME):TableExample.jar TableExample
38
39These instructions assume that this installation's version of the java
40command is in your path.  If it isn't, then you should either
41specify the complete path to the java command or update your
42PATH environment variable as described in the installation
43instructions for the Java(TM) SE Development Kit.
44
45