< prev index next >

src/java.desktop/share/classes/java/awt/doc-files/DesktopProperties.html

Print this page




  48 Desktop properties documented elsewhere are those which are
  49 tightly coupled with a method or class which documents them.
  50 <p>
  51 Since desktop properties abstract an underlying platform
  52 setting, they may not be available in environments that do
  53 not support them. In the event that a desktop property is
  54 unavailable for any reason, the implementation will return
  55 <code>null</code>.
  56 <p>
  57 The following table summarizes the desktop properties documented
  58 here, and their value types.
  59 <br><br>
  60 <table>
  61 <tr bgcolor="#ccccff">
  62 <th>Property Name</th>
  63 <th>Value Type</th>
  64 <th>Summary Description</th>
  65 </tr>
  66 <tr>
  67 <td><A href="#awt.font.desktophints">awt.font.desktophints</A></td>
  68 <td>{@link java.util.Map java.util.Map}</td>
  69 <td>Font smoothing (text antialiasing) settings.</td>
  70 </tr>
  71 <tr>
  72 <td><A href="#sun.awt.enableExtraMouseButtons">sun.awt.enableExtraMouseButtons</A></td>
  73 <td>{@link java.lang.Boolean java.lang.Boolean}</td>
  74 <td>Controls if mouse events from extra buttons are to be generated or not</td>
  75 </tr>
  76 </table>
  77 
  78 <h2>Desktop Font Rendering Hints</h2>
  79 <b>Desktop Property: <a id="awt.font.desktophints">"awt.font.desktophints"</A></b>
  80 <p>
  81 Modern desktops support various forms of text antialiasing (font smoothing).
  82 <p>
  83 These are applied by platform-specific heavyweight components.
  84 However an application may want to render text using the same text
  85 antialiasing on a drawing surface or lightweight (non-platform) component using
  86 <a href="../Graphics2D.html"> <code>Graphics2D</code></a> methods.
  87 This is particularly important when creating
  88 <a href="../../../javax/swing/JComponent.html"> Swing components</a> which
  89 are required to appear consistent with native desktop components or other
  90 Swing components.
  91 
  92 <h3>Basic Usage</h3>
  93 The standard desktop property named




  48 Desktop properties documented elsewhere are those which are
  49 tightly coupled with a method or class which documents them.
  50 <p>
  51 Since desktop properties abstract an underlying platform
  52 setting, they may not be available in environments that do
  53 not support them. In the event that a desktop property is
  54 unavailable for any reason, the implementation will return
  55 <code>null</code>.
  56 <p>
  57 The following table summarizes the desktop properties documented
  58 here, and their value types.
  59 <br><br>
  60 <table>
  61 <tr bgcolor="#ccccff">
  62 <th>Property Name</th>
  63 <th>Value Type</th>
  64 <th>Summary Description</th>
  65 </tr>
  66 <tr>
  67 <td><A href="#awt.font.desktophints">awt.font.desktophints</A></td>
  68 <td><a href="../../util/Map.html">java.util.Map</a></td>
  69 <td>Font smoothing (text antialiasing) settings.</td>
  70 </tr>
  71 <tr>
  72 <td><A href="#sun.awt.enableExtraMouseButtons">sun.awt.enableExtraMouseButtons</A></td>
  73 <td><a href="../../lang/Boolean.html">java.lang.Boolean</a></td>
  74 <td>Controls if mouse events from extra buttons are to be generated or not</td>
  75 </tr>
  76 </table>
  77 
  78 <h2>Desktop Font Rendering Hints</h2>
  79 <b>Desktop Property: <a id="awt.font.desktophints">"awt.font.desktophints"</A></b>
  80 <p>
  81 Modern desktops support various forms of text antialiasing (font smoothing).
  82 <p>
  83 These are applied by platform-specific heavyweight components.
  84 However an application may want to render text using the same text
  85 antialiasing on a drawing surface or lightweight (non-platform) component using
  86 <a href="../Graphics2D.html"> <code>Graphics2D</code></a> methods.
  87 This is particularly important when creating
  88 <a href="../../../javax/swing/JComponent.html"> Swing components</a> which
  89 are required to appear consistent with native desktop components or other
  90 Swing components.
  91 
  92 <h3>Basic Usage</h3>
  93 The standard desktop property named


< prev index next >