阅读背景:

尝试使用JFrame显示窗口但不工作

来源:互联网 

I have a Display Class which is supposed to open a window to the console with a specified width and height and on that window there is a canvas. I am running this on Eclipse and just a few days ago the program worked fine and the window opened perfectly, but now it is not and I have not changed anything with the code. I will post my full program though it is a bit lengthy. Basically, I have a Launcher Class which creates an instance of the Game Class called game. Then it calls the Game Class method Start() using game.Start(). This method creates a Thread and executes it with thread.start(). This executes the run() method which calls the init() method which (finally) creates the display and calls the Display Class. I have a Display Class which is supposed to ope




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: