Edit C:\Program Files\Java\jdk1.8.0_121\com\sun\glass\ui\monocle\MonocleTimer.java
/* * Copyright (c) 2011, 2014, Oracle and/or its affiliates. All rights reserved. * ORACLE PROPRIETARY/CONFIDENTIAL. Use is subject to license terms. * * * * * * * * * * * * * * * * * * * * */ package com.sun.glass.ui.monocle; import com.sun.glass.ui.Timer; /** * Monocle implementation class for Timer. */ final class MonocleTimer extends Timer { private static java.util.Timer timer; private java.util.TimerTask task; MonocleTimer(final Runnable runnable) { super(runnable); } static int getMinPeriod_impl() { return 0; } static int getMaxPeriod_impl() { return 1000000; } @Override protected long _start(final Runnable runnable, int period) { if (timer == null) { timer = new java.util.Timer(true); } task = new java.util.TimerTask() { @Override public void run() { runnable.run(); } }; timer.schedule(task, 0, (long)period); return 1; // need something non-zero to denote success. } @Override protected long _start(Runnable runnable) { throw new RuntimeException("vsync timer not supported"); } @Override protected void _stop(long timer) { if (task != null) { task.cancel(); task = null; } } }
Ms-Dos/Windows
Unix
Write backup
jsp File Browser version 1.2 by
www.vonloesch.de