1
0

MenuLayout.java 8.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233
  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 MenuLayout extends javax.swing.JFrame {
  10. /**
  11. * Creates new form MenuLayout
  12. */
  13. public MenuLayout() {
  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. jMenuItem2 = new javax.swing.JMenuItem();
  25. jButton1 = new javax.swing.JButton();
  26. jButton2 = new javax.swing.JButton();
  27. jButton3 = new javax.swing.JButton();
  28. jPanel1 = new javax.swing.JPanel();
  29. jLabel2 = new javax.swing.JLabel();
  30. jLabel3 = new javax.swing.JLabel();
  31. jMenuBar1 = new javax.swing.JMenuBar();
  32. jMenu1 = new javax.swing.JMenu();
  33. jMenuItem1 = new javax.swing.JMenuItem();
  34. jMenuItem3 = new javax.swing.JMenuItem();
  35. jMenuItem6 = new javax.swing.JMenuItem();
  36. jMenu2 = new javax.swing.JMenu();
  37. jMenuItem4 = new javax.swing.JMenuItem();
  38. jMenu3 = new javax.swing.JMenu();
  39. jMenuItem9 = new javax.swing.JMenuItem();
  40. jMenuItem10 = new javax.swing.JMenuItem();
  41. jMenuItem11 = new javax.swing.JMenuItem();
  42. jMenuItem12 = new javax.swing.JMenuItem();
  43. jMenu4 = new javax.swing.JMenu();
  44. jMenuItem7 = new javax.swing.JMenuItem();
  45. jMenuItem8 = new javax.swing.JMenuItem();
  46. jMenuItem2.setText("jMenuItem2");
  47. setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);
  48. setTitle("MES");
  49. jButton1.setText("jButton1");
  50. jButton2.setText("jButton2");
  51. jButton3.setText("jButton3");
  52. jPanel1.setBorder(javax.swing.BorderFactory.createTitledBorder("Inhalt"));
  53. javax.swing.GroupLayout jPanel1Layout = new javax.swing.GroupLayout(jPanel1);
  54. jPanel1.setLayout(jPanel1Layout);
  55. jPanel1Layout.setHorizontalGroup(
  56. jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
  57. .addGap(0, 627, Short.MAX_VALUE)
  58. );
  59. jPanel1Layout.setVerticalGroup(
  60. jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
  61. .addGap(0, 447, Short.MAX_VALUE)
  62. );
  63. jLabel2.setText(">>");
  64. jLabel3.setText(">>");
  65. jMenu1.setText("Datei");
  66. jMenuItem1.setText("Optionen");
  67. jMenu1.add(jMenuItem1);
  68. jMenuItem3.setText("Logout");
  69. jMenu1.add(jMenuItem3);
  70. jMenuItem6.setText("Beenden");
  71. jMenu1.add(jMenuItem6);
  72. jMenuBar1.add(jMenu1);
  73. jMenu2.setText("Aktionen");
  74. jMenuItem4.setText("<Ändert sich je anch Brreich");
  75. jMenu2.add(jMenuItem4);
  76. jMenuBar1.add(jMenu2);
  77. jMenu3.setText("GoTo");
  78. jMenuItem9.setText("Materialverwaltung");
  79. jMenu3.add(jMenuItem9);
  80. jMenuItem10.setText("Bestellvorschläge");
  81. jMenu3.add(jMenuItem10);
  82. jMenuItem11.setText("Planung");
  83. jMenuItem11.addActionListener(new java.awt.event.ActionListener() {
  84. public void actionPerformed(java.awt.event.ActionEvent evt) {
  85. jMenuItem11ActionPerformed(evt);
  86. }
  87. });
  88. jMenu3.add(jMenuItem11);
  89. jMenuItem12.setText("Hauptmenü");
  90. jMenu3.add(jMenuItem12);
  91. jMenuBar1.add(jMenu3);
  92. jMenu4.setText("?");
  93. jMenuItem7.setText("Support");
  94. jMenu4.add(jMenuItem7);
  95. jMenuItem8.setText("About");
  96. jMenu4.add(jMenuItem8);
  97. jMenuBar1.add(jMenu4);
  98. setJMenuBar(jMenuBar1);
  99. javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());
  100. getContentPane().setLayout(layout);
  101. layout.setHorizontalGroup(
  102. layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
  103. .addGroup(layout.createSequentialGroup()
  104. .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
  105. .addGroup(layout.createSequentialGroup()
  106. .addContainerGap()
  107. .addComponent(jPanel1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
  108. .addGroup(layout.createSequentialGroup()
  109. .addGap(35, 35, 35)
  110. .addComponent(jButton1)
  111. .addGap(18, 18, 18)
  112. .addComponent(jLabel2)
  113. .addGap(18, 18, 18)
  114. .addComponent(jButton2)
  115. .addGap(29, 29, 29)
  116. .addComponent(jLabel3)
  117. .addGap(18, 18, 18)
  118. .addComponent(jButton3)))
  119. .addContainerGap(28, Short.MAX_VALUE))
  120. );
  121. layout.setVerticalGroup(
  122. layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
  123. .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup()
  124. .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
  125. .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
  126. .addComponent(jButton1)
  127. .addComponent(jButton2)
  128. .addComponent(jButton3)
  129. .addComponent(jLabel2)
  130. .addComponent(jLabel3))
  131. .addGap(34, 34, 34)
  132. .addComponent(jPanel1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
  133. );
  134. pack();
  135. }// </editor-fold>//GEN-END:initComponents
  136. private void jMenuItem11ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jMenuItem11ActionPerformed
  137. // TODO add your handling code here:
  138. }//GEN-LAST:event_jMenuItem11ActionPerformed
  139. /**
  140. * @param args the command line arguments
  141. */
  142. public static void main(String args[]) {
  143. /* Set the Nimbus look and feel */
  144. //<editor-fold defaultstate="collapsed" desc=" Look and feel setting code (optional) ">
  145. /* If Nimbus (introduced in Java SE 6) is not available, stay with the default look and feel.
  146. * For details see http://download.oracle.com/javase/tutorial/uiswing/lookandfeel/plaf.html
  147. */
  148. try {
  149. for (javax.swing.UIManager.LookAndFeelInfo info : javax.swing.UIManager.getInstalledLookAndFeels()) {
  150. if ("Nimbus".equals(info.getName())) {
  151. javax.swing.UIManager.setLookAndFeel(info.getClassName());
  152. break;
  153. }
  154. }
  155. } catch (ClassNotFoundException ex) {
  156. java.util.logging.Logger.getLogger(MenuLayout.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);
  157. } catch (InstantiationException ex) {
  158. java.util.logging.Logger.getLogger(MenuLayout.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);
  159. } catch (IllegalAccessException ex) {
  160. java.util.logging.Logger.getLogger(MenuLayout.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);
  161. } catch (javax.swing.UnsupportedLookAndFeelException ex) {
  162. java.util.logging.Logger.getLogger(MenuLayout.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);
  163. }
  164. //</editor-fold>
  165. /* Create and display the form */
  166. java.awt.EventQueue.invokeLater(new Runnable() {
  167. public void run() {
  168. new MenuLayout().setVisible(true);
  169. }
  170. });
  171. }
  172. // Variables declaration - do not modify//GEN-BEGIN:variables
  173. private javax.swing.JButton jButton1;
  174. private javax.swing.JButton jButton2;
  175. private javax.swing.JButton jButton3;
  176. private javax.swing.JLabel jLabel2;
  177. private javax.swing.JLabel jLabel3;
  178. private javax.swing.JMenu jMenu1;
  179. private javax.swing.JMenu jMenu2;
  180. private javax.swing.JMenu jMenu3;
  181. private javax.swing.JMenu jMenu4;
  182. private javax.swing.JMenuBar jMenuBar1;
  183. private javax.swing.JMenuItem jMenuItem1;
  184. private javax.swing.JMenuItem jMenuItem10;
  185. private javax.swing.JMenuItem jMenuItem11;
  186. private javax.swing.JMenuItem jMenuItem12;
  187. private javax.swing.JMenuItem jMenuItem2;
  188. private javax.swing.JMenuItem jMenuItem3;
  189. private javax.swing.JMenuItem jMenuItem4;
  190. private javax.swing.JMenuItem jMenuItem6;
  191. private javax.swing.JMenuItem jMenuItem7;
  192. private javax.swing.JMenuItem jMenuItem8;
  193. private javax.swing.JMenuItem jMenuItem9;
  194. private javax.swing.JPanel jPanel1;
  195. // End of variables declaration//GEN-END:variables
  196. }