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

+1 -1
View File
@@ -1,4 +1,4 @@
#Sat, 18 Jul 2026 10:32:46 -0300
#Mon, 17 Aug 2026 14:26:26 -0300
C\:\\Users\\extre\\OneDrive\\Documentos\\Faculdade\\2026_02\\Monitoria\\Pitiupi\\pitiupi.chat=
+9
View File
@@ -7,5 +7,14 @@
</content>
<orderEntry type="inheritedJdk" />
<orderEntry type="sourceFolder" forTests="false" />
<orderEntry type="module-library">
<library>
<CLASSES>
<root url="jar://$MODULE_DIR$/../pitiupi/dist/pitiupi.jar!/" />
</CLASSES>
<JAVADOC />
<SOURCES />
</library>
</orderEntry>
</component>
</module>
@@ -91,7 +91,7 @@ public class ChatWindow extends javax.swing.JDialog {
}
private void sendMessage() {
if (jTextArea1.getText().trim().length() == 0) {
if (jTextArea1.getText().trim().isEmpty()) {
return;
}
ChatMessage message = new ChatMessage(mainWindow.getUserName(), jTextArea1.getText());
@@ -101,7 +101,7 @@ public class ChatWindow extends javax.swing.JDialog {
public void sendChatMessage(Message message) {
try {
mainWindow.getSocket().send(message.toByteArray());
mainWindow.getSocketUDP().sendMulticast(message.toByteArray());
} catch (IOException ex) {
Logger.getLogger(MainWindow.class.getName()).log(Level.SEVERE, null, ex);
}