- 博客(3)
- 收藏
- 关注
转载 JAVA中GUI在Button中设置中文乱码问题
问题:今天在编写GUI简单界面时,上面的中文出现了乱码现象,如下原因:原因1:使用的是Button组件,该组件是AWT中的组件,AWT对于中文解析不是很好,Eclipse不能友好调用本地汉字库。原因2:使用了不兼容GUI编码格式的解析方式(UTF-8)解决办法:方法一:使用JButton组件,可以解决中文乱码的问题。方法二:将编码格式改为GBK右击点击“Run As” - “Run Configurations”的Encoding,选择GBK编码。如果默认不是GBK,请选择“Other”,
2021-03-11 16:52:13
1188
原创 IDEA中 public static void main(String[] args) 快捷键
在IDEA中public static void main(String[] args)的快捷键是:psvmSystem.out.println(); 的快捷键是:sout
2021-03-11 10:13:07
6550
原创 spring的基于注解的开发
spring的基于注解的开发曾经XML的配置:* <bean id="accountService" class="com.itheima.service.impl.AccountServiceImpl"* scope="" init-method="" destroy-method="">* <property name="" value="" ref=""></property>* </bean>** 用于创建对象的*
2021-03-11 09:38:38
112
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人
RSS订阅