Package javax.swing

Examples of javax.swing.JPanel.repaint()


        Visita t = (Visita) table.getValueAt(
                table.getSelectedRows()[0], -1);
        JComponent form = VisitaForm.getInstance(t);
        appPanel.add(form);
        appPanel.validate();
        appPanel.repaint();
    }   
}


class VisitaDeleteAction extends AbstractAction {
View Full Code Here


        JXTable table = EquipamentoSearch.getInstance().getTable();
        Equipamento t = (Equipamento) table.getValueAt(table.getSelectedRows()[0], -1);
        JComponent form = EquipamentoForm.getInstance(t);
        appPanel.add(form);
        appPanel.validate();
        appPanel.repaint();
    }   
}


class EquipamentoDeleteAction extends AbstractAction {
View Full Code Here

      table = TurmaSearch.getInstance().getTable();
          Turma t = (Turma) table.getValueAt(table.getSelectedRows()[0], -1);
          JComponent form = TurmaForm.getInstance(t);
          appPanel.add(form);
          appPanel.validate();
          appPanel.repaint();
     
    } catch (Exception e1) {
      // TODO Auto-generated catch block
      e1.printStackTrace();
    }
View Full Code Here

   
    Usuario u = (Usuario) table.getValueAt(table.getSelectedRow(), -1);
    JComponent form = UsuarioForm.getInstance(u);
    appPanel.add(form);
    appPanel.validate();
    appPanel.repaint();
  }
}

class UsuarioDeleteAction extends AbstractAction {
View Full Code Here

   
    Usuario u = (Usuario) table.getValueAt(table.getSelectedRow(), -1);
    JComponent form = UsuarioForm.getInstance(u);
    appPanel.add(form);
    appPanel.validate();
    appPanel.repaint();
  }
}

class UsuarioDeleteAction extends AbstractAction {
View Full Code Here

        Telecentro t = (Telecentro) table.getValueAt(
                table.getSelectedRows()[0], -1);
        JComponent form = TelecentroForm.getInstance(t);
        appPanel.add(form);
        appPanel.validate();
        appPanel.repaint();
    }  
}


class TelecentroDeleteAction extends AbstractAction {
View Full Code Here

        int colorIndex = shift.getShiftType().getIndex() % TangoColors.SEQUENCE_1.length;
        shiftAssignmentButton.setBackground(TangoColors.SEQUENCE_1[colorIndex]);
        shiftAssignmentButton.setToolTipText((employee == null ? "Unassigned" : employee.getLabel())
                + " on " + shift.getLabel());
        shiftPanel.add(shiftAssignmentButton);
        shiftPanel.repaint();
        shiftAssignmentButtonMap.put(shiftAssignment, shiftAssignmentButton);
    }

    public void removeShiftAssignment(ShiftAssignment shiftAssignment) {
        JPanel shiftPanel = shiftPanelMap.get(shiftAssignment.getShift());
View Full Code Here

    public void removeShiftAssignment(ShiftAssignment shiftAssignment) {
        JPanel shiftPanel = shiftPanelMap.get(shiftAssignment.getShift());
        JButton shiftAssignmentButton = shiftAssignmentButtonMap.remove(shiftAssignment);
        shiftPanel.remove(shiftAssignmentButton);
        shiftPanel.repaint();
    }

    public void clearShiftAssignments() {
        for (JPanel shiftPanel : shiftPanelMap.values()) {
            shiftPanel.removeAll();
View Full Code Here

    };

    Observer observer;
    this.addObserver(observer = new Observer() {
      public void update(Observable obs, Object obj) {
        panel.repaint();
      }
    });

    // Saving observer reference for releaseInterfaceVisualizer
    panel.putClientProperty("intf_obs", observer);
View Full Code Here

    };

    Observer observer;
    this.addObserver(observer = new Observer() {
      public void update(Observable obs, Object obj) {
        panel.repaint();
      }
    });

    // Saving observer reference for releaseInterfaceVisualizer
    panel.putClientProperty("intf_obs", observer);
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.