Java中遇到的一些问题集合Ⅰ(转的别人的链接)

1.在JAVA中注解@SuppressWarnings("deprecation")的Deprecation是什么意思:https://blog.csdn.net/evilcry2012/article/details/43151849

起因:show()方法的使用(已过时),等同于setVisible

2.对JFrame添加组件有两种方式:https://blog.csdn.net/h002399/article/details/47404451

起因:getContentPane()方法的使用

3.java代码中在双引号里面添加双引号   "  getClass().getResource(\"5.jpg\")  "


4.java中ImageIcon路径问题   https://liuyanzhao.com/4082.html

5.Eclipse 编译错误 Access restriction:The type *** is not accessible due to restriction on... 解决方案

http://rxxluowei.iteye.com/blog/671893

发布了13 篇原创文章 · 获赞 13 · 访问量 7349

猜你喜欢

转载自blog.csdn.net/lvdoujack/article/details/80412752