This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 92060

Summary: Toolbar button should be rendered with anti-aliasing
Product: ide Reporter: Jesse Glick <jglick>
Component: LoggerAssignee: Jaroslav Tulach <jtulach>
Status: RESOLVED FIXED    
Severity: blocker    
Priority: P4    
Version: 6.x   
Hardware: All   
OS: All   
Issue Type: DEFECT Exception Reporter:

Description Jesse Glick 2007-01-08 22:42:33 UTC
070108. At least when running under JDK 6+ (or otherwise with anti-aliasing on
by default), the "Submit ... for Evaluation" toolbar button's circle should be
drawn anti-aliased. Currently it is jagged, which looks pretty ugly. The number
is anti-aliased.

Also BTW, the vertical line initially drawn above "0" is off-center (too far to
the right).
Comment 1 Jaroslav Tulach 2007-01-09 13:56:24 UTC
How one draws a circle to be anti-aliased?
Comment 2 Jesse Glick 2007-01-09 17:39:05 UTC
Pretty visible; P5 is inappropriate for something displayed at all times, I think.

Just set the AA rendering hint before calling the draw circle method. Java2D
should handle the rest.

Re. the off-center line: also applies to the filled-in wedge, which is too far
to the right.

The wedge should also be drawn using AA or it looks bad.
Comment 3 Jaroslav Tulach 2007-01-10 12:51:34 UTC
How do I set AA hint?
Comment 4 Jesse Glick 2007-01-10 17:55:34 UTC
I think

  ((Graphics2D) g).setRenderingHint(RenderingHints.KEY_ANTIALIASING,
                                    RenderingHints.VALUE_ANTIALIAS_ON);

may do it.
Comment 5 Jesse Glick 2007-02-19 23:41:23 UTC
I got impatient so:

Checking in SubmitAction.java;
/shared/data/ccvs/repository/logger/uihandler/src/org/netbeans/modules/uihandler/SubmitAction.java,v
 <--  SubmitAction.java
new revision: 1.4; previous revision: 1.3
done