equal
deleted
inserted
replaced
187 if (oldStyle != null) { |
187 if (oldStyle != null) { |
188 uninstallKeyboardActions(); |
188 uninstallKeyboardActions(); |
189 installKeyboardActions(); |
189 installKeyboardActions(); |
190 } |
190 } |
191 } |
191 } |
192 context.dispose(); |
|
193 } |
192 } |
194 |
193 |
195 /** |
194 /** |
196 * Attaches listeners to the JTable. |
195 * Attaches listeners to the JTable. |
197 */ |
196 */ |
218 if (table.getTransferHandler() instanceof UIResource) { |
217 if (table.getTransferHandler() instanceof UIResource) { |
219 table.setTransferHandler(null); |
218 table.setTransferHandler(null); |
220 } |
219 } |
221 SynthContext context = getContext(table, ENABLED); |
220 SynthContext context = getContext(table, ENABLED); |
222 style.uninstallDefaults(context); |
221 style.uninstallDefaults(context); |
223 context.dispose(); |
|
224 style = null; |
222 style = null; |
225 } |
223 } |
226 |
224 |
227 /** |
225 /** |
228 * {@inheritDoc} |
226 * {@inheritDoc} |
271 |
269 |
272 SynthLookAndFeel.update(context, g); |
270 SynthLookAndFeel.update(context, g); |
273 context.getPainter().paintTableBackground(context, |
271 context.getPainter().paintTableBackground(context, |
274 g, 0, 0, c.getWidth(), c.getHeight()); |
272 g, 0, 0, c.getWidth(), c.getHeight()); |
275 paint(context, g); |
273 paint(context, g); |
276 context.dispose(); |
|
277 } |
274 } |
278 |
275 |
279 /** |
276 /** |
280 * {@inheritDoc} |
277 * {@inheritDoc} |
281 */ |
278 */ |
297 @Override |
294 @Override |
298 public void paint(Graphics g, JComponent c) { |
295 public void paint(Graphics g, JComponent c) { |
299 SynthContext context = getContext(c); |
296 SynthContext context = getContext(c); |
300 |
297 |
301 paint(context, g); |
298 paint(context, g); |
302 context.dispose(); |
|
303 } |
299 } |
304 |
300 |
305 /** |
301 /** |
306 * Paints the specified component. |
302 * Paints the specified component. |
307 * |
303 * |