JTable Auto Resize Mode - not working as I expect
Am I doing this wrong, or am I expecting something different from what it actually does?
I assumed that, from the API description, that if I set AUTO_RESIZE_ALL_COLUMNS, that each column would be resized to take up only the width that the data required. Instead, what I am seeing is that every column takes up exactly the same size. If my assumption is wrong, is there a way to get the columns to size themselves by the content?
table = new JTable(model);
table.setAutoResizeMode(JTable.AUTO_RESIZE_ALL_COL UMNS);
http://pahiker.com/images/ServiceWindow.tiff