/*
* 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 kommunikation.view;
/**
*
* @author Alexander_Christoph
*/
public class ViewChat extends javax.swing.JFrame
{
/**
* @return the grafikViewChat
*/
public kommunikation.view.GrafikView getGrafikViewChat()
{
return grafikViewChat;
}
/**
* @return the btnConnect
*/
public javax.swing.JButton getBtnConnect()
{
return btnConnect;
}
/**
* @return the taChat
*/
public javax.swing.JTextArea getTaChat()
{
return taChat;
}
/**
* @return the tfIp
*/
public javax.swing.JTextField getTfIp()
{
return tfIp;
}
/**
* @return the tfMessage
*/
public javax.swing.JTextField getTfMessage()
{
return tfMessage;
}
/**
* @return the tfPort
*/
public javax.swing.JTextField getTfPort()
{
return tfPort;
}
/**
* Creates new form ViewServer
*/
public ViewChat()
{
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()
{
tfMessage = new javax.swing.JTextField();
pnlConnect = new javax.swing.JPanel();
lblPort = new javax.swing.JLabel();
tfPort = new javax.swing.JTextField();
lblIp = new javax.swing.JLabel();
tfIp = new javax.swing.JTextField();
btnConnect = new javax.swing.JButton();
pnlChat = new javax.swing.JPanel();
jScrollPane2 = new javax.swing.JScrollPane();
taChat = new javax.swing.JTextArea();
grafikViewChat = new kommunikation.view.GrafikView();
setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);
setTitle("Client");
tfMessage.setText("Nachricht");
tfMessage.setToolTipText("");
getContentPane().add(tfMessage, java.awt.BorderLayout.PAGE_END);
lblPort.setText("PORT");
pnlConnect.add(lblPort);
tfPort.setColumns(6);
tfPort.setText("port");
pnlConnect.add(tfPort);
lblIp.setText("IP_ADRESSE");
pnlConnect.add(lblIp);
tfIp.setColumns(15);
tfIp.setText("ip-Adresse");
pnlConnect.add(tfIp);
btnConnect.setText("Connect");
pnlConnect.add(btnConnect);
getContentPane().add(pnlConnect, java.awt.BorderLayout.PAGE_START);
pnlChat.setLayout(new java.awt.GridLayout(0, 2));
taChat.setColumns(20);
taChat.setRows(5);
jScrollPane2.setViewportView(taChat);
pnlChat.add(jScrollPane2);
pnlChat.add(grafikViewChat);
getContentPane().add(pnlChat, java.awt.BorderLayout.CENTER);
setSize(new java.awt.Dimension(805, 631));
setLocationRelativeTo(null);
}// //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(ViewChat.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);
}
catch (InstantiationException ex)
{
java.util.logging.Logger.getLogger(ViewChat.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);
}
catch (IllegalAccessException ex)
{
java.util.logging.Logger.getLogger(ViewChat.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);
}
catch (javax.swing.UnsupportedLookAndFeelException ex)
{
java.util.logging.Logger.getLogger(ViewChat.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 ViewChat().setVisible(true);
}
});
}
// Variables declaration - do not modify//GEN-BEGIN:variables
private javax.swing.JButton btnConnect;
private kommunikation.view.GrafikView grafikViewChat;
private javax.swing.JScrollPane jScrollPane2;
private javax.swing.JLabel lblIp;
private javax.swing.JLabel lblPort;
private javax.swing.JPanel pnlChat;
private javax.swing.JPanel pnlConnect;
private javax.swing.JTextArea taChat;
private javax.swing.JTextField tfIp;
private javax.swing.JTextField tfMessage;
private javax.swing.JTextField tfPort;
// End of variables declaration//GEN-END:variables
}