/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */
package gui;

/**
 *
 * @author Normal
 */
public class Hauptfenster extends javax.swing.JFrame
{
  /**
   * @return the txtcallUser
   */
  public javax.swing.JTextField getTxtcallUser()
  {
    return txtcallUser;
  }
  /**
   * @return the btnannehmen
   */
  public javax.swing.JButton getBtnannehmen()
  {
    return btnannehmen;
  }

  /**
   * @return the btnbeenden
   */
  public javax.swing.JButton getBtnbeenden()
  {
    return btnbeenden;
  }
  /**
   * @return the btn1
   */
  public javax.swing.JButton getBtn1()
  {
    return btn1;
  }

  /**
   * @return the btn2
   */
  public javax.swing.JButton getBtn2()
  {
    return btn2;
  }

  /**
   * @return the textField
   */

  /**
   * @param textField the textField to set
   */


  /**
   * @return the txtArea
   */
  public javax.swing.JTextArea getTxtArea()
  {
    return txtArea;
  }

  /**
   * @param txtArea the txtArea to set
   */
  public void setTxtArea(javax.swing.JTextArea txtArea)
  {
    this.txtArea = txtArea;
  }

  /**
   * Creates new form Hauptfenster
   */
  public Hauptfenster()
  {
    initComponents();
  }

  /**
   * This method is called from within the constructor to initialize the form.
   * WARNING: Do NOT modify this code. The content of this method is always
   * regenerated by the Form Editor.
   */
  @SuppressWarnings("unchecked")
  // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
  private void initComponents()
  {

    jScrollPane1 = new javax.swing.JScrollPane();
    txtArea = new javax.swing.JTextArea();
    jPanel1 = new javax.swing.JPanel();
    btn1 = new javax.swing.JButton();
    btn2 = new javax.swing.JButton();
    btnannehmen = new javax.swing.JButton();
    btnbeenden = new javax.swing.JButton();
    jPanel3 = new javax.swing.JPanel();
    jPanel4 = new javax.swing.JPanel();
    jLabel1 = new javax.swing.JLabel();
    jLabel2 = new javax.swing.JLabel();
    jLabel3 = new javax.swing.JLabel();
    jPanel2 = new javax.swing.JPanel();
    lblmyIP = new javax.swing.JLabel();
    txtServerIP = new javax.swing.JTextField();
    txtcallUser = new javax.swing.JTextField();

    setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);

    txtArea.setColumns(20);
    txtArea.setRows(5);
    jScrollPane1.setViewportView(txtArea);

    getContentPane().add(jScrollPane1, java.awt.BorderLayout.CENTER);

    btn1.setText("Register");
    btn1.setToolTipText("Registrierung am Server");
    jPanel1.add(btn1);

    btn2.setText("Anrufen");
    jPanel1.add(btn2);

    btnannehmen.setText("Annehmen");
    jPanel1.add(btnannehmen);

    btnbeenden.setText("Beenden");
    jPanel1.add(btnbeenden);

    getContentPane().add(jPanel1, java.awt.BorderLayout.PAGE_END);

    jPanel4.setLayout(new javax.swing.BoxLayout(jPanel4, javax.swing.BoxLayout.Y_AXIS));

    jLabel1.setText("My IP:");
    jLabel1.setFocusable(false);
    jLabel1.setInheritsPopupMenu(false);
    jPanel4.add(jLabel1);

    jLabel2.setText("Server IP:");
    jPanel4.add(jLabel2);

    jLabel3.setText("Call User:");
    jPanel4.add(jLabel3);

    jPanel3.add(jPanel4);

    jPanel2.setLayout(new javax.swing.BoxLayout(jPanel2, javax.swing.BoxLayout.Y_AXIS));

    lblmyIP.setText("xxx.xxx.xxx.xxx");
    lblmyIP.setToolTipText("");
    lblmyIP.setVerticalAlignment(javax.swing.SwingConstants.TOP);
    jPanel2.add(lblmyIP);

    txtServerIP.setText("xxx.xxx.xxx.xxx");
    jPanel2.add(txtServerIP);

    txtcallUser.setText("name");
    jPanel2.add(txtcallUser);

    jPanel3.add(jPanel2);

    getContentPane().add(jPanel3, java.awt.BorderLayout.PAGE_START);

    pack();
    setLocationRelativeTo(null);
  }// </editor-fold>//GEN-END:initComponents

  /**
   * @param args the command line arguments
   */
  public static void main(String args[])
  {
    /* Set the Nimbus look and feel */
    //<editor-fold defaultstate="collapsed" desc=" Look and feel setting code (optional) ">
    /* If Nimbus (introduced in Java SE 6) is not available, stay with the default look and feel.
         * For details see http://download.oracle.com/javase/tutorial/uiswing/lookandfeel/plaf.html 
     */
    try
    {
      for (javax.swing.UIManager.LookAndFeelInfo info : javax.swing.UIManager.getInstalledLookAndFeels())
      {
        if ("Nimbus".equals(info.getName()))
        {
          javax.swing.UIManager.setLookAndFeel(info.getClassName());
          break;
        }
      }
    }
    catch (ClassNotFoundException ex)
    {
      java.util.logging.Logger.getLogger(Hauptfenster.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);
    }
    catch (InstantiationException ex)
    {
      java.util.logging.Logger.getLogger(Hauptfenster.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);
    }
    catch (IllegalAccessException ex)
    {
      java.util.logging.Logger.getLogger(Hauptfenster.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);
    }
    catch (javax.swing.UnsupportedLookAndFeelException ex)
    {
      java.util.logging.Logger.getLogger(Hauptfenster.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);
    }
    //</editor-fold>

    /* Create and display the form */
    java.awt.EventQueue.invokeLater(new Runnable()
    {
      public void run()
      {
        new Hauptfenster().setVisible(true);
      }
    });
  }

  // Variables declaration - do not modify//GEN-BEGIN:variables
  private javax.swing.JButton btn1;
  private javax.swing.JButton btn2;
  private javax.swing.JButton btnannehmen;
  private javax.swing.JButton btnbeenden;
  private javax.swing.JLabel jLabel1;
  private javax.swing.JLabel jLabel2;
  private javax.swing.JLabel jLabel3;
  private javax.swing.JPanel jPanel1;
  private javax.swing.JPanel jPanel2;
  private javax.swing.JPanel jPanel3;
  private javax.swing.JPanel jPanel4;
  private javax.swing.JScrollPane jScrollPane1;
  private javax.swing.JLabel lblmyIP;
  private javax.swing.JTextArea txtArea;
  private javax.swing.JTextField txtServerIP;
  private javax.swing.JTextField txtcallUser;
  // End of variables declaration//GEN-END:variables

  /**
   * @return the lblmyIP
   */
  public javax.swing.JLabel getLblmyIP()
  {
    return lblmyIP;
  }

  /**
   * @param lblmyIP the lblmyIP to set
   */
  public void setLblmyIP(javax.swing.JLabel lblmyIP)
  {
    this.lblmyIP = lblmyIP;
  }

  /**
   * @return the txtServerIP
   */
  public javax.swing.JTextField getTxtServerIP()
  {
    return txtServerIP;
  }

  /**
   * @return the txtcallIP
   */
  public javax.swing.JTextField getTxtcallIP()
  {
    return txtcallUser;
  }
}
