From b11651333a1f7eec876fb1fa7fb40e762815532b Mon Sep 17 00:00:00 2001 From: Konstantin Bulenkov Date: Mon, 10 Jun 2013 10:04:47 +0400 Subject: [PATCH] AA is off by default on Oracle JVM --- .../intellij/openapi/options/newEditor/PreferenceButton.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/platform/platform-impl/src/com/intellij/openapi/options/newEditor/PreferenceButton.java b/platform/platform-impl/src/com/intellij/openapi/options/newEditor/PreferenceButton.java index b84db7efccbf..7aa8c258bedb 100644 --- a/platform/platform-impl/src/com/intellij/openapi/options/newEditor/PreferenceButton.java +++ b/platform/platform-impl/src/com/intellij/openapi/options/newEditor/PreferenceButton.java @@ -16,6 +16,7 @@ package com.intellij.openapi.options.newEditor; import com.intellij.openapi.util.SystemInfo; +import com.intellij.util.ui.GraphicsUtil; import com.intellij.util.ui.UIUtil; import javax.swing.*; @@ -72,6 +73,7 @@ public class PreferenceButton extends JComponent { x = (getWidth() - insets.left - insets.right - metrics.stringWidth(myLabel)) / 2; y += 1.5 * metrics.getHeight(); g.setColor(UIUtil.getLabelForeground()); + GraphicsUtil.setupAAPainting(g); g.drawString(myLabel, x, y); } }