在eclipse里面创建了一个项目,点击了其中一个java中的按钮后报错
Exceptioninthread"AWT-EventQueue-0"java.lang.Error:Unresolvedcompilationproblems:Acce...
Exception in thread "AWT-EventQueue-0" java.lang.Error: Unresolved compilation problems: Access restriction: The method getText() from the type JTextComponent is not accessible due to restriction on required library C:\Program Files (x86)\Java\jre1.8.0_40\lib\rt.jar Access restriction: The method getPassword() from the type JPasswordField is not accessible due to restriction on required library C:\Program Files (x86)\Java\jre1.8.0_40\lib\rt.jar
展开
1个回答
2015-07-02
展开全部
JTextComponent 不可以直接访问getText。。。。。。。。。换JTextField 应该OK,,,,,,JDK 1.8未试过,,,,,,,,
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询