123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171 |
- /*
- * 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 btn1
- */
- public javax.swing.JButton getBtn1()
- {
- return btn1;
- }
-
- /**
- * @return the btn2
- */
- public javax.swing.JButton getBtn2()
- {
- return btn2;
- }
-
- /**
- * @return the textField
- */
- public javax.swing.JTextField getTextField()
- {
- return textField;
- }
-
- /**
- * @param textField the textField to set
- */
- public void setTextField(javax.swing.JTextField textField)
- {
- this.textField = textField;
- }
-
- /**
- * @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();
- textField = new javax.swing.JTextField();
- jPanel1 = new javax.swing.JPanel();
- btn1 = new javax.swing.JButton();
- btn2 = new javax.swing.JButton();
- jButton1 = new javax.swing.JButton();
-
- setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);
-
- txtArea.setColumns(20);
- txtArea.setRows(5);
- jScrollPane1.setViewportView(txtArea);
-
- getContentPane().add(jScrollPane1, java.awt.BorderLayout.CENTER);
- getContentPane().add(textField, java.awt.BorderLayout.PAGE_START);
-
- btn1.setText("Register");
- btn1.setToolTipText("Registrierung am Server");
- jPanel1.add(btn1);
-
- btn2.setText("Anrufen");
- jPanel1.add(btn2);
-
- jButton1.setText("Annehmen");
- jPanel1.add(jButton1);
-
- getContentPane().add(jPanel1, java.awt.BorderLayout.PAGE_END);
-
- 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 jButton1;
- private javax.swing.JPanel jPanel1;
- private javax.swing.JScrollPane jScrollPane1;
- private javax.swing.JTextField textField;
- private javax.swing.JTextArea txtArea;
- // End of variables declaration//GEN-END:variables
- }
|