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

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