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 - Toolbar button should be rendered with anti-aliasing
Summary: Toolbar button should be rendered with anti-aliasing
Status: RESOLVED FIXED
Alias: None
Product: ide
Classification: Unclassified
Component: Logger (show other bugs)
Version: 6.x
Hardware: All All
: P4 blocker (vote)
Assignee: Jaroslav Tulach
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-01-08 22:42 UTC by Jesse Glick
Modified: 2007-02-19 23:41 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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