Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

ensure title is fully visible on JOptionPane

I have a message box with a short message. How can I ensure that title of a message box is not truncated and is fully visible?

like image 813
michael nesterenko Avatar asked Nov 05 '22 08:11

michael nesterenko


1 Answers

Here are some tips to calculate the width of a string within a graphics context:

http://www.ubeedoo.com/home?user=JavierArroyo&channel=TechTips-Java&buzzid=7699520895746755172

Hope it helps.

like image 145
Javier A. Avatar answered Nov 09 '22 07:11

Javier A.