Create a custom table in Knime using Java code

Hi All,
I have to create a custom table in Knime using java.
class DialogComponentGrid extends DialogComponent {

public DialogComponentGrid(final SettingsModel model) {
	super(model);

}

@Override
public JPanel getComponentPanel() {
	JPanel panel = new JPanel();

	String[][] rec = { { "gl_acct_lcl_key1", "IN", "10" }, { "txn_ccy", "EQUAL", "USA" },
			{ "base_ccy_amt", "GE", "100.000" } };
	String[] header = { "CDE", "Operator", "Value" };
	JTable table = new JTable(rec, header);

	JComboBox comboBox = new JComboBox();
	comboBox.addItem("IN");
	comboBox.addItem("EQUAL");
	comboBox.addItem("GE");
	comboBox.addItem("GT");
	comboBox.addItem("LT");
	comboBox.addItem("None of the above");
	TableColumn sportColumn = table.getColumnModel().getColumn(1);
	sportColumn.setCellEditor(new DefaultCellEditor(comboBox));

	panel.add(new JScrollPane(table));

	return panel;
}

@Override
protected void updateComponent() {
	// TODO Auto-generated method stub

}

@Override
protected void validateSettingsBeforeSave() throws InvalidSettingsException {
	// TODO Auto-generated method stub

}

@Override
protected void checkConfigurabilityBeforeLoad(PortObjectSpec[] specs) throws NotConfigurableException {
	// TODO Auto-generated method stub

}

@Override
protected void setEnabledComponents(boolean enabled) {
	// TODO Auto-generated method stub

}

@Override
public void setToolTipText(String text) {
	// TODO Auto-generated method stub

}

but in above code diaComp.getComponentPanel().setVisible(false); is not working.