Is it possible to set width of a JTable column within its cell renderer? I have tried following code but it seems to do nothing.
//in main class where table defined;
table.getColumnModel().getColumn(0).setCellRenderer(renderer);
//in renderer class;
setSize(10, getPreferredSize().height);
1) its possible to set
JTable Column'swidth this(very simple) way2) I suggesting don’t do that inside
TableRenderer,because I don’t see reason for repainting that every time when is Renderer fired
and from your code that you posted here not really clear for me what / how / where / why