changeset 4908:9b195bfce3eb

7152952: [macosx] List rows overlap with enlarged font Reviewed-by: serb
author alexp
date Wed, 21 Mar 2012 22:02:01 +0400
parents 6572dc1873ab
children 25285b7883d4
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	Wed Mar 21 20:46:36 2012 +0400
+++ b/src/macosx/classes/sun/lwawt/LWListPeer.java	Wed Mar 21 22:02:01 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() {