Exemplo n.º 1
0
 private void employeeCrudMenuItemActionPerformed(
     java.awt.event.ActionEvent evt) { // GEN-FIRST:event_employeeCrudMenuItemActionPerformed
   // TODO add your handling code here:
   EmployeeCrudWindow employeeCrud =
       new EmployeeCrudWindow(
           this, true, CrudWindowType.CREATE, PersistenceUnit.getEntityManagerFactory());
   employeeCrud.setVisible(true);
 } // GEN-LAST:event_employeeCrudMenuItemActionPerformed
Exemplo n.º 2
0
 /** Creates new form SmartGymEmployeePanel */
 public MainWindow() {
   initComponents();
   // Controladores
   clientController = new ClientJpaController(PersistenceUnit.getEntityManagerFactory());
   // Janela Auxiliares
   clientCrudWindow =
       new ClientCrudWindow(
           this, true, CrudWindowType.CREATE, PersistenceUnit.getEntityManagerFactory());
   paymentWindow =
       new PaymentWindow(this, true, PersistenceUnit.getEntityManagerFactory(), employee);
   financeClienWindow =
       new FinanceClientWindow(this, true, PersistenceUnit.getEntityManagerFactory(), employee);
   // Tabela da janela principal
   clienteTableFrame = new ClientTableFrame();
   clienteTableFrame.setVisible(true);
   tablePane.add(clienteTableFrame);
 }