Drop the chat's Send button

Enter sends; the button only ate width.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
This commit is contained in:
2026-08-20 06:57:40 +00:00
parent 8e3e9401d2
commit f480262c39

View File

@@ -5,7 +5,6 @@ import com.ts3client.text.TsLink;
import javax.swing.BorderFactory; import javax.swing.BorderFactory;
import javax.swing.Icon; import javax.swing.Icon;
import javax.swing.JButton;
import javax.swing.JEditorPane; import javax.swing.JEditorPane;
import javax.swing.JLabel; import javax.swing.JLabel;
import javax.swing.JPanel; import javax.swing.JPanel;
@@ -92,11 +91,8 @@ public final class ChatPanel extends JPanel {
JPanel bottom = new JPanel(new BorderLayout(4, 0)); JPanel bottom = new JPanel(new BorderLayout(4, 0));
bottom.setBorder(BorderFactory.createEmptyBorder(4, 0, 0, 0)); bottom.setBorder(BorderFactory.createEmptyBorder(4, 0, 0, 0));
bottom.add(input, BorderLayout.CENTER); bottom.add(input, BorderLayout.CENTER);
JButton send = new JButton("Send");
bottom.add(send, BorderLayout.EAST);
add(bottom, BorderLayout.SOUTH); add(bottom, BorderLayout.SOUTH);
send.addActionListener(e -> fireSend());
input.addActionListener(e -> fireSend()); input.addActionListener(e -> fireSend());
setInputEnabled(false); setInputEnabled(false);