beautyEye输入框中文输入法白屏

在使用 Java Swing 编写程序时引用 beautyEye 以修改样式,但在使用输入框时,输入中文窗口就出现白屏

解决方法:

在初始化前加入 System.setProperty(“sun.java2d.noddraw”, “true”);

1
2
3
4
5
6
7
8
9
10
11
public static void main(String[] args) {

try {
System.setProperty("sun.java2d.noddraw", "true");
org.jb2011.lnf.beautyeye.BeautyEyeLNFHelper.launchBeautyEyeLNF();

} catch (Exception e) {
// TODO exception
}

}
Author

meimaolu

Posted on

2020-05-23

Updated on

2023-06-14

Licensed under

Comments