|
|
@@ -32,18 +32,59 @@ public class GrafikFrame extends javax.swing.JFrame |
|
|
|
* regenerated by the Form Editor. |
|
|
|
*/ |
|
|
|
@SuppressWarnings("unchecked") |
|
|
|
// <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents |
|
|
|
private void initComponents() |
|
|
|
{ |
|
|
|
// <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents |
|
|
|
private void initComponents() { |
|
|
|
|
|
|
|
gZeichenflaeche = new mvcgrafik.view.GrafikView(); |
|
|
|
jMenuBar1 = new javax.swing.JMenuBar(); |
|
|
|
jMenu1 = new javax.swing.JMenu(); |
|
|
|
miSave = new javax.swing.JMenuItem(); |
|
|
|
miOpen = new javax.swing.JMenuItem(); |
|
|
|
jMenu2 = new javax.swing.JMenu(); |
|
|
|
|
|
|
|
setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE); |
|
|
|
|
|
|
|
gZeichenflaeche.setLayout(new java.awt.BorderLayout()); |
|
|
|
getContentPane().add(gZeichenflaeche, java.awt.BorderLayout.CENTER); |
|
|
|
|
|
|
|
jMenu1.setText("File"); |
|
|
|
|
|
|
|
miSave.setAccelerator(javax.swing.KeyStroke.getKeyStroke(java.awt.event.KeyEvent.VK_S, java.awt.event.InputEvent.CTRL_DOWN_MASK)); |
|
|
|
miSave.setText("Speichern"); |
|
|
|
miSave.addActionListener(new java.awt.event.ActionListener() { |
|
|
|
public void actionPerformed(java.awt.event.ActionEvent evt) { |
|
|
|
miSaveActionPerformed(evt); |
|
|
|
} |
|
|
|
}); |
|
|
|
jMenu1.add(miSave); |
|
|
|
|
|
|
|
miOpen.setAccelerator(javax.swing.KeyStroke.getKeyStroke(java.awt.event.KeyEvent.VK_O, java.awt.event.InputEvent.CTRL_DOWN_MASK)); |
|
|
|
miOpen.setText("Öffnen"); |
|
|
|
miOpen.addActionListener(new java.awt.event.ActionListener() { |
|
|
|
public void actionPerformed(java.awt.event.ActionEvent evt) { |
|
|
|
miOpenActionPerformed(evt); |
|
|
|
} |
|
|
|
}); |
|
|
|
jMenu1.add(miOpen); |
|
|
|
|
|
|
|
jMenuBar1.add(jMenu1); |
|
|
|
|
|
|
|
gZeichenflaeche = new mvcgrafik.view.GrafikView(); |
|
|
|
jMenu2.setText("Edit"); |
|
|
|
jMenuBar1.add(jMenu2); |
|
|
|
|
|
|
|
setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE); |
|
|
|
getContentPane().add(gZeichenflaeche, java.awt.BorderLayout.CENTER); |
|
|
|
setJMenuBar(jMenuBar1); |
|
|
|
|
|
|
|
setSize(new java.awt.Dimension(540, 412)); |
|
|
|
setLocationRelativeTo(null); |
|
|
|
}// </editor-fold>//GEN-END:initComponents |
|
|
|
setSize(new java.awt.Dimension(540, 412)); |
|
|
|
setLocationRelativeTo(null); |
|
|
|
}// </editor-fold>//GEN-END:initComponents |
|
|
|
|
|
|
|
private void miSaveActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_miSaveActionPerformed |
|
|
|
// TODO add your handling code here: |
|
|
|
}//GEN-LAST:event_miSaveActionPerformed |
|
|
|
|
|
|
|
private void miOpenActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_miOpenActionPerformed |
|
|
|
// TODO add your handling code here: |
|
|
|
}//GEN-LAST:event_miOpenActionPerformed |
|
|
|
|
|
|
|
/** |
|
|
|
* @param args the command line arguments |
|
|
@@ -94,7 +135,26 @@ public class GrafikFrame extends javax.swing.JFrame |
|
|
|
}); |
|
|
|
} |
|
|
|
|
|
|
|
// Variables declaration - do not modify//GEN-BEGIN:variables |
|
|
|
private mvcgrafik.view.GrafikView gZeichenflaeche; |
|
|
|
// End of variables declaration//GEN-END:variables |
|
|
|
// Variables declaration - do not modify//GEN-BEGIN:variables |
|
|
|
private mvcgrafik.view.GrafikView gZeichenflaeche; |
|
|
|
private javax.swing.JMenu jMenu1; |
|
|
|
private javax.swing.JMenu jMenu2; |
|
|
|
private javax.swing.JMenuBar jMenuBar1; |
|
|
|
private javax.swing.JMenuItem miOpen; |
|
|
|
private javax.swing.JMenuItem miSave; |
|
|
|
// End of variables declaration//GEN-END:variables |
|
|
|
|
|
|
|
/** |
|
|
|
* @return the miOpen |
|
|
|
*/ |
|
|
|
public javax.swing.JMenuItem getMiOpen() { |
|
|
|
return miOpen; |
|
|
|
} |
|
|
|
|
|
|
|
/** |
|
|
|
* @return the miSave |
|
|
|
*/ |
|
|
|
public javax.swing.JMenuItem getMiSave() { |
|
|
|
return miSave; |
|
|
|
} |
|
|
|
} |