changeset 10276:fc0947a59867

7169583: JInternalFrame title not antialiased in Nimbus LaF Reviewed-by: azvegint, alexsch
author serb
date Sun, 09 Nov 2014 22:17:45 +0300
parents 6572a5107052
children e51840480603
files src/share/classes/javax/swing/plaf/basic/BasicInternalFrameTitlePane.java
diffstat 1 files changed, 8 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- a/src/share/classes/javax/swing/plaf/basic/BasicInternalFrameTitlePane.java	Sat Nov 01 14:40:09 2014 +0300
+++ b/src/share/classes/javax/swing/plaf/basic/BasicInternalFrameTitlePane.java	Sun Nov 09 22:17:45 2014 +0300
@@ -31,16 +31,14 @@
 import javax.accessibility.AccessibleContext;
 import javax.swing.*;
 import javax.swing.plaf.*;
-import javax.swing.border.*;
 import javax.swing.event.InternalFrameEvent;
-import java.util.EventListener;
 import java.beans.PropertyChangeListener;
 import java.beans.PropertyChangeEvent;
-import java.beans.VetoableChangeListener;
 import java.beans.PropertyVetoException;
 
 import sun.swing.DefaultLookup;
-import sun.swing.UIAction;
+
+import static sun.swing.SwingUtilities2.AA_TEXT_PROPERTY_KEY;
 
 /**
  * The class that manages a basic title bar
@@ -125,6 +123,12 @@
         createButtons();
         addSubComponents();
 
+        updateProperties();
+    }
+
+    private void updateProperties() {
+        final Object aaTextInfo = frame.getClientProperty(AA_TEXT_PROPERTY_KEY);
+        putClientProperty(AA_TEXT_PROPERTY_KEY, aaTextInfo);
     }
 
     protected void addSubComponents() {