bug fix de erro na compilacao
This commit is contained in:
1 parent
4cc07a3754
commit
67813e4881
16 files changed
+24
-13
No files matched your search
@@ -13,12 +13,12 @@ public class ChatMenu extends JMenu {
|
||||
this.setText("MP-Chat");
|
||||
|
||||
JMenuItem startPrivateChat = new JMenuItem("start Private Chat");
|
||||
startPrivateChat.addActionListener(_ -> showPrivateChatDialog());
|
||||
startPrivateChat.addActionListener(e -> showPrivateChatDialog());
|
||||
this.add(startPrivateChat);
|
||||
}
|
||||
|
||||
public void newMenuItem(JMenuItem newMenuItem, ChatWindow chatWindow) {
|
||||
newMenuItem.addActionListener(_ -> chatWindow.setVisible(true));
|
||||
newMenuItem.addActionListener(e -> chatWindow.setVisible(true));
|
||||
|
||||
this.add(newMenuItem);
|
||||
}
|
||||
|
||||
@@ -14,9 +14,8 @@ public class PrivateChatWindow extends ChatWindow {
|
||||
private final TcpConnection connection;
|
||||
|
||||
public PrivateChatWindow(ConnectionManager ConnectionManager, TcpConnection connection) {
|
||||
this.connection = connection;
|
||||
|
||||
super(ConnectionManager);
|
||||
this.connection = connection;
|
||||
}
|
||||
|
||||
@Override
|
||||
@@ -41,4 +40,4 @@ public class PrivateChatWindow extends ChatWindow {
|
||||
Logger.getLogger(PrivateChatWindow.class.getName()).log(Level.SEVERE, null, ex);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user