Article Title: Solve the Chinese box problem with Swing on Linux. Linux is a technology channel of the IT lab in China. Includes basic categories such as desktop applications, Linux system management, kernel research, embedded systems, and open source.
It is mainly used to modify the jdk text configuration (the Chinese box appears with swing on Linux ):
(1) copy the file C: \ WINDOWS \ Fonts \ simsun. ttc in the window and change the suffix to ". ttf": simsun. tff to run the file on linux.
Copy it to the linux Directory:/usr/local/java/jre/lib/fonts/
(2) modify the file:/usr/local/java/jre/lib/fonts. dir
Change the first line: "72" to "73"
Add simsun. ttf-Arphic Technology Co.-ar pl SungtiL GB-medium-r-normal -- 0-0-0-0-c-0-gb2312.1980-0
(3) files in the directory:/usr/local/java/jre/lib/font. properties. zh. copy the file with Turbo, and then copy the file font. properties. zh. turbo
Change to "font. properties. zh" and then modify the file as follows:
-Tlc-song-medium-r-normal -- *-% d-*-c-*-gbk-0 all replace:
-Arphic Technology Co.-ar pl SungtiL GB-medium-r-normal -- 0-0-0-0-c-0-gb2312.1980-0
(4) restart the server.