LoadToolkit.java revision 9330:8b1f1c2a400f
198530Sfenner/* 217683Spst * Copyright (c) 2000, 2013, Oracle and/or its affiliates. All rights reserved. 339291Sfenner * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 417683Spst * 517683Spst * This code is free software; you can redistribute it and/or modify it 617683Spst * under the terms of the GNU General Public License version 2 only, as 717683Spst * published by the Free Software Foundation. Oracle designates this 817683Spst * particular file as subject to the "Classpath" exception as provided 917683Spst * by Oracle in the LICENSE file that accompanied this code. 1017683Spst * 1117683Spst * This code is distributed in the hope that it will be useful, but WITHOUT 1217683Spst * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 1317683Spst * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 1417683Spst * version 2 for more details (a copy is included in the LICENSE file that 1517683Spst * accompanied this code). 1617683Spst * 1717683Spst * You should have received a copy of the GNU General Public License version 1817683Spst * 2 along with this work; if not, write to the Free Software Foundation, 1917683Spst * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 2017683Spst * 2117683Spst * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 2217683Spst * or visit www.oracle.com if you need additional information or have any 2317683Spst * questions. 2417683Spst */ 2517683Spst 2617683Spst 2717683Spstimport java.awt.Toolkit; 2817683Spst 2917683Spstpublic class LoadToolkit { 3017683Spst 3117683Spst public static void main(String[] args) { 3217683Spst Toolkit kit = Toolkit.getDefaultToolkit(); 3317683Spst // This starts a thread which never exits - so we suicide. 3417683Spst try { 3517683Spst Thread.sleep(5000); 36127664Sbms } catch (Exception e) { 37214518Srpaulo } 3817683Spst System.exit(0); 3917683Spst } 4075107Sfenner} 4175107Sfenner