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 60360 - Need API for setting up rendering hints
Summary: Need API for setting up rendering hints
Status: NEW
Alias: None
Product: platform
Classification: Unclassified
Component: Window System (show other bugs)
Version: 5.x
Hardware: All All
: P3 blocker (vote)
Assignee: issues@platform
Keywords: API
Depends on:
Reported: 2005-06-22 03:47 UTC by _ tboudreau
Modified: 2010-08-11 13:28 UTC (History)
2 users (show)

See Also:
Exception Reporter:


Note You need to log in before you can comment on or make changes to this bug.
Description _ tboudreau 2005-06-22 03:47:13 UTC
Right now, rendering hints (for antialiasing, etc.) are configured all over the place in NetBeans.  As we 
can see with the 1.6 mustang situation, this can cause problems when requirements change.  
Additionally, for 1.6 subpixel antialiasing, it will need to be done via reflection, most likely, until 1.5 is 
no longer supported - we don't really want that code copied all over the codebase.

It would be much preferable to have one static utility method somewhere, i.e.

public static void setupAntialiasing (boolean textOnly);

that would simply do the Right Thing for the various platforms, etc.  Very simple to write.

Suggest org.openide.util.Utilities for lack of a better place (though it would be nice to have a place for 
Swing specific things like this, various fiddling NetBeans does with file choosers, etc.).