/* * 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 view; /** * * @author Apollo */ public class ChatView extends javax.swing.JFrame { /** * @return the btnverbinden */ public javax.swing.JButton getBtnverbinden() { return btnverbinden; } /** * @return the txteigeneIP */ public javax.swing.JTextField getTxteigeneIP() { return txteigeneIP; } /** * @return the txtzielIP */ public javax.swing.JTextField getTxtzielIP() { return txtzielIP; } /** * @param chatanzeige the chatanzeige to set */ public void setChatanzeige(javax.swing.JTextArea chatanzeige) { this.chatanzeige = chatanzeige; } /** * @return the chatanzeige */ public javax.swing.JTextArea getChatanzeige() { return chatanzeige; } /** * @return the inputField */ public javax.swing.JTextField getInputField() { return inputField; } /** * Creates new form clientview */ public ChatView() { 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") // //GEN-BEGIN:initComponents private void initComponents() { jPanel1 = new javax.swing.JPanel(); jScrollPane3 = new javax.swing.JScrollPane(); chatanzeige = new javax.swing.JTextArea(); inputField = new javax.swing.JTextField(); jPanel2 = new javax.swing.JPanel(); txteigeneIP = new javax.swing.JTextField(); txtzielIP = new javax.swing.JTextField(); btnverbinden = new javax.swing.JButton(); jMenuBar1 = new javax.swing.JMenuBar(); jMenu1 = new javax.swing.JMenu(); jMenu2 = new javax.swing.JMenu(); setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE); jPanel1.setLayout(new java.awt.BorderLayout()); chatanzeige.setEditable(false); chatanzeige.setColumns(20); chatanzeige.setRows(5); jScrollPane3.setViewportView(chatanzeige); jPanel1.add(jScrollPane3, java.awt.BorderLayout.CENTER); jPanel1.add(inputField, java.awt.BorderLayout.PAGE_END); jPanel2.setMinimumSize(new java.awt.Dimension(0, 0)); txteigeneIP.setEditable(false); txteigeneIP.setMinimumSize(new java.awt.Dimension(200, 26)); jPanel2.add(txteigeneIP); txtzielIP.setText("192.168.0.1"); jPanel2.add(txtzielIP); btnverbinden.setText("Verbinden"); jPanel2.add(btnverbinden); jPanel1.add(jPanel2, java.awt.BorderLayout.PAGE_START); getContentPane().add(jPanel1, java.awt.BorderLayout.CENTER); jMenu1.setText("File"); jMenuBar1.add(jMenu1); jMenu2.setText("Edit"); jMenuBar1.add(jMenu2); setJMenuBar(jMenuBar1); pack(); }// //GEN-END:initComponents /** * @param args the command line arguments */ public static void main(String args[]) { /* Set the Nimbus look and feel */ // /* 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(ChatView.class.getName()).log(java.util.logging.Level.SEVERE, null, ex); } catch (InstantiationException ex) { java.util.logging.Logger.getLogger(ChatView.class.getName()).log(java.util.logging.Level.SEVERE, null, ex); } catch (IllegalAccessException ex) { java.util.logging.Logger.getLogger(ChatView.class.getName()).log(java.util.logging.Level.SEVERE, null, ex); } catch (javax.swing.UnsupportedLookAndFeelException ex) { java.util.logging.Logger.getLogger(ChatView.class.getName()).log(java.util.logging.Level.SEVERE, null, ex); } // // // // /* Create and display the form */ java.awt.EventQueue.invokeLater(new Runnable() { public void run() { new ChatView().setVisible(true); } }); } // Variables declaration - do not modify//GEN-BEGIN:variables private javax.swing.JButton btnverbinden; private javax.swing.JTextArea chatanzeige; private javax.swing.JTextField inputField; private javax.swing.JMenu jMenu1; private javax.swing.JMenu jMenu2; private javax.swing.JMenuBar jMenuBar1; private javax.swing.JPanel jPanel1; private javax.swing.JPanel jPanel2; private javax.swing.JScrollPane jScrollPane3; private javax.swing.JTextField txteigeneIP; private javax.swing.JTextField txtzielIP; // End of variables declaration//GEN-END:variables }