Adicionando o plugin corretamente

This commit is contained in:
GustavoHMDS committed 2026-08-18 10:06:47 -03:00
1 parent e9ce17abb3
commit 947aaf00b7
25 files changed
+377 -18

No files matched your search

@@ -0,0 +1,21 @@
package GUI;
import javax.swing.*;
import java.awt.event.ActionEvent;
public class SocketTestMenu extends JMenu {
private final SocketTestWindow socketTestWindow;
public SocketTestMenu(SocketTestWindow socketTestWindow) {
this.socketTestWindow = socketTestWindow;
this.setText("Chat");
JMenuItem menuItem = new JMenuItem();
menuItem.setText("Show Chat Window");
menuItem.addActionListener(this::showTestWindow);
this.add(menuItem);
}
private void showTestWindow(ActionEvent ae) {
this.socketTestWindow.setVisible(true);
}
}