java SpringUtilities 无法解析
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/13165954/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
SpringUtilities cannot be resolved
提问by Leron_says_get_back_Monica
I'm trying one of the Oracle's GUI examples that uses SpringUtilities
. But the Eclipse gives me and error Cannot resolve to type
and when I try to compile I get SpringUtilities cannot be resolved
. I'm using 1.7 JDK, guess I have to add something somewhere but I can't find much info about this problem on the internet.
我正在尝试使用SpringUtilities
. 但是 Eclipse 给了我错误Cannot resolve to type
,当我尝试编译时,我得到SpringUtilities cannot be resolved
. 我使用的是 1.7 JDK,我想我必须在某处添加一些东西,但我在互联网上找不到关于这个问题的太多信息。
回答by Ti Strga
SpringUtilities
isn't included in the JDK/JRE. It's used in their SpringLayout tutorial,
SpringUtilities
不包含在 JDK/JRE 中。它在他们的 SpringLayout 教程中使用,
http://docs.oracle.com/javase/tutorial/uiswing/layout/spring.html
http://docs.oracle.com/javase/tutorial/uiswing/layout/spring.html
The source is linked to from that page, and can be viewed at
源是从该页面链接到的,可以在