1
0

Hauptmenü.java 5.1 KB

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