Java Code Examples for org.jdesktop.swingx.JXTable#setEditable()

The following examples show how to use org.jdesktop.swingx.JXTable#setEditable() . You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: ImportPanel.java    From BART with MIT License 6 votes vote down vote up
private void initJTableFiles()   {
    jTableFiles = new JXTable();
    jTableFilesTableModel = new DBMSImportTableModel(jTableFiles);
    jTableFiles.setColumnControlVisible(true);
    jTableFiles.setEditable(false);
    jTableFiles.setSelectionMode(ListSelectionModel.SINGLE_SELECTION);
    jTableFiles.setModel(jTableFilesTableModel);
    jTableFiles.setShowGrid(true);
    jTableFiles.setDragEnabled(false); 
    jTableFiles.getSelectionModel().addListSelectionListener(new ListSelectionListener() {
        @Override
        public void valueChanged(ListSelectionEvent e) {
            if(jTableFiles.getSelectedRow() < 0)   {
                delFileButton.setEnabled(false);
            }else{
                delFileButton.setEnabled(true);
            }
        }
    });
    scrollPaneFiles.setViewportView(jTableFiles);   
}
 
Example 2
Source File: TableDataView.java    From BART with MIT License 5 votes vote down vote up
private void initJTable()   {
    valueTable = new JXTable();
    valueTable.setColumnControlVisible(true);
    valueTable.setEditable(false);
    valueTable.setDefaultRenderer(Object.class, new TableValueCellRender());
    valueTable.setCellSelectionEnabled(true);
    valueTable.setSelectionMode(ListSelectionModel.SINGLE_SELECTION);
    valueTable.setModel(dataModel);
    valueTable.setShowGrid(true);
    valueTable.setDragEnabled(false); 
    valueTable.setSelectionBackground(new Color(214, 217, 223));
    valueTable.setVisibleRowCount(20);
    pageCtrlPanel.setVisibleRow(20+"");
}
 
Example 3
Source File: VioGenQueriesWPanel.java    From BART with MIT License 5 votes vote down vote up
private void initTable()   {
    table = new JXTable();
    table.setColumnControlVisible(true);
    table.setEditable(true);
    table.setCellSelectionEnabled(true);
    table.setSelectionMode(ListSelectionModel.SINGLE_SELECTION);
    table.setShowGrid(true);
    table.setDragEnabled(false); 
    table.setSelectionBackground(new Color(214, 217, 223));
    highlighterControl = new HighlighterControl();
}
 
Example 4
Source File: ChartTopComponent.java    From BART with MIT License 5 votes vote down vote up
private void initTable()   {
    cellChangesTable = new JXTable();
    cellChangesTable.setEditable(false);
    cellChangesTable.setColumnControlVisible(true);
    cellChangesTable.setShowGrid(true);
    cellChangesTable.setDragEnabled(false); 
    cellChangesTable.setSelectionBackground(new Color(214, 217, 223));
    cellChangesTable.setModel(model);
}