7152952: [macosx] List rows overlap with enlarged font
Reviewed-by: art, rupashka
--- 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() {