Descripción
Sintaxis
@JavaBean(defaultProperty="UI", description="A component which displays data in a two dimensional grid.") public class JTable extends JComponent implements TableModelListener, Scrollable, TableColumnModelListener, ListSelectionListener, CellEditorListener, Accessible, RowSorterListener
Constructores
Campos
- AUTO_RESIZE_ALL_COLUMNS
- AUTO_RESIZE_LAST_COLUMN
- AUTO_RESIZE_NEXT_COLUMN
- AUTO_RESIZE_OFF
- AUTO_RESIZE_SUBSEQUENT_COLUMNS
- autoCreateColumnsFromModel
- autoResizeMode
- cellEditor
- cellSelectionEnabled
- columnModel
- dataModel
- defaultEditorsByColumnClass
- defaultRenderersByColumnClass
- editingColumn
- editingRow
- editorComp
- gridColor
- preferredViewportSize
- rowHeight
- rowMargin
- rowSelectionAllowed
- selectionBackground
- selectionForeground
- selectionModel
- showHorizontalLines
- showVerticalLines
- tableHeader
Métodos
- addColumn()
- addColumnSelectionInterval()
- addNotify()
- addRowSelectionInterval()
- changeSelection()
- clearSelection()
- columnAdded()
- columnAtPoint()
- columnMarginChanged()
- columnMoved()
- columnRemoved()
- columnSelectionChanged()
- configureEnclosingScrollPane()
- convertColumnIndexToModel()
- convertColumnIndexToView()
- convertRowIndexToModel()
- convertRowIndexToView()
- createDefaultColumnModel()
- createDefaultColumnsFromModel()
- createDefaultDataModel()
- createDefaultEditors()
- createDefaultRenderers()
- createDefaultSelectionModel()
- createDefaultTableHeader()
- createScrollPaneForTable()
- doLayout()
- editCellAt()
- editingCanceled()
- editingStopped()
- getAccessibleContext()
- getAutoCreateColumnsFromModel()
- getAutoCreateRowSorter()
- getAutoResizeMode()
- getCellEditor()
- getCellRect()
- getCellRenderer()
- getCellSelectionEnabled()
- getColumn()
- getColumnClass()
- getColumnCount()
- getColumnModel()
- getColumnName()
- getColumnSelectionAllowed()
- getDefaultEditor()
- getDefaultRenderer()
- getDragEnabled()
- getDropLocation()
- getDropMode()
- getEditingColumn()
- getEditingRow()
- getEditorComponent()
- getFillsViewportHeight()
- getGridColor()
- getIntercellSpacing()
- getModel()
- getPreferredScrollableViewportSize()
- getPrintable()
- getRowCount()
- getRowHeight()
- getRowMargin()
- getRowSelectionAllowed()
- getRowSorter()
- getScrollableBlockIncrement()
- getScrollableTracksViewportHeight()
- getScrollableTracksViewportWidth()
- getScrollableUnitIncrement()
- getSelectedColumn()
- getSelectedColumnCount()
- getSelectedColumns()
- getSelectedRow()
- getSelectedRowCount()
- getSelectedRows()
- getSelectionBackground()
- getSelectionForeground()
- getSelectionModel()
- getShowHorizontalLines()
- getShowVerticalLines()
- getSurrendersFocusOnKeystroke()
- getTableHeader()
- getToolTipText()
- getUI()
- getUIClassID()
- getUpdateSelectionOnSort()
- getValueAt()
- initializeLocalVars()
- isCellEditable()
- isCellSelected()
- isColumnSelected()
- isEditing()
- isRowSelected()
- moveColumn()
- paramString()
- prepareEditor()
- prepareRenderer()
- print()
- removeColumn()
- removeColumnSelectionInterval()
- removeEditor()
- removeNotify()
- removeRowSelectionInterval()
- resizeAndRepaint()
- rowAtPoint()
- selectAll()
- setAutoCreateColumnsFromModel()
- setAutoCreateRowSorter()
- setAutoResizeMode()
- setCellEditor()
- setCellSelectionEnabled()
- setColumnModel()
- setColumnSelectionAllowed()
- setColumnSelectionInterval()
- setDefaultEditor()
- setDefaultRenderer()
- setDragEnabled()
- setDropMode()
- setEditingColumn()
- setEditingRow()
- setFillsViewportHeight()
- setGridColor()
- setIntercellSpacing()
- setModel()
- setPreferredScrollableViewportSize()
- setRowHeight()
- setRowMargin()
- setRowSelectionAllowed()
- setRowSelectionInterval()
- setRowSorter()
- setSelectionBackground()
- setSelectionForeground()
- setSelectionMode()
- setSelectionModel()
- setShowGrid()
- setShowHorizontalLines()
- setShowVerticalLines()
- setSurrendersFocusOnKeystroke()
- setTableHeader()
- setUI()
- setUpdateSelectionOnSort()
- setValueAt()
- sizeColumnsToFit()
- sorterChanged()
- tableChanged()
- unconfigureEnclosingScrollPane()
- updateUI()
- valueChanged()
Ejemplo
Líneas de Código
Vídeos Java
Disfruta también de nuestros artículos sobre Java en formato vídeo. Aprovecha y suscribete a nuestro canal.