import javax.swing.*; import javax.swing.table.*; import javax.swing.JScrollPane; import javax.swing.JFrame; import javax.swing.SwingUtilities; import javax.swing.JOptionPane; import javax.swing.event.*; import java.awt.*; import java.awt.event.*; import java.util.*; import java.net.*; import java.lang.reflect.*; public class RuleTable2 { private boolean DEBUG = true; JScrollPane scrollPane; private XKnowledgeBase kb; private RuleTableModel tableModel; private Vector data = new Vector(); public JTable table; private JSplitPane panel; private JComboBox tf = new JComboBox(); private JComboBox conditionBox = new JComboBox(); private JComboBox typeBox = new JComboBox(); private ParameterChoiceTable pct; public RuleTable2(String k) { System.out.println("k:"+k); //create the table model tableModel = new RuleTableModel(); //create a new JTable. if(k.equals("nullString")){ //RuleBodyGet rbgg=new RuleBodyGet(); String [][] rbg=new String [0][0]; //int sze=rbgg.noRows; //rbg=rbgg.bodies; //int i=0; String [] cnames={"NOT", "Condition Type", "Condition"}; table=new JTable(rbg, cnames); table.setPreferredScrollableViewportSize(new Dimension(50,70)); table.setRowHeight(32); } else{ RuleBodyGet2 rbgg=new RuleBodyGet2(k); String [][] rbg=new String [rbgg.noRows][3]; rbg=rbgg.bodies; int x=0; //System.out.println("noRows:"+rbgg.noRows); while(x