I have a couple GUI applications that display the button fonts with incorrect language or characters at runtime.
this happens whether I launch the program from command line or eclipse.
I checked java path and reinstalled to be sure I had latest version.
Has anyone run into this problem and found a solution?
import javax.swing.JOptionPane; // the import statement i used
code for a simple version of this application also generates the erroneous font on the buttons.
Tried to attach a screen shot for a visual reference.
I did mention that I ran the code both in command line and eclipse.
the source code file was entered directly into eclipse, then copied to note pad where it was compiled separately.
So the the code compiles in both Eclipse and at the command prompt, which seems to indicate its not just an eclipse problem.
I also uninstalled and reinstalled java on my machine, to see if that might be the problem.
I have multiple code files that juse JOptionpane and all have the font issues.
Has anyone seen this happen before?
It might be a font issue, too, that's true. What you say about Eclipse versus Notepad does suggest that it probably isn't an encoding issue, especially since the button text which is supposed to say "OK" doesn't say "OK". So you might have to look into what font your dialog is using -- it doesn't look like you're using an unusual L&F either, so that's probably not the source of the problem.