require 'swing' class Swing::JTable # autoCreateColumnsFromModel boolean • • false # autoResizeMode int • • AUTO_RESIZE_ALL_COLUMNS # columnModel TableColumnModel • • DefaultTableColumnModel( ) # model TableModel • • DefaultTableModel( ) # rowHeight int • • 16 # cellSelectionEnabled boolean • • false # columnSelectionAllowed boolean • • false # rowSelectionAllowed boolean • • true # selectionMode int • MULTIPLE_INTERVAL_SELECTION - Setter ONLY! # selectionModel ListSelectionModel • • DefaultListSelectionModel # cellEditor TableCellEditor • • null # dragEnabled boolean • • false # gridColor Color • • From L&F # intercellSpacing Dimension • • Dimension(1, 1) # preferredScrollableViewportSize Dimension • • Dimension(450, 400) # rowMargin int • • 1 # selectionBackground Color • • From L&F # selectionForeground Color • • From L&F # showGrid boolean • true # showHorizontalLines boolean • • true # showVerticalLines boolean • • true # tableHeader JTableHeader • • JTableHeader(column-Model) # ----Getters only - NO Setters! # columnCount int • 0 # rowCount int • 0 # selectedColumn int • -1 # selectedColumnCount int • 0 # selectedColumns int[] • int[0] # selectedRow int • -1 # selectedRowCount int • 0 # selectedRows int[] • int[0] # accessibleContext AccessibleContext • JTable.AccessibleJTable # scrollableTracksViewportHeighto boolean • false # scrollableTracksViewportWidtho boolean • false attr_setter :auto_create_columns_from_model, :auto_resize_mode, :row_height, :model, :column_model, :selection_model, :drag_enabled, :cell_editor, :row_margin, :show_grid, :show_horizontal_lines, :show_vertical_lines, :table_header, :grid_color => Awt::Color, :intercell_spacing => Awt::Dimension, :selection_background => Awt::Color, :selection_foreground => Awt::Color, :preferred_scrollable_viewport_size => Awt::Dimension, :selection_mode => Swing::ListSelectionModel::SINGLE_SELECTION, :cell_selection_enabled => true, :row_selection_allowed => false, :column_selection_allowed => false # TODO: direct accessors for column_model properties like #columns? end # class JTable