I want to create and display a JDialog whose contents and title are specified at runtime. I can't rely on hard-coding the size through , because the contents and title are determined at runtime. The dialog is smart enough to size itself for the component being placed on it, but the title gets truncated. How to force it to accommodate the title?
Here is a simplified version, which demonstrates the problem I'm having while shortening the code sample to a few lines:
Thanks.
Here is a simplified version, which demonstrates the problem I'm having while shortening the code sample to a few lines:
Thanks.