Access restriction: The type JFrame is not accessible due to restriction on required library

使用eclipse开发工具在需要JFrame时

import javax.swing.JFrame;

JFrame, 就会爆红。

解决方法:

Project -> Properties ->->java builder path->LibrariesAccess restriction: The type JFrame is not accessible due to restriction on required library_第1张图片

Access restriction: The type JFrame is not accessible due to restriction on required library_第2张图片

Access restriction: The type JFrame is not accessible due to restriction on required library_第3张图片

 

你可能感兴趣的:(Access restriction: The type JFrame is not accessible due to restriction on required library)