// Fig. 18.24: ParmGet.java // This program displays the contents of the Authors table // in the Books database. import java.sql.*; import javax.swing.*; import java.awt.*; import java.awt.event.*; import java.util.*; import java.io.*; public class RuleBodyGet2 extends JFrame { public String [][] bodies; private Connection connection; private JTable table; public int noRows; public RuleBodyGet2(String s) { // The URL specifying the Books database to which // this program connects using JDBC to connect to a // Microsoft ODBC database. RuleNameGet rnng=new RuleNameGet(); RuleBodiesGet rbbg=new RuleBodiesGet(s); String [][] rngg=rnng.rng; String [][] rbgg=rbbg.bodies; int i=0; int i2=0; String ruleno=""; while(i