Package javax.swing.table

Examples of javax.swing.table.DefaultTableModel.fireTableDataChanged()


                DefaultTableModel aModel = (DefaultTableModel)assignedTable.getModel();
                double new_lamt = r_lamt / aModel.getRowCount();
                for (int i = 0; i < aModel.getRowCount(); i++) {
                    ((Vector)(aModel.getDataVector().get(i))).set(4, new_lamt);
                }
                aModel.fireTableDataChanged();
               
        }
       
        private void confirm() {
           
View Full Code Here


                            public void run() {

                                // clear old table
                                DefaultTableModel dm = (DefaultTableModel) goMappingsTable.getModel();
                                dm.getDataVector().removeAllElements();
                                dm.fireTableDataChanged();

                                if (!goMappingsFile.exists()) {
                                    progressDialog.setRunFinished();
                                    JOptionPane.showMessageDialog(peptideShakerGUI, "Mapping file \"" + goMappingsFile.getName() + "\" not found!",
                                            "File Not Found", JOptionPane.ERROR_MESSAGE);
View Full Code Here

        goMappingsLoaded = false;

        // clear old results
        DefaultTableModel dm = (DefaultTableModel) goMappingsTable.getModel();
        dm.getDataVector().removeAllElements();
        dm.fireTableDataChanged();

        dm = (DefaultTableModel) proteinTable.getModel();
        dm.getDataVector().removeAllElements();
        dm.fireTableDataChanged();
View Full Code Here

        dm.getDataVector().removeAllElements();
        dm.fireTableDataChanged();

        dm = (DefaultTableModel) proteinTable.getModel();
        dm.getDataVector().removeAllElements();
        dm.fireTableDataChanged();

        goFrequencyPlotPanel.removeAll();
        goFrequencyPlotPanel.revalidate();
        goFrequencyPlotPanel.repaint();
View Full Code Here

                public void run() {
                    try {
                        // clear the old data
                        DefaultTableModel dm = (DefaultTableModel) proteinTable.getModel();
                        dm.getDataVector().removeAllElements();
                        dm.fireTableDataChanged();

                        // get the selected go accession number
                        String selectedGoAccession = (String) goMappingsTable.getValueAt(goMappingsTable.getSelectedRow(), goMappingsTable.getColumn("GO Accession").getModelIndex());

                        // remove the html tags
View Full Code Here

            // just a trick to make sure that the users cannot select another row until the selection has been updated
            this.setEnabled(false);

            DefaultTableModel dm = (DefaultTableModel) pdbChainsJTable.getModel();
            dm.getDataVector().removeAllElements();
            dm.fireTableDataChanged();

            // clear the peptide to pdb mappings in the peptide table
            for (int i = 0; i < peptideTable.getRowCount(); i++) {
                peptideTable.setValueAt(false, i, peptideTable.getColumn("PDB").getModelIndex());
            }
View Full Code Here

            this.setCursor(new java.awt.Cursor(java.awt.Cursor.WAIT_CURSOR));

            try {
                DefaultTableModel dm = (DefaultTableModel) peptideTable.getModel();
                dm.getDataVector().removeAllElements();
                dm.fireTableDataChanged();

                String proteinMatchKey = proteinKeys.get(proteinIndex);
                ProteinMatch proteinMatch = peptideShakerGUI.getIdentification().getProteinMatch(proteinMatchKey);
                peptideTableMap = new HashMap<Integer, String>();
View Full Code Here

                    uniProtPdb = new FindPdbForUniprotAccessions(tempAccession, progressDialog); // @TODO: make it possible to cancel this process...

                    // delete the previous matches
                    DefaultTableModel dm = (DefaultTableModel) pdbMatchesJTable.getModel();
                    dm.getDataVector().removeAllElements();
                    dm.fireTableDataChanged();

                    dm = (DefaultTableModel) pdbChainsJTable.getModel();
                    dm.getDataVector().removeAllElements();
                    dm.fireTableDataChanged();
View Full Code Here

                    dm.getDataVector().removeAllElements();
                    dm.fireTableDataChanged();

                    dm = (DefaultTableModel) pdbChainsJTable.getModel();
                    dm.getDataVector().removeAllElements();
                    dm.fireTableDataChanged();

                    // clear the peptide to pdb mappings in the peptide table
                    for (int i = 0; i < peptideTable.getRowCount() && !progressDialog.isRunCanceled(); i++) {
                        peptideTable.setValueAt(false, i, peptideTable.getColumn("PDB").getModelIndex());
                    }
View Full Code Here

     * @param proteinInferenceType the protein inference group type
     */
    public void updateMainMatch(String mainMatch, int proteinInferenceType) {
        if (proteinTable.getRowCount() > 0) {
            DefaultTableModel dm = (DefaultTableModel) proteinTable.getModel();
            dm.fireTableDataChanged();
            reselect();
        }
    }

    /**
 
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. 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.