Keeping a JDialog Title Centered.
843806Jul 25 2008 — edited Jul 27 2008Guys:
I have a strange problem and am not sure how to get around it. I am ising setTitle() to place a title string on my JDialog. Now I toulf like to center the title. On my desk PC I do this by simply inserting enough spaces before the title to center it. When I run there the title is beautifully centered. However, when I take my code to another computer (especially one made by another manufacturer) it is totally not centered. Is there a way to insure my title stays centered no matter what machine my code is running on? SetTitle(String) takes only a String argument.
Thank you in advance.
Phil Rossomando