![]() * Reconnect to network services after the system has awoke from sleep. ![]() * Open a custom URL scheme when a user clicks on link in a web browser. * Open a document that the user double-clicked on in the Finder. * Create a new document when the user clicks on your Dock icon, and no windows are open. * Open a preferences window when the users chooses Preferences from the application menu. ![]() * * For example: * * Open an about dialog when a user chooses About from the application menu. * You can provide your Mac OS X users a greatly enhanced experience by implementing a few basic handlers for standard system events. */ package import java.awt.* import .* import import import sun.lwawt.* import .* /** * The Application class allows you to integrate your Java application with the native Mac OS X environment. * * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA * or visit if you need additional information or have any * questions. * * You should have received a copy of the GNU General Public License version * 2 along with this work if not, write to the Free Software Foundation, * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. See the GNU General Public License * version 2 for more details (a copy is included in the LICENSE file that * accompanied this code). * * This code is distributed in the hope that it will be useful, but WITHOUT * ANY WARRANTY without even the implied warranty of MERCHANTABILITY or * FITNESS FOR A PARTICULAR PURPOSE. Oracle designates this * particular file as subject to the "Classpath" exception as provided * by Oracle in the LICENSE file that accompanied this code. * * This code is free software you can redistribute it and/or modify it * under the terms of the GNU General Public License version 2 only, as * published by the Free Software Foundation. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. Line source /* * Copyright (c) 2011, 2012, Oracle and/or its affiliates.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |