TableColumnExt extends TableColumn implements UIDependent { @Override public boolean getResizable() { return super.getResizable() && (getMinWidth() < getMaxWidth()); } TableColumnExt();  TableColumnExt(int modelIndex);  TableColumnExt(int modelIndex, int width);  TableColumnExt(int modelIndex, int width,
                          TableCellRenderer cellRenderer, TableCellEditor cellEditor);  TableColumnExt(TableColumnExt columnExt); void setHighlighters(Highlighter... highlighters); Highlighter[] getHighlighters(); void addHighlighter(Highlighter highlighter); void removeHighlighter(Highlighter highlighter); @Override boolean getResizable(); void setEditable(boolean editable); boolean isEditable(); void setPrototypeValue(Object value); Object getPrototypeValue(); void setComparator(Comparator<?> comparator); Comparator<?> getComparator(); void setSortable(boolean sortable); boolean isSortable(); void setToolTipText(String toolTipText); String getToolTipText(); void setTitle(String title); String getTitle(); void setVisible(boolean visible); boolean isVisible(); void setHideable(boolean hideable); boolean isHideable(); void putClientProperty(Object key, Object value); Object getClientProperty(Object key); @Override void updateUI();  }
@Test public void testResizable() { assertTrue("min < max", columnExt.getMinWidth() < columnExt.getMaxWidth()); assertTrue("resizable default", columnExt.getResizable()); columnExt.setMinWidth(columnExt.getMaxWidth()); assertFalse("must not be resizable with equal min-max", columnExt.getResizable()); TableColumnExt copy = new TableColumnExt(columnExt); assertEquals("min-max of clone", copy.getMinWidth(), copy.getMaxWidth()); assertFalse("must not be resizable with equal min-max", copy.getResizable()); copy.setMinWidth(0); assertTrue("min < max", copy.getMinWidth() < copy.getMaxWidth()); assertTrue("cloned base resizable", copy.getResizable()); }