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.

SubscriberView.java 3.7KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135
  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 subscriber;
  7. /**
  8. *
  9. * @author le
  10. */
  11. public class SubscriberView extends javax.swing.JFrame
  12. {
  13. /**
  14. * @return the btnStart
  15. */
  16. public javax.swing.JButton getBtnStart()
  17. {
  18. return btnStart;
  19. }
  20. /**
  21. * @return the btnStop
  22. */
  23. public javax.swing.JButton getBtnStop()
  24. {
  25. return btnStop;
  26. }
  27. /**
  28. * @return the lblZahl
  29. */
  30. public javax.swing.JLabel getLblZahl()
  31. {
  32. return lblZahl;
  33. }
  34. /**
  35. * Creates new form SubscriberView
  36. */
  37. public SubscriberView()
  38. {
  39. initComponents();
  40. }
  41. /**
  42. * This method is called from within the constructor to initialize the form.
  43. * WARNING: Do NOT modify this code. The content of this method is always
  44. * regenerated by the Form Editor.
  45. */
  46. @SuppressWarnings("unchecked")
  47. // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
  48. private void initComponents()
  49. {
  50. jPanel1 = new javax.swing.JPanel();
  51. btnStart = new javax.swing.JButton();
  52. btnStop = new javax.swing.JButton();
  53. lblZahl = new javax.swing.JLabel();
  54. setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);
  55. btnStart.setText("Start");
  56. jPanel1.add(btnStart);
  57. btnStop.setText("Stopp");
  58. jPanel1.add(btnStop);
  59. getContentPane().add(jPanel1, java.awt.BorderLayout.PAGE_START);
  60. lblZahl.setFont(new java.awt.Font("Ubuntu", 0, 60)); // NOI18N
  61. lblZahl.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);
  62. lblZahl.setText("1");
  63. getContentPane().add(lblZahl, java.awt.BorderLayout.CENTER);
  64. setSize(new java.awt.Dimension(365, 294));
  65. setLocationRelativeTo(null);
  66. }// </editor-fold>//GEN-END:initComponents
  67. /**
  68. * @param args the command line arguments
  69. */
  70. public static void main(String args[])
  71. {
  72. /* Set the Nimbus look and feel */
  73. //<editor-fold defaultstate="collapsed" desc=" Look and feel setting code (optional) ">
  74. /* If Nimbus (introduced in Java SE 6) is not available, stay with the default look and feel.
  75. * For details see http://download.oracle.com/javase/tutorial/uiswing/lookandfeel/plaf.html
  76. */
  77. try
  78. {
  79. for (javax.swing.UIManager.LookAndFeelInfo info : javax.swing.UIManager.getInstalledLookAndFeels())
  80. {
  81. if ("Nimbus".equals(info.getName()))
  82. {
  83. javax.swing.UIManager.setLookAndFeel(info.getClassName());
  84. break;
  85. }
  86. }
  87. }
  88. catch (ClassNotFoundException ex)
  89. {
  90. java.util.logging.Logger.getLogger(SubscriberView.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);
  91. }
  92. catch (InstantiationException ex)
  93. {
  94. java.util.logging.Logger.getLogger(SubscriberView.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);
  95. }
  96. catch (IllegalAccessException ex)
  97. {
  98. java.util.logging.Logger.getLogger(SubscriberView.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);
  99. }
  100. catch (javax.swing.UnsupportedLookAndFeelException ex)
  101. {
  102. java.util.logging.Logger.getLogger(SubscriberView.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);
  103. }
  104. //</editor-fold>
  105. /* Create and display the form */
  106. java.awt.EventQueue.invokeLater(new Runnable()
  107. {
  108. public void run()
  109. {
  110. new SubscriberView().setVisible(true);
  111. }
  112. });
  113. }
  114. // Variables declaration - do not modify//GEN-BEGIN:variables
  115. private javax.swing.JButton btnStart;
  116. private javax.swing.JButton btnStop;
  117. private javax.swing.JPanel jPanel1;
  118. private javax.swing.JLabel lblZahl;
  119. // End of variables declaration//GEN-END:variables
  120. }