Search in sources :

Example 1 with MeusProjetos

use of view.MeusProjetos in project specify by rhebecaabreu.

the class PhDCheckHeader method mouseClicked.

public void mouseClicked(MouseEvent e) {
    if (mousePressed) {
        mousePressed = false;
        JTableHeader header = (JTableHeader) (e.getSource());
        JTable tableView = header.getTable();
        TableColumnModel columnModel = tableView.getColumnModel();
        int viewColumn = columnModel.getColumnIndexAtX(e.getX());
        int coluna = tableView.convertColumnIndexToModel(viewColumn);
        MeusProjetos a = new MeusProjetos();
        a.limpalista();
        if (viewColumn == getColumn() && e.getClickCount() == 1 && coluna != -1) {
            doClick();
            a.limpalista();
        }
    }
    ((JTableHeader) e.getSource()).repaint();
}
Also used : JTable(javax.swing.JTable) JTableHeader(javax.swing.table.JTableHeader) TableColumnModel(javax.swing.table.TableColumnModel) MeusProjetos(view.MeusProjetos)

Aggregations

JTable (javax.swing.JTable)1 JTableHeader (javax.swing.table.JTableHeader)1 TableColumnModel (javax.swing.table.TableColumnModel)1 MeusProjetos (view.MeusProjetos)1