changeset 5450:77c92e809c25

7152952: [macosx] List rows overlap with enlarged font Reviewed-by: art, rupashka
author alexsch
date Thu, 07 Jun 2012 18:24:15 +0400
parents 6694d9e99716
children 05ac5622a2ec
files src/macosx/classes/sun/lwawt/LWListPeer.java
diffstat 1 files changed, 9 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/src/macosx/classes/sun/lwawt/LWListPeer.java	Thu Jun 07 10:22:10 2012 +0800
+++ b/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() {