Package uk.ac.starlink.table.gui

Examples of uk.ac.starlink.table.gui.NumericCellRenderer


        // set column widths
        for (int i = 0; i < NUM_COLS; i++) {
            TableColumn col = _table.getColumn(COLUMN_NAMES[i]);
            col.setPreferredWidth(COLUMN_WIDTHS[i]);
            col.setCellRenderer(new NumericCellRenderer(COLUMN_CLASSES[i]));
        }

        _table.getSelectionModel().clearSelection();
        _deleteButton.setEnabled(false);
    }
View Full Code Here


            } else {
                Class c = _tableQueryResult.getColumnClass(col);
                // Use the StarJava renderer for better numeric display (also handles strings, etc.)
                if (c != null) {
                    // The parent class sets the text color without checking if it is selected...
                    column.setCellRenderer(new NumericCellRenderer(c));
                }
            }
        }
    }
View Full Code Here

TOP

Related Classes of uk.ac.starlink.table.gui.NumericCellRenderer

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.