如何在JLabel Swing组件中显示印地语?

时间:2017-05-02 10:27:59

标签: java swing encoding

 void display(){
      fr = new JFrame("Resource App");
      JLabel name = new JLabel("one=नमस्ते");
      JTextField txtname = new JTextField(10);

      fr.setLayout(new FlowLayout());
      fr.setSize(500,500);
      fr.setVisible(true);

      fr.add(name);
      fr.add(txtname);
 }

此代码显示错误:

unmappable character for encoding cp1252

0 个答案:

没有答案