|
|
@ -59,6 +59,7 @@ public class ChatGUI implements ActionListener { |
|
|
|
JMenu colors = new JMenu("font-colors"); |
|
|
|
JMenu size = new JMenu("font-size"); |
|
|
|
|
|
|
|
// Create Pop-Up Button |
|
|
|
popupButton = new JButton("Popup-Nachricht senden"); |
|
|
|
popupButton.addActionListener(this); |
|
|
|
|
|
|
@ -157,17 +158,15 @@ public class ChatGUI implements ActionListener { |
|
|
|
outputTextArea.setFont(outputTextArea.getFont().deriveFont(Font.PLAIN, 20)); |
|
|
|
} |
|
|
|
if (e.getSource() == popupButton) { |
|
|
|
String message = inputTextField.getText(); |
|
|
|
inputTextField.setText(""); |
|
|
|
sendPopupMessage(message); |
|
|
|
} |
|
|
|
|
|
|
|
String message = inputTextField.getText(); |
|
|
|
inputTextField.setText(""); |
|
|
|
sendPopupMessage(message); |
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
public void sendPopupMessage(String message) { |
|
|
|
JOptionPane.showMessageDialog(gui, message); |
|
|
|
} |
|
|
|
|
|
|
|
public void sendPopupMessage(String message) { |
|
|
|
JOptionPane.showMessageDialog(gui, message); |
|
|
|
} |
|
|
|
|
|
|
|
} |