public void showTable(Table table) {
        int index = tableExists(table);

        if (index == -1) {
            tables.add(table);
            this.addTab(table.getFullName(), new EditTableData(table));
            index = tables.size() - 1;
        }

        this.getModel().setSelectedIndex(index);
    }