7152952: [macosx] List rows overlap with enlarged font
authoralexsch
Thu, 07 Jun 2012 18:24:15 +0400
changeset 12835 e547680fe05b
parent 12834 6dc96f9ffb73
child 12837 a7d04f276889
7152952: [macosx] List rows overlap with enlarged font Reviewed-by: art, rupashka
jdk/src/macosx/classes/sun/lwawt/LWListPeer.java
--- a/jdk/src/macosx/classes/sun/lwawt/LWListPeer.java	Thu Jun 07 10:22:10 2012 +0800
+++ b/jdk/src/macosx/classes/sun/lwawt/LWListPeer.java	Thu Jun 07 18:24:15 2012 +0400
@@ -245,6 +245,15 @@
             }
         }
 
+        @Override
+        public void setFont(Font font) {
+            super.setFont(font);
+            if (getView() != null) {
+                getView().setFont(font);
+                LWListPeer.this.revalidate();
+            }
+        }
+
         private final class JListDelegate extends JList<Object> {
 
             JListDelegate() {