Access restriction: The type JFrame is not accessible due to restriction on required library
在eclipse中创建swing项目时会出现这个问题。解决方法就是:
1、右键该工程,选择properties。
![Image 1][]
2、出现如下:
![Image 1][]
3、选择该“JRE System Libray(……)”,在右边的按钮点击“Remove”
4、然后再点击Add Library
![Image 1][]
5、next——finish——ok
6、结束。现在没有问题了。但是每创建一个项目就要这样来一次。
[Image 1]:
还没有评论,来说两句吧...