title: Enable antialiasing of text in all Swing-application components
body: <p>There is a problem with smoothing component;s content. The text on the button does not become smooth.</p>
  
  <pre><code>JButton button = new JButton("Button"){
    public void PaintComponent(Graphics g){
      Graphics2D g2d = (Graphics2D) g;
      //g2d.setRenderingHint(RenderingHints.KEY_ANTIALIASING, RenderingHints.VALUE_ANTIALIAS_ON);
      g2d.setRenderingHint(RenderingHints.KEY_TEXT_ANTIALIASING, RenderingHints.VALUE_TEXT_ANTIALIAS_ON);
      super.paintComponent(g2d);
      g2d.dispose();
    }
  };
  </code></pre>
  
  <p>I don't want to create a separate class and override the <code>paintComponent()</code>, causing the methods <code>g2d.setRenderingHint(...)</code> and <code>g2d.drawString("Button")</code>.</p>
  
  <p>The problem is that for all Swing components of my application, must turn on anti-aliasing of text in them. Impossible override the methods of <code>paintComponent()</code> all items by hand.</p>
  
  <p>Naturally, the inclusion of text anti-aliasing in the system settings does nothing to solve the problem.</p>
  
  <p>Please, help.</p>