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.

GrafikFrame.java 3.0KB

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