以下是代码:
import java.awt.*;public class ChatClient extends Frame {

TextField tfTxt = new TextField();
TextArea taContent = new TextArea();

public static void main(String[] args) {
new ChatClient().launchFrame();
}

public void launchFrame() {
setLocation(400,300);
this.setSize(300,300);
add(tfTxt, BorderLayout.SOUTH);
add(taContent, BorderLayout.NORTH);
pack();
setVisible(true);
}
}
在别人的机器上运行的时候,在textfield和textarea中输入中英文字体都很正常,但在我的自己的机器上输入的中英文都很难看,字体有点扭曲的感觉,不知道是什么原因?请各位帮忙了!