Hi, I am trying to build a quick and dirty kind of JTable UI, which will allow you to define relations between columns of 2 tables. So the table has 4 columns.1st one being names of the source tables in a ComboBox,2nd one should have the columns of the table selected in the 1st col (in a combobox).Same goes for the 3rd and 4th columns which will hold the table names and col names for the target tables.
I am having problems updating the 2nd col based on the selection done in the 1st. Any ideas from anybody who has done something similar??
The strength of the Wolf is the pack & the strength of the pack is the wolf....Rudyard Kipling
Hi, I have extended the AbstractCellEditor to have my own CellEditor. In the public Component getTableCellEditorComponent(JTable table,Object value,boolean isSelected,int row,int col) Every time the col tht is clicked is the one which represents the table-columns, I get the table name from the adjoining column and populate the combo with all the columns for tht table.
I am pasting the code here, Even numbered cols are the ones for Table-Columns and odd numbered are the Table Names. Hope it makes things clearer.