Class ColorTableCellEditor

  • All Implemented Interfaces:
    java.io.Serializable, javax.swing.CellEditor, javax.swing.table.TableCellEditor

    public class ColorTableCellEditor
    extends PopupTableCellEditor
    A table cell editor for selecting a color. Displays a JColorChooser in a popup window.
    See Also:
    Serialized Form
    • Field Summary

      Fields 
      Modifier and Type Field Description
      static java.lang.String CANCEL_NAME  
      static java.lang.String OK_NAME  
      • Fields inherited from class javax.swing.AbstractCellEditor

        changeEvent, listenerList
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      protected java.awt.Window createWindow​(java.awt.Window owner)
      Create the popup window.
      java.lang.Object getCellEditorValue()  
      protected java.awt.Point getPopupLocation()
      Default implementation returns the top left corner of the table cell.
      java.awt.Component getTableCellEditorComponent​(javax.swing.JTable table, java.lang.Object value, boolean isSelected, int row, int column)  
      protected void hidePopup()
      Hide the popup window if it is showing.
      protected void showPopup()
      Show the popup window.
      • Methods inherited from class javax.swing.AbstractCellEditor

        addCellEditorListener, cancelCellEditing, getCellEditorListeners, isCellEditable, removeCellEditorListener, shouldSelectCell, stopCellEditing
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
      • Methods inherited from interface javax.swing.CellEditor

        addCellEditorListener, cancelCellEditing, isCellEditable, removeCellEditorListener, shouldSelectCell, stopCellEditing
    • Field Detail

      • OK_NAME

        public static final java.lang.String OK_NAME
      • CANCEL_NAME

        public static final java.lang.String CANCEL_NAME
    • Constructor Detail

      • ColorTableCellEditor

        public ColorTableCellEditor()