Skip to content

Commit

Permalink
8264950: Set opaque for JTooltip in config file of NimbusLookAndFeel
Browse files Browse the repository at this point in the history
Reviewed-by: serb, pbansal
  • Loading branch information
trebari committed May 4, 2021
1 parent cfdf4a7 commit 30ccd80
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 3 deletions.
Expand Up @@ -27248,7 +27248,7 @@
<borderStates/>
<regions/>
</uiComponent>
<uiComponent opaque="false" type="javax.swing.JToolTip" name="ToolTip" ui="ToolTipUI" subregion="false">
<uiComponent opaque="true" type="javax.swing.JToolTip" name="ToolTip" ui="ToolTipUI" subregion="false">
<stateTypes/>
<contentMargins top="4" bottom="4" left="4" right="4"/>
<style>
Expand Down
Expand Up @@ -70,7 +70,6 @@ public static ComponentUI createUI(JComponent c) {
@Override
protected void installDefaults(JComponent c) {
updateStyle(c);
LookAndFeel.installProperty(c, "opaque", Boolean.TRUE);
}

private void updateStyle(JComponent c) {
Expand Down
2 changes: 1 addition & 1 deletion test/jdk/javax/swing/JList/TestOpaqueListTable.java
Expand Up @@ -33,7 +33,7 @@

/**
* @test
* @bug 8253266
* @bug 8253266 8264950
* @summary setUIProperty should work when opaque property is not set by
* client
* @key headful
Expand Down

1 comment on commit 30ccd80

@openjdk-notifier
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.