jdk/src/share/classes/javax/swing/plaf/synth/SynthTextPaneUI.java
changeset 5594 3db39773da2e
parent 4394 92a8ec883f5d
child 5597 ab490f66d2cf
equal deleted inserted replaced
5593:b89c8108f831 5594:3db39773da2e
    70     protected String getPropertyPrefix() {
    70     protected String getPropertyPrefix() {
    71         return "TextPane";
    71         return "TextPane";
    72     }
    72     }
    73 
    73 
    74     /**
    74     /**
    75      * @inheritDoc
    75      * Installs the UI for a component.  This does the following
       
    76      * things.
       
    77      * <ol>
       
    78      * <li>
       
    79      * Sets opaqueness of the associated component according to its style,
       
    80      * if the opaque property has not already been set by the client program.
       
    81      * <li>
       
    82      * Installs the default caret and highlighter into the
       
    83      * associated component. These properties are only set if their
       
    84      * current value is either {@code null} or an instance of
       
    85      * {@link UIResource}.
       
    86      * <li>
       
    87      * Attaches to the editor and model.  If there is no
       
    88      * model, a default one is created.
       
    89      * <li>
       
    90      * Creates the view factory and the view hierarchy used
       
    91      * to represent the model.
       
    92      * </ol>
       
    93      *
       
    94      * @param c the editor component
       
    95      * @see BasicTextUI#installUI
       
    96      * @see ComponentUI#installUI
    76      */
    97      */
    77     @Override
    98     @Override
    78     public void installUI(JComponent c) {
    99     public void installUI(JComponent c) {
    79         super.installUI(c);
   100         super.installUI(c);
    80         updateForeground(c.getForeground());
   101         updateForeground(c.getForeground());