Package javax.swing.table

Examples of javax.swing.table.JTableHeader.repaint()


              // Cycle the sorting states through {NOT_SORTED, ASCENDING, DESCENDING} or
              // {NOT_SORTED, DESCENDING, ASCENDING} depending on whether shift is pressed.
              sortType = sortType + (e.isShiftDown() ? -1 : 1);
              sortType = (sortType + 4) % 3 - 1; // signed mod, returning {-1, 0, 1}
              tableModel.setSortingState(tableModel.new SortingState(column, sortType));
              h.repaint();
          }
        }
    }
}
View Full Code Here


      if (width >= 0) {
        header = jtable.getTableHeader();
        column = jtable.getColumnModel().getColumn(col);
        column.setPreferredWidth(width);
        jtable.sizeColumnsToFit(-1);
        header.repaint();
      }
    }
  }
 
  /**
 
View Full Code Here

      if (width >= 0) {
        header = jtable.getTableHeader();
        column = jtable.getColumnModel().getColumn(col);
        column.setPreferredWidth(width);
        jtable.sizeColumnsToFit(-1);
        header.repaint();
      }
    }
  }
 
  /**
 
View Full Code Here

      if (width >= 0) {
        header = jtable.getTableHeader();
        column = jtable.getColumnModel().getColumn(col);
        column.setPreferredWidth(width);
        jtable.sizeColumnsToFit(-1);
        header.repaint();
      }
    }
  }
 
  /**
 
View Full Code Here

      if (width >= 0) {
        header = jtable.getTableHeader();
        column = jtable.getColumnModel().getColumn(col);
        column.setPreferredWidth(width);
        jtable.sizeColumnsToFit(-1);
        header.repaint();
      }
    }
  }
 
  /**
 
View Full Code Here

    TableColumn tc = tcm.getColumn(col);

    tc.setWidth(width);
    tc.setPreferredWidth(width);

    th.repaint();
  }

  public void setCellRenderers(String processOrder, String inspectionid, String activityid, String mode)
  {
    tableMode = mode;
View Full Code Here

    TableColumn tc = tcm.getColumn(col);

    tc.setWidth(width);
    tc.setPreferredWidth(width);

    th.repaint();
  }

  public void setCellRenderers(String processOrder, String inspectionid, String activityid, String mode)
  {
    tableMode = mode;
View Full Code Here

    for (int i = 0; i < cols.length; i++) {
      TableColumn tc = tcm.getColumn(i);
      tc.setHeaderValue( cols[i] );
    }

    hdr.repaint();
  }

  /**
   * Credentials section
   */
 
View Full Code Here

            newHeader.setReorderingAllowed(false);
        }
       
        table.setTableHeader(newHeader);
        tableScrollPane.setColumnHeaderView(newHeader);
        newHeader.repaint();
       
        if (dragPointHandler != null) {
            DragSource.getDefaultDragSource().createDefaultDragGestureRecognizer(
                newHeader,
                DnDConstants.ACTION_COPY_OR_MOVE,
View Full Code Here

            tcm.getColumn(0).setHeaderValue("Players (" + this.players.length + ")");
            tcm.getColumn(2).setHeaderValue(
                    "Games " + roomUserInfo.getNumberActiveGames() +
                    (roomUserInfo.getNumberActiveGames() != roomUserInfo.getNumberGameThreads() ? " (T:" + roomUserInfo.getNumberGameThreads():" (") +
                    " limit: " + roomUserInfo.getNumberMaxGames() + ")");
            th.repaint();
            this.fireTableDataChanged();
        }

        @Override
        public int getRowCount() {
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.