1、解压缩后将文件夹zh-CHS文件夹拷贝至工程下并将其包含至工程当中 2、在删除不必要的资源文件后将剩余资源文件的build action属性设置为content ,copy to output directory属性设置为copy if newer 3、在工程中program文件main函数中加入以下代码 Thread.CurrentThread.CurrentUICulture = new System.Globalization.CultureInfo("zh-CHS");
//整型变量,表示难度等级为:简单 public static final int EASY = 1; //整型变量,表示难度等级为:普通 public static final int NATURAL = 2; //整型变量,表示难度等级为:难 public static final int HARD = 3; //设定初始难度等级为简单 private int grade = Spider.EASY; private Container pane = null; //生成纸牌数组 priv
使用@Configuration注解需要依赖com.springsource.net.sf.cglib-2.2.0.jar的JAR包 否则异常 Exception in thread "main" java.lang.IllegalStateException: CGLIB is required to process @Configuration classes.