public class DeviceTable
extends java.lang.Object
Constructor | Description |
---|---|
DeviceTable(java.lang.String[] columnNames) |
|
DeviceTable(javax.swing.table.TableModel tableModel) |
Modifier and Type | Method | Description |
---|---|---|
int[] |
getSelectedRows() |
Returns the indices of all the selected rows on the table.
|
java.awt.Component |
graphic() |
Returns the top level panel that the table components sit on.
|
void |
initCellEditor(javax.swing.table.TableModel tableModel) |
|
static void |
main(java.lang.String[] args) |
main method to demonstrate and test this class.
|
void |
setPreferredSize(int width,
int height) |
Set the preferred size attribute of the scrolled window the table
sits on.
|
void |
setSize(int width,
int height) |
Set the size attribute of the scrolled window the table sits on.
|
void |
setTitle(java.lang.String title) |
Set the title of the border surrounding the table.
|
public DeviceTable(java.lang.String[] columnNames)
public DeviceTable(javax.swing.table.TableModel tableModel)
public void initCellEditor(javax.swing.table.TableModel tableModel)
public void setPreferredSize(int width, int height)
width
- height
- public void setSize(int width, int height)
width
- height
- public void setTitle(java.lang.String title)
title
- public int[] getSelectedRows()
public java.awt.Component graphic()
public static void main(java.lang.String[] args)