123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233 |
- /*
- * To change this template, choose Tools | Templates
- * and open the template in the editor.
- */
- /**
- *
- * @author tgoerner
- */
- public class MenuLayout extends javax.swing.JFrame {
- /**
- * Creates new form MenuLayout
- */
- public MenuLayout() {
- initComponents();
- }
- /**
- * This method is called from within the constructor to initialize the form.
- * WARNING: Do NOT modify this code. The content of this method is always
- * regenerated by the Form Editor.
- */
- @SuppressWarnings("unchecked")
- // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
- private void initComponents() {
- jMenuItem2 = new javax.swing.JMenuItem();
- jButton1 = new javax.swing.JButton();
- jButton2 = new javax.swing.JButton();
- jButton3 = new javax.swing.JButton();
- jPanel1 = new javax.swing.JPanel();
- jLabel2 = new javax.swing.JLabel();
- jLabel3 = new javax.swing.JLabel();
- jMenuBar1 = new javax.swing.JMenuBar();
- jMenu1 = new javax.swing.JMenu();
- jMenuItem1 = new javax.swing.JMenuItem();
- jMenuItem3 = new javax.swing.JMenuItem();
- jMenuItem6 = new javax.swing.JMenuItem();
- jMenu2 = new javax.swing.JMenu();
- jMenuItem4 = new javax.swing.JMenuItem();
- jMenu3 = new javax.swing.JMenu();
- jMenuItem9 = new javax.swing.JMenuItem();
- jMenuItem10 = new javax.swing.JMenuItem();
- jMenuItem11 = new javax.swing.JMenuItem();
- jMenuItem12 = new javax.swing.JMenuItem();
- jMenu4 = new javax.swing.JMenu();
- jMenuItem7 = new javax.swing.JMenuItem();
- jMenuItem8 = new javax.swing.JMenuItem();
- jMenuItem2.setText("jMenuItem2");
- setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);
- setTitle("MES");
- jButton1.setText("jButton1");
- jButton2.setText("jButton2");
- jButton3.setText("jButton3");
- jPanel1.setBorder(javax.swing.BorderFactory.createTitledBorder("Inhalt"));
- javax.swing.GroupLayout jPanel1Layout = new javax.swing.GroupLayout(jPanel1);
- jPanel1.setLayout(jPanel1Layout);
- jPanel1Layout.setHorizontalGroup(
- jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
- .addGap(0, 627, Short.MAX_VALUE)
- );
- jPanel1Layout.setVerticalGroup(
- jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
- .addGap(0, 447, Short.MAX_VALUE)
- );
- jLabel2.setText(">>");
- jLabel3.setText(">>");
- jMenu1.setText("Datei");
- jMenuItem1.setText("Optionen");
- jMenu1.add(jMenuItem1);
- jMenuItem3.setText("Logout");
- jMenu1.add(jMenuItem3);
- jMenuItem6.setText("Beenden");
- jMenu1.add(jMenuItem6);
- jMenuBar1.add(jMenu1);
- jMenu2.setText("Aktionen");
- jMenuItem4.setText("<Ändert sich je anch Brreich");
- jMenu2.add(jMenuItem4);
- jMenuBar1.add(jMenu2);
- jMenu3.setText("GoTo");
- jMenuItem9.setText("Materialverwaltung");
- jMenu3.add(jMenuItem9);
- jMenuItem10.setText("Bestellvorschläge");
- jMenu3.add(jMenuItem10);
- jMenuItem11.setText("Planung");
- jMenuItem11.addActionListener(new java.awt.event.ActionListener() {
- public void actionPerformed(java.awt.event.ActionEvent evt) {
- jMenuItem11ActionPerformed(evt);
- }
- });
- jMenu3.add(jMenuItem11);
- jMenuItem12.setText("Hauptmenü");
- jMenu3.add(jMenuItem12);
- jMenuBar1.add(jMenu3);
- jMenu4.setText("?");
- jMenuItem7.setText("Support");
- jMenu4.add(jMenuItem7);
- jMenuItem8.setText("About");
- jMenu4.add(jMenuItem8);
- jMenuBar1.add(jMenu4);
- setJMenuBar(jMenuBar1);
- javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());
- getContentPane().setLayout(layout);
- layout.setHorizontalGroup(
- layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
- .addGroup(layout.createSequentialGroup()
- .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
- .addGroup(layout.createSequentialGroup()
- .addContainerGap()
- .addComponent(jPanel1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
- .addGroup(layout.createSequentialGroup()
- .addGap(35, 35, 35)
- .addComponent(jButton1)
- .addGap(18, 18, 18)
- .addComponent(jLabel2)
- .addGap(18, 18, 18)
- .addComponent(jButton2)
- .addGap(29, 29, 29)
- .addComponent(jLabel3)
- .addGap(18, 18, 18)
- .addComponent(jButton3)))
- .addContainerGap(28, Short.MAX_VALUE))
- );
- layout.setVerticalGroup(
- layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
- .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup()
- .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
- .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
- .addComponent(jButton1)
- .addComponent(jButton2)
- .addComponent(jButton3)
- .addComponent(jLabel2)
- .addComponent(jLabel3))
- .addGap(34, 34, 34)
- .addComponent(jPanel1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
- );
- pack();
- }// </editor-fold>//GEN-END:initComponents
- private void jMenuItem11ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jMenuItem11ActionPerformed
- // TODO add your handling code here:
- }//GEN-LAST:event_jMenuItem11ActionPerformed
- /**
- * @param args the command line arguments
- */
- public static void main(String args[]) {
- /* Set the Nimbus look and feel */
- //<editor-fold defaultstate="collapsed" desc=" Look and feel setting code (optional) ">
- /* If Nimbus (introduced in Java SE 6) is not available, stay with the default look and feel.
- * For details see http://download.oracle.com/javase/tutorial/uiswing/lookandfeel/plaf.html
- */
- try {
- for (javax.swing.UIManager.LookAndFeelInfo info : javax.swing.UIManager.getInstalledLookAndFeels()) {
- if ("Nimbus".equals(info.getName())) {
- javax.swing.UIManager.setLookAndFeel(info.getClassName());
- break;
- }
- }
- } catch (ClassNotFoundException ex) {
- java.util.logging.Logger.getLogger(MenuLayout.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);
- } catch (InstantiationException ex) {
- java.util.logging.Logger.getLogger(MenuLayout.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);
- } catch (IllegalAccessException ex) {
- java.util.logging.Logger.getLogger(MenuLayout.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);
- } catch (javax.swing.UnsupportedLookAndFeelException ex) {
- java.util.logging.Logger.getLogger(MenuLayout.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);
- }
- //</editor-fold>
- /* Create and display the form */
- java.awt.EventQueue.invokeLater(new Runnable() {
- public void run() {
- new MenuLayout().setVisible(true);
- }
- });
- }
- // Variables declaration - do not modify//GEN-BEGIN:variables
- private javax.swing.JButton jButton1;
- private javax.swing.JButton jButton2;
- private javax.swing.JButton jButton3;
- private javax.swing.JLabel jLabel2;
- private javax.swing.JLabel jLabel3;
- private javax.swing.JMenu jMenu1;
- private javax.swing.JMenu jMenu2;
- private javax.swing.JMenu jMenu3;
- private javax.swing.JMenu jMenu4;
- private javax.swing.JMenuBar jMenuBar1;
- private javax.swing.JMenuItem jMenuItem1;
- private javax.swing.JMenuItem jMenuItem10;
- private javax.swing.JMenuItem jMenuItem11;
- private javax.swing.JMenuItem jMenuItem12;
- private javax.swing.JMenuItem jMenuItem2;
- private javax.swing.JMenuItem jMenuItem3;
- private javax.swing.JMenuItem jMenuItem4;
- private javax.swing.JMenuItem jMenuItem6;
- private javax.swing.JMenuItem jMenuItem7;
- private javax.swing.JMenuItem jMenuItem8;
- private javax.swing.JMenuItem jMenuItem9;
- private javax.swing.JPanel jPanel1;
- // End of variables declaration//GEN-END:variables
- }
|