|
@ -26,7 +26,8 @@ public class Notizbuch extends JFrame implements ActionListener { |
|
|
saveButton.addActionListener(this); |
|
|
saveButton.addActionListener(this); |
|
|
loadButton = new JButton("Laden"); |
|
|
loadButton = new JButton("Laden"); |
|
|
loadButton.addActionListener(this); |
|
|
loadButton.addActionListener(this); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// Erstellen eines Panels für die Buttons und Hinzufügen der Buttons |
|
|
JPanel buttonPanel = new JPanel(); |
|
|
JPanel buttonPanel = new JPanel(); |
|
|
buttonPanel.add(saveButton); |
|
|
buttonPanel.add(saveButton); |
|
|
buttonPanel.add(loadButton); |
|
|
buttonPanel.add(loadButton); |
|
|