< prev index next >

src/java.desktop/share/classes/javax/swing/plaf/synth/SynthTextAreaUI.java

Print this page
rev 60127 : 8249205: Remove unnecessary trademark symbols


  27 
  28 import javax.swing.*;
  29 import javax.swing.text.*;
  30 import javax.swing.plaf.*;
  31 import javax.swing.plaf.basic.BasicTextAreaUI;
  32 import java.awt.*;
  33 import java.awt.event.FocusListener;
  34 import java.awt.event.FocusEvent;
  35 import java.beans.PropertyChangeEvent;
  36 
  37 /**
  38  * Provides the look and feel for a plain text editor in the
  39  * Synth look and feel. In this implementation the default UI
  40  * is extended to act as a simple view factory.
  41  * <p>
  42  * <strong>Warning:</strong>
  43  * Serialized objects of this class will not be compatible with
  44  * future Swing releases. The current serialization support is
  45  * appropriate for short term storage or RMI between applications running
  46  * the same version of Swing.  As of 1.4, support for long term storage
  47  * of all JavaBeans&trade;
  48  * has been added to the <code>java.beans</code> package.
  49  * Please see {@link java.beans.XMLEncoder}.
  50  *
  51  * @author  Shannon Hickey
  52  * @since 1.7
  53  */
  54 @SuppressWarnings("serial") // Same-version serialization only
  55 public class SynthTextAreaUI extends BasicTextAreaUI implements SynthUI {
  56     private Handler handler = new Handler();
  57     private SynthStyle style;
  58     private boolean updateKBAction = true;
  59     /**
  60      * Creates a UI object for a JTextArea.
  61      *
  62      * @param ta a text area
  63      * @return the UI object
  64      */
  65     public static ComponentUI createUI(JComponent ta) {
  66         return new SynthTextAreaUI();
  67     }




  27 
  28 import javax.swing.*;
  29 import javax.swing.text.*;
  30 import javax.swing.plaf.*;
  31 import javax.swing.plaf.basic.BasicTextAreaUI;
  32 import java.awt.*;
  33 import java.awt.event.FocusListener;
  34 import java.awt.event.FocusEvent;
  35 import java.beans.PropertyChangeEvent;
  36 
  37 /**
  38  * Provides the look and feel for a plain text editor in the
  39  * Synth look and feel. In this implementation the default UI
  40  * is extended to act as a simple view factory.
  41  * <p>
  42  * <strong>Warning:</strong>
  43  * Serialized objects of this class will not be compatible with
  44  * future Swing releases. The current serialization support is
  45  * appropriate for short term storage or RMI between applications running
  46  * the same version of Swing.  As of 1.4, support for long term storage
  47  * of all JavaBeans
  48  * has been added to the <code>java.beans</code> package.
  49  * Please see {@link java.beans.XMLEncoder}.
  50  *
  51  * @author  Shannon Hickey
  52  * @since 1.7
  53  */
  54 @SuppressWarnings("serial") // Same-version serialization only
  55 public class SynthTextAreaUI extends BasicTextAreaUI implements SynthUI {
  56     private Handler handler = new Handler();
  57     private SynthStyle style;
  58     private boolean updateKBAction = true;
  59     /**
  60      * Creates a UI object for a JTextArea.
  61      *
  62      * @param ta a text area
  63      * @return the UI object
  64      */
  65     public static ComponentUI createUI(JComponent ta) {
  66         return new SynthTextAreaUI();
  67     }


< prev index next >