equal
deleted
inserted
replaced
81 SynthContext context = getContext(getComponent(), ENABLED); |
81 SynthContext context = getContext(getComponent(), ENABLED); |
82 JComponent c = getComponent(); |
82 JComponent c = getComponent(); |
83 c.putClientProperty("caretAspectRatio", null); |
83 c.putClientProperty("caretAspectRatio", null); |
84 |
84 |
85 style.uninstallDefaults(context); |
85 style.uninstallDefaults(context); |
86 context.dispose(); |
|
87 style = null; |
86 style = null; |
88 |
87 |
89 Object clientProperty = |
88 Object clientProperty = |
90 c.getClientProperty(JEditorPane.HONOR_DISPLAY_PROPERTIES); |
89 c.getClientProperty(JEditorPane.HONOR_DISPLAY_PROPERTIES); |
91 if (clientProperty == localTrue) { |
90 if (clientProperty == localTrue) { |
125 if (oldStyle != null) { |
124 if (oldStyle != null) { |
126 uninstallKeyboardActions(); |
125 uninstallKeyboardActions(); |
127 installKeyboardActions(); |
126 installKeyboardActions(); |
128 } |
127 } |
129 } |
128 } |
130 context.dispose(); |
|
131 } |
129 } |
132 |
130 |
133 /** |
131 /** |
134 * {@inheritDoc} |
132 * {@inheritDoc} |
135 */ |
133 */ |
163 SynthContext context = getContext(c); |
161 SynthContext context = getContext(c); |
164 |
162 |
165 SynthLookAndFeel.update(context, g); |
163 SynthLookAndFeel.update(context, g); |
166 paintBackground(context, g, c); |
164 paintBackground(context, g, c); |
167 paint(context, g); |
165 paint(context, g); |
168 context.dispose(); |
|
169 } |
166 } |
170 |
167 |
171 /** |
168 /** |
172 * Paints the specified component. |
169 * Paints the specified component. |
173 * |
170 * |