Package javax.swing

Examples of javax.swing.JTable.revalidate()


          if (!table.getValueAt(e.getLastRow(), e.getColumn()).toString().trim().equals("")) {
            node.setStateAt(table.getValueAt(e.getLastRow(),
                e.getColumn()).toString(), e.getLastRow()
                - (table.getRowCount() - node.getStatesSize()));
          } else {
            table.revalidate();
            table.setValueAt(node.getStateAt(e.getLastRow()
                - (table.getRowCount() - node.getStatesSize())), e.getLastRow(),
                e.getColumn());
          }
        // Change the CPT cell or reset to its previous value.
View Full Code Here


              JOptionPane.showMessageDialog(null,
                  resource.getString("numberFormatError"),
                  resource.getString("error"),
                  JOptionPane.ERROR_MESSAGE);
            }
            table.revalidate();
            table.setValueAt(""
                + potTab.getValue((e.getColumn() - 1) * node.getStatesSize() + e.getLastRow()),
                e.getLastRow(), e.getColumn());
          }
        }
View Full Code Here

          } catch (NumberFormatException nfe) {
            JOptionPane.showMessageDialog(null,
                resource.getString("error"),
                resource.getString("realNumberError"),
                JOptionPane.ERROR_MESSAGE);
            table.revalidate();
            table.setValueAt(""
                + potTab.getValue((e.getColumn() - 1) * node.getStatesSize() + e.getLastRow()),
                e.getLastRow(), e.getColumn());
          }
        }
View Full Code Here

        size.width = 0;
        size.height = (rowTotal * rowHeight) + scrollHeight;//
        // para poder desplazar la ultima fila a la altura del Header
        tableView.setPreferredSize(size);
        tableView.revalidate();
        Rectangle rectRes = new Rectangle(0, 0, 0, 0);//reset

        tableView.scrollRectToVisible(rectRes);
        Rectangle rect = new Rectangle(0, row * rowHeight, tableWidth, tableHeight * 2);

 
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.