Package javax.swing

Examples of javax.swing.JPanel.repaint()


        Usuario u = (Usuario) getTable().getValueAt(
            getTable().getSelectedRows()[0], -1);
        JComponent form = VisitaForm.getInstance(u);
        appPanel.add(form);
        appPanel.validate();
        appPanel.repaint();
      }
    };
   
    visitaButton.setAction(actionVisita);
    visitaButton.setText("Registrar Visita");
View Full Code Here


        JXTable table = CursoSearch.getInstance().getTable();
        Curso c = (Curso) table.getValueAt(table.getSelectedRows()[0], -1);
        JComponent form = CursoForm.getInstance(c);
        appPanel.add(form);
        appPanel.validate();
        appPanel.repaint();
    }   
}


class CursoDeleteAction extends AbstractAction {
View Full Code Here

      table = ConteudoSearch.getInstance().getTable();
      Conteudo conteudo = (Conteudo) table.getValueAt(table.getSelectedRows()[0], -1);
          JComponent form = ConteudoForm.getInstance(conteudo);
          appPanel.add(form);
          appPanel.validate();
          appPanel.repaint();
     
    } catch (Exception e1) {
      // TODO Auto-generated catch block
      e1.printStackTrace();
    }
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

        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

   
    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) getTable().getValueAt(
            getTable().getSelectedRows()[0], -1);
        JComponent form = VisitaForm.getInstance(u);
        appPanel.add(form);
        appPanel.validate();
        appPanel.repaint();
      }
    };
   
    visitaButton.setAction(actionVisita);
    visitaButton.setText("Registrar Visita");
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

                public void stateChanged(ChangeEvent e) {
                    if (success.isSelected())
                        selected = 1;
                    textArea.setEnabled(!success.isSelected());
                    if (panel != null)
                        panel.repaint();
                }
            });
            fail.addChangeListener(new ChangeListener() {
                public void stateChanged(ChangeEvent e) {
                    if (fail.isSelected())
View Full Code Here

                public void stateChanged(ChangeEvent e) {
                    if (fail.isSelected())
                        selected = 3;
                    textArea.setEnabled(!success.isSelected());
                    if (panel != null)
                        panel.repaint();
                }
            });
            notes.addChangeListener(new ChangeListener() {
                public void stateChanged(ChangeEvent e) {
                    if (notes.isSelected())
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.