8189656: The Windows L&F should be moved out from the shared folder

Reviewed-by: prr, psadhukhan, erikj
This commit is contained in:
Sergey Bylokhov 2017-12-04 16:14:29 -08:00
parent 796aeef46b
commit 267856d100
100 changed files with 50 additions and 122 deletions
src/java.desktop
share/classes
unix/classes/sun/awt/windows
windows/classes
com/sun/java/swing/plaf/windows
AnimationController.javaTMSchema.javaWindowsBorders.javaWindowsButtonListener.javaWindowsButtonUI.javaWindowsCheckBoxMenuItemUI.javaWindowsCheckBoxUI.javaWindowsClassicLookAndFeel.javaWindowsComboBoxUI.javaWindowsDesktopIconUI.javaWindowsDesktopManager.javaWindowsDesktopPaneUI.javaWindowsDesktopProperty.javaWindowsEditorPaneUI.javaWindowsFileChooserUI.javaWindowsGraphicsUtils.javaWindowsIconFactory.javaWindowsInternalFrameTitlePane.javaWindowsInternalFrameUI.javaWindowsLabelUI.javaWindowsLookAndFeel.javaWindowsMenuBarUI.javaWindowsMenuItemUI.javaWindowsMenuItemUIAccessor.javaWindowsMenuUI.javaWindowsOptionPaneUI.javaWindowsPasswordFieldUI.javaWindowsPopupMenuSeparatorUI.javaWindowsPopupMenuUI.javaWindowsPopupWindow.javaWindowsProgressBarUI.javaWindowsRadioButtonMenuItemUI.javaWindowsRadioButtonUI.javaWindowsRootPaneUI.javaWindowsScrollBarUI.javaWindowsScrollPaneUI.javaWindowsSeparatorUI.javaWindowsSliderUI.javaWindowsSpinnerUI.javaWindowsSplitPaneDivider.javaWindowsSplitPaneUI.javaWindowsTabbedPaneUI.javaWindowsTableHeaderUI.javaWindowsTextAreaUI.javaWindowsTextFieldUI.javaWindowsTextPaneUI.javaWindowsTextUI.javaWindowsToggleButtonUI.javaWindowsToolBarSeparatorUI.javaWindowsToolBarUI.javaWindowsTreeUI.javaXPStyle.java
icons
resources
module-info.java.extra
sun/swing/plaf/windows
test/jdk
com/sun/java/swing/plaf/windows
javax/swing
JButton/4796987
JComboBox
JFileChooser
JInternalFrame/6725409
JProgressBar/7141573
JSlider
JTree/8004298
border

@ -1,5 +1,5 @@
/*
* Copyright (c) 2014, 2016, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2014, 2017, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
@ -112,8 +112,6 @@ module java.desktop {
opens javax.swing.plaf.basic to
jdk.jconsole;
opens com.sun.java.swing.plaf.windows to
jdk.jconsole;
uses java.awt.im.spi.InputMethodDescriptor;
uses javax.accessibility.AccessibilityProvider;

@ -1,109 +0,0 @@
/*
* Copyright (c) 2004, 2014, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* 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. 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 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 General Public License
* version 2 for more details (a copy is included in the LICENSE file that
* accompanied this code).
*
* 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.
*
* Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
* or visit www.oracle.com if you need additional information or have any
* questions.
*/
package sun.awt.windows;
import java.awt.Color;
import java.awt.Dimension;
import java.awt.Insets;
import java.awt.Point;
/**
* This is a stubbed out placeholder class, intended to allow building
* WindowsLookAndFeel on Unix. This class is never actually called on
* Unix, and will be deleted when WindowsLookAndFeel is no longer built
* on Unix.
*
* @author Leif Samuelsson
*/
public final class ThemeReader {
public static boolean isThemed() {
return false;
}
public static boolean isXPStyleEnabled() {
return false;
}
public static void paintBackground(int[] buffer, String widget,
int part, int state, int x, int y, int w, int h, int stride) {
}
public static Insets getThemeMargins(String widget, int part, int state, int marginType) {
return null;
}
public static boolean isThemePartDefined(String widget, int part, int state) {
return false;
}
public static Color getColor(String widget, int part, int state, int property) {
return null;
}
public static int getInt(String widget, int part, int state, int property) {
return 0;
}
public static int getEnum(String widget, int part, int state, int property) {
return 0;
}
public static boolean getBoolean(String widget, int part, int state, int property) {
return false;
}
public static boolean getSysBoolean(String widget, int property) {
return false;
}
public static Point getPoint(String widget, int part, int state, int property) {
return null;
}
public static Dimension getPosition(String widget, int part, int state, int property) {
return null;
}
public static Dimension getPartSize(String widget, int part, int state) {
return null;
}
public static long getThemeTransitionDuration(String widget, int part,
int stateFrom, int stateTo, int propId) {
return 0;
}
public static boolean isGetThemeTransitionDurationDefined() {
return false;
}
public static Insets getThemeBackgroundContentMargins(String widget,
int part, int state, int boundingWidth, int boundingHeight) {
return null;
}
}

@ -0,0 +1,26 @@
/*
* Copyright (c) 2017, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* 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. 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 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 General Public License
* version 2 for more details (a copy is included in the LICENSE file that
* accompanied this code).
*
* 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.
*
* Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
* or visit www.oracle.com if you need additional information or have any
* questions.
*/
opens com.sun.java.swing.plaf.windows to jdk.jconsole;

@ -23,6 +23,7 @@
/* @test
@bug 8173145
@requires (os.family == "windows")
@summary Menu is activated after using mnemonic Alt/Key combination
@modules java.desktop/com.sun.java.swing.plaf.windows
@run main Test8173145

@ -1,5 +1,5 @@
/*
* Copyright (c) 2013, 2015, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2013, 2017, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
@ -24,6 +24,7 @@
/*
* @test
* @bug 4796987
* @requires (os.family == "windows")
* @summary XP Only: JButton.setBorderPainted() does not work with XP L&F
* @author Alexander Scherbatiy
* @library ../../regtesthelpers

@ -1,5 +1,5 @@
/*
* Copyright (c) 2013, 2015, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2013, 2017, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
@ -25,6 +25,7 @@
@test
@key headful
@bug 4199622
@requires (os.family == "windows")
@summary RFE: JComboBox shouldn't send ActionEvents for keyboard navigation
@author Vladislav Karnaukhov
@library ../../../../lib/testlibrary

@ -1,5 +1,5 @@
/*
* Copyright (c) 2013, 2015, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2013, 2017, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
@ -39,6 +39,7 @@ import static javax.swing.WindowConstants.DISPOSE_ON_CLOSE;
* @test
* @key headful
* @bug 8015300
@requires (os.family == "windows")
* @summary Tests that editable combobox selects all text.
* @author Sergey Malenkov
* @library ../../../../lib/testlibrary/

@ -1,5 +1,5 @@
/*
* Copyright (c) 2010, 2015, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2010, 2017, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
@ -24,6 +24,7 @@
/*
* @test
* @bug 4847375 8171363
* @requires (os.family == "windows")
* @summary JFileChooser Create New Folder button is disabled incorrectly
* @author Pavel Porvatov
* @modules java.desktop/sun.awt

@ -1,5 +1,5 @@
/*
* Copyright (c) 2014, 2015, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2014, 2017, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
@ -24,6 +24,7 @@
/*
* @test
* @bug 8046391
* @requires (os.family == "windows")
* @summary JFileChooser hangs if displayed in Windows L&F
* @author Alexey Ivanov
* @library ../../../../lib/testlibrary

@ -1,5 +1,5 @@
/*
* Copyright (c) 2008, 2015, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2008, 2017, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
@ -24,6 +24,7 @@
/* @test
* @key headful
* @bug 6725409
* @requires (os.family == "windows")
* @summary Checks that JInternalFrame's system menu
* can be localized during run-time
* @author Mikhail Lapshin

@ -1,5 +1,5 @@
/*
* Copyright (c) 2012, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2012, 2017, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
@ -23,6 +23,7 @@
/* @test
@bug 7141573
@requires (os.family == "windows")
@summary JProgressBar resize exception, if setStringPainted in Windows LAF
@author Pavel Porvatov
*/

@ -1,5 +1,5 @@
/*
* Copyright (c) 2008, 2015, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2008, 2017, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
@ -23,6 +23,7 @@
/* @test
* @bug 6524424
* @requires (os.family == "windows")
* @summary JSlider Clicking In Tracks Behavior Inconsistent For Different Tick Spacings
* @author Pavel Porvatov
* @modules java.desktop/com.sun.java.swing.plaf.windows

@ -1,5 +1,5 @@
/*
* Copyright (c) 2009, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2009, 2017, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
@ -23,6 +23,7 @@
/* @test
* @bug 6579827
* @requires (os.family == "windows")
* @summary vista : JSlider on JColorchooser is not properly render or can't be seen completely
* @author Pavel Porvatov
* @library ../../../../lib/testlibrary

@ -1,5 +1,5 @@
/*
* Copyright (c) 2013, 2015, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2013, 2017, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
@ -25,6 +25,7 @@
* @test
* @key headful
* @bug 8004298
* @requires (os.family == "windows")
* @summary NPE in WindowsTreeUI.ensureRowsAreVisible
* @author Alexander Scherbatiy
* @library ../../regtesthelpers

@ -24,6 +24,7 @@
/*
* @test
* @bug 4856008 7025987
* @requires (os.family == "windows")
* @summary Tests border insets
* @author Sergey Malenkov
* @modules java.desktop/com.sun.java.swing.plaf.motif

@ -24,6 +24,7 @@
/*
* @test
* @bug 6978482 7025987
* @requires (os.family == "windows")
* @summary Tests unchecked casts
* @author Sergey Malenkov
* @modules java.desktop/com.sun.java.swing.plaf.motif