I have a window with a short message. How can I guarantee that the title of the message box will not be truncated and will be fully visible?
Here are some tips for calculating line width in a graphical context:
http://www.ubeedoo.com/home?user=JavierArroyo&channel=TechTips-Java&buzzid=7699520895746755172
Hope this helps.