Ejemplo n.º 1
0
  private void openAppView(AppUser user) {

    if (closeAppView()) {

      m_principalapp = new JPrincipalApp(this, user);

      // The user status notificator
      jPanel3.add(m_principalapp.getNotificator());
      jPanel3.revalidate();

      // The main panel
      m_jPanelContainer.add(m_principalapp, "_" + m_principalapp.getUser().getId());
      showView("_" + m_principalapp.getUser().getId());

      m_principalapp.activate();
    }
  }
Ejemplo n.º 2
0
  private void showLogin() {

    // Show Login
    listPeople();
    showView("login");

    // show welcome message
    printerStart();

    // keyboard listener activation
    inputtext = new StringBuffer();
    m_txtKeys.setText(null);
    java.awt.EventQueue.invokeLater(
        new Runnable() {
          public void run() {
            m_txtKeys.requestFocus();
          }
        });
  }