Browse Source

refactoring: Kommentare und Lesbarkeit

remotes/origin/server
Paul Kattenborn 11 months ago
parent
commit
a57bfabd7f
  1. 3
      src/main/java/ChatGUI.java

3
src/main/java/ChatGUI.java

@ -59,6 +59,7 @@ public class ChatGUI implements ActionListener {
JMenu colors = new JMenu("font-colors"); JMenu colors = new JMenu("font-colors");
JMenu size = new JMenu("font-size"); JMenu size = new JMenu("font-size");
// Create Pop-Up Button
popupButton = new JButton("Popup-Nachricht senden"); popupButton = new JButton("Popup-Nachricht senden");
popupButton.addActionListener(this); popupButton.addActionListener(this);
@ -162,12 +163,10 @@ public class ChatGUI implements ActionListener {
sendPopupMessage(message); sendPopupMessage(message);
} }
} }
public void sendPopupMessage(String message) { public void sendPopupMessage(String message) {
JOptionPane.showMessageDialog(gui, message); JOptionPane.showMessageDialog(gui, message);
} }
} }
Loading…
Cancel
Save