7 * published by the Free Software Foundation.
8 *
9 * This code is distributed in the hope that it will be useful, but WITHOUT
10 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
11 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
12 * version 2 for more details (a copy is included in the LICENSE file that
13 * accompanied this code).
14 *
15 * You should have received a copy of the GNU General Public License version
16 * 2 along with this work; if not, write to the Free Software Foundation,
17 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
18 *
19 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
20 * or visit www.oracle.com if you need additional information or have any
21 * questions.
22 */
23
24 /*
25 @test
26 @bug 8147841
27 @summary Updating Tray Icon popup menu does not update menu items on Mac OS X
28 @run main/manual UpdatePopupMenu
29 */
30
31 import java.awt.SystemTray;
32 import java.awt.TrayIcon;
33 import java.awt.PopupMenu;
34 import java.awt.MenuItem;
35 import java.awt.Image;
36 import java.awt.Graphics2D;
37 import java.awt.Color;
38 import java.awt.image.BufferedImage;
39 import java.awt.RenderingHints;
40 import java.awt.AWTException;
41 import java.awt.Button;
42 import java.awt.Frame;
43 import java.awt.GridBagConstraints;
44 import java.awt.GridBagLayout;
45 import java.awt.Panel;
46 import java.awt.TextArea;
|
7 * published by the Free Software Foundation.
8 *
9 * This code is distributed in the hope that it will be useful, but WITHOUT
10 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
11 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
12 * version 2 for more details (a copy is included in the LICENSE file that
13 * accompanied this code).
14 *
15 * You should have received a copy of the GNU General Public License version
16 * 2 along with this work; if not, write to the Free Software Foundation,
17 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
18 *
19 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
20 * or visit www.oracle.com if you need additional information or have any
21 * questions.
22 */
23
24 /*
25 @test
26 @bug 8147841
27 @key headful
28 @summary Updating Tray Icon popup menu does not update menu items on Mac OS X
29 @run main/manual UpdatePopupMenu
30 */
31
32 import java.awt.SystemTray;
33 import java.awt.TrayIcon;
34 import java.awt.PopupMenu;
35 import java.awt.MenuItem;
36 import java.awt.Image;
37 import java.awt.Graphics2D;
38 import java.awt.Color;
39 import java.awt.image.BufferedImage;
40 import java.awt.RenderingHints;
41 import java.awt.AWTException;
42 import java.awt.Button;
43 import java.awt.Frame;
44 import java.awt.GridBagConstraints;
45 import java.awt.GridBagLayout;
46 import java.awt.Panel;
47 import java.awt.TextArea;
|