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.

view.java 5.1KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120
  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 graph;
  7. /**
  8. *
  9. * @author christophal67389
  10. */
  11. public class view extends javax.swing.JFrame {
  12. /**
  13. * Creates new form view
  14. */
  15. public view() {
  16. initComponents();
  17. }
  18. /**
  19. * This method is called from within the constructor to initialize the form.
  20. * WARNING: Do NOT modify this code. The content of this method is always
  21. * regenerated by the Form Editor.
  22. */
  23. @SuppressWarnings("unchecked")
  24. // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
  25. private void initComponents() {
  26. guiChart1 = new graph.GuiChart();
  27. jPanel1 = new javax.swing.JPanel();
  28. guiChart2 = new graph.GuiChart();
  29. javax.swing.GroupLayout guiChart1Layout = new javax.swing.GroupLayout(guiChart1);
  30. guiChart1.setLayout(guiChart1Layout);
  31. guiChart1Layout.setHorizontalGroup(
  32. guiChart1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
  33. .addGap(0, 375, Short.MAX_VALUE)
  34. );
  35. guiChart1Layout.setVerticalGroup(
  36. guiChart1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
  37. .addGap(0, 275, Short.MAX_VALUE)
  38. );
  39. setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);
  40. javax.swing.GroupLayout guiChart2Layout = new javax.swing.GroupLayout(guiChart2);
  41. guiChart2.setLayout(guiChart2Layout);
  42. guiChart2Layout.setHorizontalGroup(
  43. guiChart2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
  44. .addGap(0, 680, Short.MAX_VALUE)
  45. );
  46. guiChart2Layout.setVerticalGroup(
  47. guiChart2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
  48. .addGap(0, 420, Short.MAX_VALUE)
  49. );
  50. javax.swing.GroupLayout jPanel1Layout = new javax.swing.GroupLayout(jPanel1);
  51. jPanel1.setLayout(jPanel1Layout);
  52. jPanel1Layout.setHorizontalGroup(
  53. jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
  54. .addGroup(jPanel1Layout.createSequentialGroup()
  55. .addContainerGap()
  56. .addComponent(guiChart2, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
  57. .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
  58. );
  59. jPanel1Layout.setVerticalGroup(
  60. jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
  61. .addGroup(jPanel1Layout.createSequentialGroup()
  62. .addContainerGap()
  63. .addComponent(guiChart2, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
  64. .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
  65. );
  66. getContentPane().add(jPanel1, java.awt.BorderLayout.CENTER);
  67. pack();
  68. }// </editor-fold>//GEN-END:initComponents
  69. /**
  70. * @param args the command line arguments
  71. */
  72. public static void main(String args[]) {
  73. /* Set the Nimbus look and feel */
  74. //<editor-fold defaultstate="collapsed" desc=" Look and feel setting code (optional) ">
  75. /* If Nimbus (introduced in Java SE 6) is not available, stay with the default look and feel.
  76. * For details see http://download.oracle.com/javase/tutorial/uiswing/lookandfeel/plaf.html
  77. */
  78. try {
  79. for (javax.swing.UIManager.LookAndFeelInfo info : javax.swing.UIManager.getInstalledLookAndFeels()) {
  80. if ("Nimbus".equals(info.getName())) {
  81. javax.swing.UIManager.setLookAndFeel(info.getClassName());
  82. break;
  83. }
  84. }
  85. } catch (ClassNotFoundException ex) {
  86. java.util.logging.Logger.getLogger(view.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);
  87. } catch (InstantiationException ex) {
  88. java.util.logging.Logger.getLogger(view.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);
  89. } catch (IllegalAccessException ex) {
  90. java.util.logging.Logger.getLogger(view.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);
  91. } catch (javax.swing.UnsupportedLookAndFeelException ex) {
  92. java.util.logging.Logger.getLogger(view.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);
  93. }
  94. //</editor-fold>
  95. /* Create and display the form */
  96. java.awt.EventQueue.invokeLater(new Runnable() {
  97. public void run() {
  98. new view().setVisible(true);
  99. }
  100. });
  101. }
  102. // Variables declaration - do not modify//GEN-BEGIN:variables
  103. private graph.GuiChart guiChart1;
  104. private graph.GuiChart guiChart2;
  105. private javax.swing.JPanel jPanel1;
  106. // End of variables declaration//GEN-END:variables
  107. }