You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

chatView.java 3.0KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100
  1. /*
  2. * To change this license header, choose License Headers in Project Properties.
  3. * To change this template file, choose Tools | Templates
  4. * and open the template in the editor.
  5. */
  6. package netz.view;
  7. /**
  8. *
  9. * @author hd
  10. */
  11. public class chatView extends javax.swing.JFrame
  12. {
  13. /**
  14. * Creates new form chatView
  15. */
  16. public chatView()
  17. {
  18. initComponents();
  19. }
  20. /**
  21. * This method is called from within the constructor to initialize the form.
  22. * WARNING: Do NOT modify this code. The content of this method is always
  23. * regenerated by the Form Editor.
  24. */
  25. @SuppressWarnings("unchecked")
  26. // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
  27. private void initComponents()
  28. {
  29. setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);
  30. javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());
  31. getContentPane().setLayout(layout);
  32. layout.setHorizontalGroup(
  33. layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
  34. .addGap(0, 400, Short.MAX_VALUE)
  35. );
  36. layout.setVerticalGroup(
  37. layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
  38. .addGap(0, 300, Short.MAX_VALUE)
  39. );
  40. pack();
  41. }// </editor-fold>//GEN-END:initComponents
  42. /**
  43. * @param args the command line arguments
  44. */
  45. public static void main(String args[])
  46. {
  47. /* Set the Nimbus look and feel */
  48. //<editor-fold defaultstate="collapsed" desc=" Look and feel setting code (optional) ">
  49. /* If Nimbus (introduced in Java SE 6) is not available, stay with the default look and feel.
  50. * For details see http://download.oracle.com/javase/tutorial/uiswing/lookandfeel/plaf.html
  51. */
  52. try
  53. {
  54. for (javax.swing.UIManager.LookAndFeelInfo info : javax.swing.UIManager.getInstalledLookAndFeels())
  55. {
  56. if ("Nimbus".equals(info.getName()))
  57. {
  58. javax.swing.UIManager.setLookAndFeel(info.getClassName());
  59. break;
  60. }
  61. }
  62. }
  63. catch (ClassNotFoundException ex)
  64. {
  65. java.util.logging.Logger.getLogger(chatView.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);
  66. }
  67. catch (InstantiationException ex)
  68. {
  69. java.util.logging.Logger.getLogger(chatView.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);
  70. }
  71. catch (IllegalAccessException ex)
  72. {
  73. java.util.logging.Logger.getLogger(chatView.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);
  74. }
  75. catch (javax.swing.UnsupportedLookAndFeelException ex)
  76. {
  77. java.util.logging.Logger.getLogger(chatView.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);
  78. }
  79. //</editor-fold>
  80. /* Create and display the form */
  81. java.awt.EventQueue.invokeLater(new Runnable()
  82. {
  83. public void run()
  84. {
  85. new chatView().setVisible(true);
  86. }
  87. });
  88. }
  89. // Variables declaration - do not modify//GEN-BEGIN:variables
  90. // End of variables declaration//GEN-END:variables
  91. }