Skip to content

Commit 30ccd80

Browse files
committed
8264950: Set opaque for JTooltip in config file of NimbusLookAndFeel
Reviewed-by: serb, pbansal
1 parent cfdf4a7 commit 30ccd80

File tree

3 files changed

+2
-3
lines changed

3 files changed

+2
-3
lines changed

src/java.desktop/share/classes/javax/swing/plaf/nimbus/skin.laf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27248,7 +27248,7 @@
2724827248
<borderStates/>
2724927249
<regions/>
2725027250
</uiComponent>
27251-
<uiComponent opaque="false" type="javax.swing.JToolTip" name="ToolTip" ui="ToolTipUI" subregion="false">
27251+
<uiComponent opaque="true" type="javax.swing.JToolTip" name="ToolTip" ui="ToolTipUI" subregion="false">
2725227252
<stateTypes/>
2725327253
<contentMargins top="4" bottom="4" left="4" right="4"/>
2725427254
<style>

src/java.desktop/share/classes/javax/swing/plaf/synth/SynthToolTipUI.java

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,6 @@ public static ComponentUI createUI(JComponent c) {
7070
@Override
7171
protected void installDefaults(JComponent c) {
7272
updateStyle(c);
73-
LookAndFeel.installProperty(c, "opaque", Boolean.TRUE);
7473
}
7574

7675
private void updateStyle(JComponent c) {

test/jdk/javax/swing/JList/TestOpaqueListTable.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@
3333

3434
/**
3535
* @test
36-
* @bug 8253266
36+
* @bug 8253266 8264950
3737
* @summary setUIProperty should work when opaque property is not set by
3838
* client
3939
* @key headful

0 commit comments

Comments
 (0)