diff --git a/.gitignore b/.gitignore index 53d2375..237cb8c 100644 --- a/.gitignore +++ b/.gitignore @@ -5,3 +5,5 @@ /pitiupi.chat/nbproject/private/ /pitiupi.screenCast/build/ /pitiupi.screenCast/dist/ + +.idea/ diff --git a/pitiupi.chat/build/built-jar.properties b/pitiupi.chat/build/built-jar.properties index 4683cca..ab84885 100644 --- a/pitiupi.chat/build/built-jar.properties +++ b/pitiupi.chat/build/built-jar.properties @@ -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= diff --git a/pitiupi.chat/build/classes/pitiupi/chat/GUI/ChatWindow.class b/pitiupi.chat/build/classes/pitiupi/chat/GUI/ChatWindow.class index 4d4bde2..15ff534 100644 Binary files a/pitiupi.chat/build/classes/pitiupi/chat/GUI/ChatWindow.class and b/pitiupi.chat/build/classes/pitiupi/chat/GUI/ChatWindow.class differ diff --git a/pitiupi.chat/pitiupi.chat.iml b/pitiupi.chat/pitiupi.chat.iml index c90834f..4e2cbb3 100644 --- a/pitiupi.chat/pitiupi.chat.iml +++ b/pitiupi.chat/pitiupi.chat.iml @@ -7,5 +7,14 @@ + + + + + + + + + \ No newline at end of file diff --git a/pitiupi.chat/src/pitiupi/chat/GUI/ChatWindow.java b/pitiupi.chat/src/pitiupi/chat/GUI/ChatWindow.java index 3b707fa..c963334 100644 --- a/pitiupi.chat/src/pitiupi/chat/GUI/ChatWindow.java +++ b/pitiupi.chat/src/pitiupi/chat/GUI/ChatWindow.java @@ -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); } diff --git a/pitiupi.screenCast/.idea/ant.xml b/pitiupi.screenCast/.idea/ant.xml new file mode 100644 index 0000000..a2a4769 --- /dev/null +++ b/pitiupi.screenCast/.idea/ant.xml @@ -0,0 +1,6 @@ + + + + + + \ No newline at end of file diff --git a/pitiupi.screenCast/.idea/misc.xml b/pitiupi.screenCast/.idea/misc.xml new file mode 100644 index 0000000..59ad060 --- /dev/null +++ b/pitiupi.screenCast/.idea/misc.xml @@ -0,0 +1,3 @@ + + + \ No newline at end of file diff --git a/pitiupi.screenCast/.idea/vcs.xml b/pitiupi.screenCast/.idea/vcs.xml new file mode 100644 index 0000000..6c0b863 --- /dev/null +++ b/pitiupi.screenCast/.idea/vcs.xml @@ -0,0 +1,6 @@ + + + + + + \ No newline at end of file diff --git a/pitiupi.screenCast/.idea/workspace.xml b/pitiupi.screenCast/.idea/workspace.xml index 96dbbb3..61262cc 100644 --- a/pitiupi.screenCast/.idea/workspace.xml +++ b/pitiupi.screenCast/.idea/workspace.xml @@ -5,14 +5,24 @@ - - - - - - + + - + + + + + + + + + + + + + + +