小白问一个极其简单的GUI问题

freshnerd 2014-10-30 02:10:01
我就学习GUI的JFrame里面查几个按钮而已,很奇怪的是 程序可以运行,也弹出来了我设计的窗口,但是我却看到了下图所示的小红八叉 这应该叫做编译器报错把?? 奇怪啊 怎么能运行了 还有错误呢 提示的错误是 :

Multiple markers at this line
- The serializable class Gui does not declare a static final serialVersionUID field of type long
- Access restriction: The type JFrame is not accessible due to restriction on required
library C:\Program Files\Java\jre1.8.0_25\lib\rt.jar

...全文
792 6 打赏 收藏 转发到动态 举报
写回复
用AI写文章
6 条回复
切换为时间正序
请发表友善的回复…
发表回复
freshnerd 2014-11-11
  • 打赏
  • 举报
回复
引用 3 楼 xuefeng0707 的回复:
简直了!!!谢谢!
jikeizod 2014-11-06
  • 打赏
  • 举报
回复
写的乱七八糟
xuefeng0707 2014-11-06
  • 打赏
  • 举报
回复
freshnerd 2014-11-06
  • 打赏
  • 举报
回复
引用 1 楼 rui888 的回复:
环境对不?看看提升什么错误
Multiple markers at this line - The serializable class Gui does not declare a static final serialVersionUID field of type long - Access restriction: The type JFrame is not accessible due to restriction on required library C:\Program Files\Java\jre1.8.0_25\lib\rt.jar
金伟__ 2014-11-06
  • 打赏
  • 举报
回复
clean 一下试试呢
tony4geek 2014-11-05
  • 打赏
  • 举报
回复
环境对不?看看提升什么错误

58,452

社区成员

发帖
与我相关
我的任务
社区描述
Java Eclipse
社区管理员
  • Eclipse
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧