           (.setForeground selected-foreground)
           (.setBackground selected-background)))
       (if (instance? JLabel component)
-        (.setHorizontalAlignment component SwingConstants/CENTER))
+        (.setHorizontalAlignment ^JLabel component SwingConstants/CENTER))
       component)))
             
 

        conexp.contrib.gui.editors.context-editor.table-control
        conexp.contrib.gui.editors.context-editor.editable-contexts)
  (:import [java.awt Color Font]
    [javax.swing JLabel SwingConstants]))


;;; Context editor control

  (defn- context-cell-renderer-hook
    "Returns the component given as first parameter, optionally changes 
     attributes of it depending on the cell"
    [^JTable table, ^JComponent component, view-row view-col is-selected has-focus value]
    (let [row (get-row-index table view-row),
          col (get-column-index table view-col) ]
      (cond
