Using JRE version 1.7.0_21-b11 Java HotSpot(TM) Client VM The full stack trace is: Java Plug-in 10.21.2.11 ("fps: " + reportedFramerate) Įxample page to see the error for yourself: show the framerate in the applet status window ReportedFramerate = (long) ((double) frameCount make sure framerate milliseconds have passed this frame calculate the time it took to render the frameĮlapsedTime = System.currentTimeMillis() - frameStart OptionsPanel options = new OptionsPanel() įtSize(new Dimension ( WIDTH * SCALE, HEIGHT * SCALE )) JFrame frame = new JFrame(MainGame.NAME) įtDefaultCloseOperation(JFrame.EXIT_ON_CLOSE) the actual calculated framerate reported accumulates elapsed time over multiple frames Public static final int WIDTH = HEIGHT * 16 / 9 Public static final String NAME = "Physics - Projectile Motion Example" Private static final long serialVersionUID = 1L This is my first time attempting to use my application as an applet, so I may have done something wrong, but here is my main class: package main My application runs without errors as an application, but as an applet throws the following error:
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |