8189656: The Windows L&F should be moved out from the shared folder
Reviewed-by: prr, psadhukhan, erikj
@ -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;
|
||||
}
|
||||
}
|
Before ![]() (image error) Size: 230 B After ![]() (image error) Size: 230 B ![]() ![]() |
Before ![]() (image error) Size: 86 B After ![]() (image error) Size: 86 B ![]() ![]() |
Before ![]() (image error) Size: 365 B After ![]() (image error) Size: 365 B ![]() ![]() |
Before ![]() (image error) Size: 386 B After ![]() (image error) Size: 386 B ![]() ![]() |
Before ![]() (image error) Size: 381 B After ![]() (image error) Size: 381 B ![]() ![]() |
Before ![]() (image error) Size: 137 B After ![]() (image error) Size: 137 B ![]() ![]() |
Before ![]() (image error) Size: 156 B After ![]() (image error) Size: 156 B ![]() ![]() |
Before ![]() (image error) Size: 243 B After ![]() (image error) Size: 243 B ![]() ![]() |
Before ![]() (image error) Size: 764 B After ![]() (image error) Size: 764 B ![]() ![]() |
Before ![]() (image error) Size: 4.8 KiB After ![]() (image error) Size: 4.8 KiB ![]() ![]() |
Before ![]() (image error) Size: 98 B After ![]() (image error) Size: 98 B ![]() ![]() |
Before ![]() (image error) Size: 370 B After ![]() (image error) Size: 370 B ![]() ![]() |
Before ![]() (image error) Size: 330 B After ![]() (image error) Size: 330 B ![]() ![]() |
Before ![]() (image error) Size: 365 B After ![]() (image error) Size: 365 B ![]() ![]() |
Before ![]() (image error) Size: 848 B After ![]() (image error) Size: 848 B ![]() ![]() |
Before ![]() (image error) Size: 365 B After ![]() (image error) Size: 365 B ![]() ![]() |
Before ![]() (image error) Size: 354 B After ![]() (image error) Size: 354 B ![]() ![]() |
Before ![]() (image error) Size: 192 B After ![]() (image error) Size: 192 B ![]() ![]() |
Before ![]() (image error) Size: 2.8 KiB After ![]() (image error) Size: 2.8 KiB ![]() ![]() |
Before ![]() (image error) Size: 3.1 KiB After ![]() (image error) Size: 3.1 KiB ![]() ![]() |
26
src/java.desktop/windows/classes/module-info.java.extra
Normal file
@ -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
|
||||
|