Community
Participate
Working Groups
TableColumn has only the method pack() to calculate the preffered width of the cell. Unfortunately pack() immediately sets the columns width to the "preffered" value, which is not good if you plan to manage the column size yourself. It would be good if the first part of pack() ( the calculation of the preffered width ) could be extracted into a method of it's own. public int getPreferredWidth() { // first part of old pack method return width; } public void pack() { int width = getPrefferedWidth(); // set column width }
Not for 3.1.
is there a chance to get it in 3.3 or 3.4?
Not at this late stage in Eclipse 3.3.
3.4? ;-)
3.5? ;-) I would like to have this method (getPreferredWidth()) too. My Tablemodel contains preferred sizes for columns, but i want to compare them with the preferred Width of the TableColumn.
This bug hasn't had any activity in quite some time. Maybe the problem got resolved, was a duplicate of something else, or became less pressing for some reason - or maybe it's still relevant but just hasn't been looked at yet. If you have further information on the current state of the bug, please add it. The information can be, for example, that the problem still occurs, that you still want the feature, that more information is needed, or that the bug is (for whatever reason) no longer relevant.