Servus,
weiss jemand wie man die Pixelbreite eines Strings herausbekommt?
weiss jemand wie man die Pixelbreite eines Strings herausbekommt?
// Set the font into the gc
gc.setFont(font);
// Calcalute the width (nad height) of the string
Point pt = gc.stringExtent(STRING);