extends GraphicsProgram

对着背影说爱祢 提交于 2019-12-11 17:43:13

问题


I'm watching the Programming Methodology from Stanford on Youtube and professor uses the GraphicsProgram as a basic class for the class he creates.

I do:

public class Test extends GraphicsProgram {
  public static void main(String[] args) {

  }
}

But getting the error that GraphicsProgram can't be resolved to a type.

I clicked Ctrl+Shift+O being in Eclipse to import required packages but nothing happened.

Just wondered how professor uses it, please tell me if you know, thanks in advance!


回答1:


It seems to be from an ACM JTF (Java Task Force) library. A google search for GraphicsProgram.java should help you out. It looks like the source code is available here: http://jtf.acm.org/index.html.




回答2:


Could it be the GraphicsProgram class from the Java Task Force library?

Edit: Looks like they've got they rolled their own Eclipse distribution too. It'll probably be easier just to use that.



来源:https://stackoverflow.com/questions/3442971/extends-graphicsprogram

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!