Hello,

does anyone know a good way to implement the calculation of the perfectly
matching column width, depending on the columns header text, like you can
do in Swing using the following snippet?

Font font = table.getFont();
FontMetrics fontMetrics = table.getFontMetrics(font);
int width = SwingUtilities.computeStringWidth (fontMetrics, headerText);


Thanks and regards,

DanielP°z÷¥¢—«™¨¥Šx%ŠËT,'^½éh¥êåŠËlq©è¡Ê&†Ûiÿùb²Ûjz(r‰¿™¨¥™©ÿ–+-Šwèþé\uëޖŠ^

Reply via email to