Hi,
I’m a Turkish java learner and trying to get a JOptionPane.showMessageDialog text in Turkish. I’ve tried my chance with the following two methods but they didn’t work. Can anyone help me, please?
method 1
public void noRecords() {
String error = errorMessage();
JOptionPane.showMessageDialog(getParent(), error);
}
public String errorMessage() {
return (new String("Hiç kayıt yok!".getBytes(), "UTF-8"));
}
method 2
public void noRecords() {
byte[] error = "Hiç kayıt yok!".getBytes("UTF-8");
String errorMessage = new String(error);
JOptionPane.showMessageDialog(getParent(), errorMessage);
}