Lee Middler

Greenhorn
+ Follow
since Mar 03, 2009
Merit badge: grant badges
For More
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
0
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by Lee Middler

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?

7 years ago
this was a simple version of the problem:

import javax.swing.JOptionPane;

public class WelcomeInMessageDialogBox {
public static void main(String[] args) {
// Display Welcome to Java! in a message dialog box
JOptionPane.showMessageDialog(null,"Welcome to Java!");

System.exit(0);

}
}
This happens anytime the JOptionPane is executed....

Thanks Paul!
7 years ago
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.

Regards - Lee
7 years ago