This is an automated email from the ASF dual-hosted git repository.
matthiasblaesing pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/netbeans.git
The following commit(s) were added to refs/heads/master by this push:
new a164b59 Maven pom.xml annotations: Configure graphics context for
antialiasing
new 8e19dd9 Merge pull request #3269 from
matthiasblaesing/effective-pom-antialias
a164b59 is described below
commit a164b59fa34b462b3f1f4f18294bbd1a266e8d83
Author: Matthias Bläsing <[email protected]>
AuthorDate: Mon Oct 25 20:52:43 2021 +0200
Maven pom.xml annotations: Configure graphics context for antialiasing
---
.../org/netbeans/modules/maven/grammar/effpom/AnnotationBar.java | 6 ++++--
1 file changed, 4 insertions(+), 2 deletions(-)
diff --git
a/java/maven.grammar/src/org/netbeans/modules/maven/grammar/effpom/AnnotationBar.java
b/java/maven.grammar/src/org/netbeans/modules/maven/grammar/effpom/AnnotationBar.java
index b9c7e08..f5436dc 100644
---
a/java/maven.grammar/src/org/netbeans/modules/maven/grammar/effpom/AnnotationBar.java
+++
b/java/maven.grammar/src/org/netbeans/modules/maven/grammar/effpom/AnnotationBar.java
@@ -39,8 +39,8 @@ import org.apache.maven.model.InputLocation;
import org.netbeans.api.editor.fold.FoldHierarchy;
import org.netbeans.modules.maven.api.ModelUtils;
import
org.netbeans.modules.maven.grammar.effpom.LocationAwareMavenXpp3Writer.Location;
-import org.netbeans.modules.maven.hyperlinks.HyperlinkProviderImpl;
import static org.netbeans.modules.maven.grammar.effpom.Bundle.*;
+import org.openide.awt.GraphicsUtils;
import org.openide.util.NbBundle.Messages;
/**
@@ -453,7 +453,7 @@ public final class AnnotationBar extends JComponent
implements Accessible, Prope
if (al != null) {
annotation = getDisplayName(al); // NOI18N
}
- }
+ }
if (al != null && getDisplayName(al).equals(recentLocationName)) {
g.setColor(selectedColor());
@@ -528,6 +528,8 @@ public final class AnnotationBar extends JComponent
implements Accessible, Prope
*/
@Override
public void paintComponent(Graphics g) {
+ GraphicsUtils.configureDefaultRenderingHints(g);
+
super.paintComponent(g);
Rectangle clip = g.getClipBounds();
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]
For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists