Package javax.swing.table

Examples of javax.swing.table.AbstractTableModel


        repaint();
      }
    });


    model = new AbstractTableModel() {
      private static final long serialVersionUID = 3065150390849332924L;
      public String getColumnName(int col) {
        if (col == COLUMN_TIME && formatTimeString) {
          return "Time";
        }
View Full Code Here


    super(
        parent instanceof Dialog?(Dialog)parent:
          parent instanceof Window?(Window)parent:
            (Frame)parent, "Cooja extensions", ModalityType.APPLICATION_MODAL);

    table = new JTable(new AbstractTableModel() {
      private static final long serialVersionUID = 591599455927509191L;
      public int getColumnCount() {
        return 2;
      }
      public int getRowCount() {
View Full Code Here

   * @param rowData
   * @param columnNames
   * @return
   */
  public TableModel getTableModel(final Object[][] rowData, final String[] columnNames) {
    TableModel tableModel = new AbstractTableModel() {
      private static final long serialVersionUID = -4646157834685708153L;

      public int getColumnCount() {
        return columnNames.length;
      }
View Full Code Here

     *
     * @param versionsarray ArrayList
     * @return TableModel
     */
    public TableModel getVersionTableModel(final ArrayList<String> versionsarray) {
    return new AbstractTableModel() {

      private static final long serialVersionUID = 5105003782164682777L;

      public int getColumnCount() {
        return 4;
View Full Code Here

    }

  }
 
  private TableModel createTableModel(Navigator navigator) {
    return new AbstractTableModel() {
     
      @Override
      public Object getValueAt(int rowIndex, int columnIndex) {
        // TODO Auto-generated method stub
        return null;
View Full Code Here

        setTableColInfoWidth();
    }

    private void setTableColInfoWidth()
    {
        AbstractTableModel abs_model = (AbstractTableModel) m_tblColView.getModel();

        int idx_col = abs_model.findColumn(TableInfoColumn.NAME.m_sName);
        int idx_colType = abs_model.findColumn(TableInfoColumn.TYPE.m_sName);

        TableColumnModel model = m_tblColView.getColumnModel();
        model.getColumn(idx_col).setPreferredWidth(1);
        model.getColumn(idx_colType).setPreferredWidth(1);
    }
View Full Code Here

       
        final PartitionPlan plan = this.designer.getPartitionPlan();
        final ArrayList<Table> tables = new ArrayList<Table>();
        tables.addAll(plan.getTableEntries().keySet());
       
        final JTable partitonTable = new JTable(new AbstractTableModel() {
            private static final long serialVersionUID = 1L;
            protected final String columns[] = { "Table", "Method", "Partition Attribute", "Parent", "Parent Attribute" };
           
            public String getColumnName(int col) { return (this.columns[col]); }
            public int getColumnCount() { return (this.columns.length); }
View Full Code Here

        }
       
        private void init() {
            this.setLayout(new BorderLayout());
           
            this.table = new JTable(new AbstractTableModel() {
                private static final long serialVersionUID = 1L;
                protected final String columns[] = { "ID", "VALUE" };
               
                public String getColumnName(int col) {
                    return (this.columns[col]);
View Full Code Here

   
    public void removeToken(MergerToken token) {
        selectableTokensList.remove(token);
        excludedTokens.remove(token);

        AbstractTableModel model = (AbstractTableModel) view.getTokens().getModel();
        model.fireTableDataChanged();
    }
View Full Code Here

        }
        else {
            excludedTokens.addAll(selectableTokensList);
        }

        AbstractTableModel model = (AbstractTableModel) view.getTokens().getModel();
        model.fireTableDataChanged();
    }
View Full Code Here

TOP

Related Classes of javax.swing.table.AbstractTableModel

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.