/* * $Id: WindowsLookAndFeelAddons.java 3673 2010-04-26 07:44:52Z kleopatra $ * * Copyright 2004 Sun Microsystems, Inc., 4150 Network Circle, * Santa Clara, California 95054, U.S.A. All rights reserved. * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation; either * version 2.1 of the License, or (at your option) any later version. * * This library 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. See the GNU * Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public * License along with this library; if not, write to the Free Software * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA */ package org.hdesktop.swingx.plaf.windows; import org.hdesktop.swingx.plaf.basic.BasicLookAndFeelAddons; /** * Adds new pluggable UI following the Windows XP look and feel. */ public class WindowsLookAndFeelAddons extends BasicLookAndFeelAddons { public static final String HOMESTEAD_VISUAL_STYLE = "HomeStead"; public static final String SILVER_VISUAL_STYLE = "Metallic"; public static final String VISTA_VISUAL_STYLE = "NormalColor"; // JW: reverting ... // /** // * {@inheritDoc} <p> // * // */ // @Override // public void initialize() { // super.initialize(); // // fix Issue #1305-swingx: wrapper for core issue #6753637 // // set ui property to prevent eating mousePressed when closing popup // UIManager.put("PopupMenu.consumeEventOnClose", Boolean.FALSE); // } // // /** // * {@inheritDoc} <p> // */ // @Override // public void uninitialize() { // // fix Issue #1305-swingx: wrapper for core issue #6753637 // // remove the ui property again // UIManager.put("PopupMenu.consumeEventOnClose", null); // super.uninitialize(); // } // }