4632N/A * Copyright (c) 2011, Oracle and/or its affiliates. All rights reserved. 4632N/A * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 4632N/A * This code is free software; you can redistribute it and/or modify it 4632N/A * under the terms of the GNU General Public License version 2 only, as 4632N/A * published by the Free Software Foundation. Oracle designates this 4632N/A * particular file as subject to the "Classpath" exception as provided 4632N/A * by Oracle in the LICENSE file that accompanied this code. 4632N/A * This code is distributed in the hope that it will be useful, but WITHOUT 4632N/A * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 4632N/A * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 4632N/A * version 2 for more details (a copy is included in the LICENSE file that 4632N/A * You should have received a copy of the GNU General Public License version 4632N/A * 2 along with this work; if not, write to the Free Software Foundation, 4632N/A * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 4632N/A * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 4632N/A * or visit www.oracle.com if you need additional information or have any 4639N/A * If the image of the specified size won't fit into the status bar, 4639N/A * then scale it down proprtionally. Otherwise, leave it as is. 4730N/A // There is a black line at the bottom of the status bar 4639N/A // that we don't want to cover with image pixels. 4644N/A // Its a bad idea to force the item to release our view by setting 4644N/A // the item's view to nil: it can lead to a crash in some scenarios. 4644N/A // The item will release the view later on, so just set the view's image 4876N/A // and tray icon to nil since we are done with it. 4876N/A // Unable to create event by some reason. 4632N/A//================================================ 4730N/A // don't cover bottom pixels of the status bar with the image 4876N/A // don't show the menu on ctrl+click: it triggers ACTION event, like right click 4876N/A //find CTrayIcon.getPopupMenuModel method and call it to get popup menu ptr. 4632N/A//================================================ 4632N/A * Class: sun_lwawt_macosx_CTrayIcon 4632N/A * Class: sun_lwawt_macosx_CTrayIcon 4632N/A * Class: sun_lwawt_macosx_CTrayIcon