diff --git a/.idea/misc.xml b/.idea/misc.xml new file mode 100644 index 0000000..6e86672 --- /dev/null +++ b/.idea/misc.xml @@ -0,0 +1,5 @@ + + + + + \ No newline at end of file diff --git a/.idea/workspace.xml b/.idea/workspace.xml new file mode 100644 index 0000000..6f880d3 --- /dev/null +++ b/.idea/workspace.xml @@ -0,0 +1,105 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + { + "associatedIndex": 0 +} + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 1784236888334 + + + + \ No newline at end of file diff --git a/pitiupi.chat/.idea/.gitignore b/pitiupi.chat/.idea/.gitignore new file mode 100644 index 0000000..b58b603 --- /dev/null +++ b/pitiupi.chat/.idea/.gitignore @@ -0,0 +1,5 @@ +# Default ignored files +/shelf/ +/workspace.xml +# Editor-based HTTP Client requests +/httpRequests/ diff --git a/pitiupi.chat/.idea/libraries/pitiupi_chat.xml b/pitiupi.chat/.idea/libraries/pitiupi_chat.xml new file mode 100644 index 0000000..d74edd9 --- /dev/null +++ b/pitiupi.chat/.idea/libraries/pitiupi_chat.xml @@ -0,0 +1,9 @@ + + + + + + + + + \ No newline at end of file diff --git a/pitiupi.chat/.idea/misc.xml b/pitiupi.chat/.idea/misc.xml new file mode 100644 index 0000000..8547fc5 --- /dev/null +++ b/pitiupi.chat/.idea/misc.xml @@ -0,0 +1,5 @@ + + + + + \ No newline at end of file diff --git a/pitiupi.chat/.idea/modules.xml b/pitiupi.chat/.idea/modules.xml new file mode 100644 index 0000000..0dec8d6 --- /dev/null +++ b/pitiupi.chat/.idea/modules.xml @@ -0,0 +1,8 @@ + + + + + + + + \ No newline at end of file diff --git a/pitiupi.chat/.idea/vcs.xml b/pitiupi.chat/.idea/vcs.xml new file mode 100644 index 0000000..6c0b863 --- /dev/null +++ b/pitiupi.chat/.idea/vcs.xml @@ -0,0 +1,6 @@ + + + + + + \ No newline at end of file diff --git a/pitiupi.chat/build/built-jar.properties b/pitiupi.chat/build/built-jar.properties index 499f65e..4683cca 100644 --- a/pitiupi.chat/build/built-jar.properties +++ b/pitiupi.chat/build/built-jar.properties @@ -1,6 +1,6 @@ -#Thu, 16 Jul 2026 15:21:36 -0300 +#Sat, 18 Jul 2026 10:32:46 -0300 -/home/flavio/NetBeansProjects/pitiupi.chat= +C\:\\Users\\extre\\OneDrive\\Documentos\\Faculdade\\2026_02\\Monitoria\\Pitiupi\\pitiupi.chat= -/home/flavio/NetBeansProjects/pitiupi= +C\:\\Users\\extre\\OneDrive\\Documentos\\Faculdade\\2026_02\\Monitoria\\Pitiupi\\pitiupi= diff --git a/pitiupi.chat/dist/pitiupi.chat.jar b/pitiupi.chat/dist/pitiupi.chat.jar index 78438b7..70bd0b0 100644 Binary files a/pitiupi.chat/dist/pitiupi.chat.jar and b/pitiupi.chat/dist/pitiupi.chat.jar differ diff --git a/pitiupi.chat/pitiupi.chat.iml b/pitiupi.chat/pitiupi.chat.iml new file mode 100644 index 0000000..c90834f --- /dev/null +++ b/pitiupi.chat/pitiupi.chat.iml @@ -0,0 +1,11 @@ + + + + + + + + + + + \ No newline at end of file diff --git a/pitiupi.screenCast/build/built-jar.properties b/pitiupi.screenCast/build/built-jar.properties index 6898243..771342c 100644 --- a/pitiupi.screenCast/build/built-jar.properties +++ b/pitiupi.screenCast/build/built-jar.properties @@ -1,6 +1,6 @@ -#Thu, 16 Jul 2026 15:21:39 -0300 +#Sat, 18 Jul 2026 10:33:07 -0300 -/home/flavio/NetBeansProjects/pitiupi.screenCast= +C\:\\Users\\extre\\OneDrive\\Documentos\\Faculdade\\2026_02\\Monitoria\\Pitiupi\\pitiupi.screenCast= -/home/flavio/NetBeansProjects/pitiupi= +C\:\\Users\\extre\\OneDrive\\Documentos\\Faculdade\\2026_02\\Monitoria\\Pitiupi\\pitiupi= diff --git a/pitiupi.screenCast/dist/pitiupi.screenCast.jar b/pitiupi.screenCast/dist/pitiupi.screenCast.jar index 06682ea..a81395c 100644 Binary files a/pitiupi.screenCast/dist/pitiupi.screenCast.jar and b/pitiupi.screenCast/dist/pitiupi.screenCast.jar differ diff --git a/pitiupi/.idea/.gitignore b/pitiupi/.idea/.gitignore new file mode 100644 index 0000000..b58b603 --- /dev/null +++ b/pitiupi/.idea/.gitignore @@ -0,0 +1,5 @@ +# Default ignored files +/shelf/ +/workspace.xml +# Editor-based HTTP Client requests +/httpRequests/ diff --git a/pitiupi/.idea/libraries/pitiupi.xml b/pitiupi/.idea/libraries/pitiupi.xml new file mode 100644 index 0000000..95cf1ce --- /dev/null +++ b/pitiupi/.idea/libraries/pitiupi.xml @@ -0,0 +1,9 @@ + + + + + + + + + \ No newline at end of file diff --git a/pitiupi/.idea/libraries/plugins.xml b/pitiupi/.idea/libraries/plugins.xml new file mode 100644 index 0000000..4c565c7 --- /dev/null +++ b/pitiupi/.idea/libraries/plugins.xml @@ -0,0 +1,10 @@ + + + + + + + + + + \ No newline at end of file diff --git a/pitiupi/.idea/misc.xml b/pitiupi/.idea/misc.xml new file mode 100644 index 0000000..8547fc5 --- /dev/null +++ b/pitiupi/.idea/misc.xml @@ -0,0 +1,5 @@ + + + + + \ No newline at end of file diff --git a/pitiupi/.idea/modules.xml b/pitiupi/.idea/modules.xml new file mode 100644 index 0000000..4c6dc03 --- /dev/null +++ b/pitiupi/.idea/modules.xml @@ -0,0 +1,8 @@ + + + + + + + + \ No newline at end of file diff --git a/pitiupi/.idea/vcs.xml b/pitiupi/.idea/vcs.xml new file mode 100644 index 0000000..6c0b863 --- /dev/null +++ b/pitiupi/.idea/vcs.xml @@ -0,0 +1,6 @@ + + + + + + \ No newline at end of file diff --git a/pitiupi/build/classes/.netbeans_automatic_build b/pitiupi/Documentation.md similarity index 100% rename from pitiupi/build/classes/.netbeans_automatic_build rename to pitiupi/Documentation.md diff --git a/pitiupi/PluginTutorial.md b/pitiupi/PluginTutorial.md new file mode 100644 index 0000000..120dcfd --- /dev/null +++ b/pitiupi/PluginTutorial.md @@ -0,0 +1,2 @@ +# Como criar plugins para o Share my Sheet + diff --git a/pitiupi/build/built-jar.properties b/pitiupi/build/built-jar.properties new file mode 100644 index 0000000..7a88ba5 --- /dev/null +++ b/pitiupi/build/built-jar.properties @@ -0,0 +1,4 @@ +#Mon, 20 Jul 2026 12:23:12 -0300 + + +C\:\\Users\\extre\\OneDrive\\Documentos\\Faculdade\\2026_02\\Monitoria\\Pitiupi\\pitiupi= diff --git a/pitiupi/build/classes/.netbeans_update_resources b/pitiupi/build/classes/.netbeans_update_resources deleted file mode 100644 index e69de29..0000000 diff --git a/pitiupi/build/classes/pitiupi/GUI/About.class b/pitiupi/build/classes/pitiupi/GUI/About.class new file mode 100644 index 0000000..e44d7f5 Binary files /dev/null and b/pitiupi/build/classes/pitiupi/GUI/About.class differ diff --git a/pitiupi/build/classes/pitiupi/GUI/Login.class b/pitiupi/build/classes/pitiupi/GUI/Login.class index b5380ba..818ffd4 100644 Binary files a/pitiupi/build/classes/pitiupi/GUI/Login.class and b/pitiupi/build/classes/pitiupi/GUI/Login.class differ diff --git a/pitiupi/build/classes/pitiupi/GUI/MainWindow.class b/pitiupi/build/classes/pitiupi/GUI/MainWindow.class index e7780db..69cf91f 100644 Binary files a/pitiupi/build/classes/pitiupi/GUI/MainWindow.class and b/pitiupi/build/classes/pitiupi/GUI/MainWindow.class differ diff --git a/pitiupi/build/classes/pitiupi/GUI/MenuBar.class b/pitiupi/build/classes/pitiupi/GUI/MenuBar.class index 71aaa0d..9ee083e 100644 Binary files a/pitiupi/build/classes/pitiupi/GUI/MenuBar.class and b/pitiupi/build/classes/pitiupi/GUI/MenuBar.class differ diff --git a/pitiupi/build/classes/pitiupi/Main$1.class b/pitiupi/build/classes/pitiupi/Main$1.class index ab626d0..567427f 100644 Binary files a/pitiupi/build/classes/pitiupi/Main$1.class and b/pitiupi/build/classes/pitiupi/Main$1.class differ diff --git a/pitiupi/build/classes/pitiupi/Main.class b/pitiupi/build/classes/pitiupi/Main.class index c1bcbbd..05cf605 100644 Binary files a/pitiupi/build/classes/pitiupi/Main.class and b/pitiupi/build/classes/pitiupi/Main.class differ diff --git a/pitiupi/build/classes/pitiupi/control/PluginLoader.class b/pitiupi/build/classes/pitiupi/control/PluginLoader.class index 97ef0bc..f8c179c 100644 Binary files a/pitiupi/build/classes/pitiupi/control/PluginLoader.class and b/pitiupi/build/classes/pitiupi/control/PluginLoader.class differ diff --git a/pitiupi/build/classes/pitiupi/net/Socket.class b/pitiupi/build/classes/pitiupi/net/Socket.class index d182b43..a9c3a74 100644 Binary files a/pitiupi/build/classes/pitiupi/net/Socket.class and b/pitiupi/build/classes/pitiupi/net/Socket.class differ diff --git a/pitiupi/build/classes/pitiupi/plugin/Plugin.class b/pitiupi/build/classes/pitiupi/plugin/Plugin.class index 13963a8..5b0bf10 100644 Binary files a/pitiupi/build/classes/pitiupi/plugin/Plugin.class and b/pitiupi/build/classes/pitiupi/plugin/Plugin.class differ diff --git a/pitiupi/dist/README.TXT b/pitiupi/dist/README.TXT deleted file mode 100644 index c336b53..0000000 --- a/pitiupi/dist/README.TXT +++ /dev/null @@ -1,32 +0,0 @@ -======================== -BUILD OUTPUT DESCRIPTION -======================== - -When you build an Java application project that has a main class, the IDE -automatically copies all of the JAR -files on the projects classpath to your projects dist/lib folder. The IDE -also adds each of the JAR files to the Class-Path element in the application -JAR files manifest file (MANIFEST.MF). - -To run the project from the command line, go to the dist folder and -type the following: - -java -jar "pitiupi.jar" - -To distribute this project, zip up the dist folder (including the lib folder) -and distribute the ZIP file. - -Notes: - -* If two JAR files on the project classpath have the same name, only the first -JAR file is copied to the lib folder. -* Only JAR files are copied to the lib folder. -If the classpath contains other types of files or folders, these files (folders) -are not copied. -* If a library on the projects classpath also has a Class-Path element -specified in the manifest,the content of the Class-Path element has to be on -the projects runtime path. -* To set a main class in a standard Java project, right-click the project node -in the Projects window and choose Properties. Then click Run and enter the -class name in the Main Class field. Alternatively, you can manually type the -class name in the manifest Main-Class element. diff --git a/pitiupi/dist/pitiupi.jar b/pitiupi/dist/pitiupi.jar index 85ec1b8..4103d01 100644 Binary files a/pitiupi/dist/pitiupi.jar and b/pitiupi/dist/pitiupi.jar differ diff --git a/pitiupi/pitiupi.iml b/pitiupi/pitiupi.iml new file mode 100644 index 0000000..c90834f --- /dev/null +++ b/pitiupi/pitiupi.iml @@ -0,0 +1,11 @@ + + + + + + + + + + + \ No newline at end of file diff --git a/pitiupi/plugins/pitiupi.chat.jar b/pitiupi/plugins/pitiupi.chat.jar index b2c6a32..70bd0b0 120000 Binary files a/pitiupi/plugins/pitiupi.chat.jar and b/pitiupi/plugins/pitiupi.chat.jar differ diff --git a/pitiupi/plugins/pitiupi.screenCast.jar b/pitiupi/plugins/pitiupi.screenCast.jar index e6a0dc7..a81395c 120000 Binary files a/pitiupi/plugins/pitiupi.screenCast.jar and b/pitiupi/plugins/pitiupi.screenCast.jar differ diff --git a/pitiupi/src/pitiupi/GUI/About.java b/pitiupi/src/pitiupi/GUI/About.java new file mode 100644 index 0000000..5526dbc --- /dev/null +++ b/pitiupi/src/pitiupi/GUI/About.java @@ -0,0 +1,70 @@ +/* + * To change this license header, choose License Headers in Project Properties. + * To change this template file, choose Tools | Templates + * and open the template in the editor. + */ +package pitiupi.GUI; + +import javax.swing.*; + +/** + * + * @author gustavo + */ + +public class About extends javax.swing.JFrame { + public About () { + this.setDefaultCloseOperation(javax.swing.WindowConstants.HIDE_ON_CLOSE); + initComponents(); + } + + private void initComponents() { + this.setTitle("About"); + this.setBounds(new java.awt.Rectangle(0, 0, 800, 600)); + this.getContentPane().setLayout(new java.awt.BorderLayout(5, 5)); + this.setPreferredSize(new java.awt.Dimension(800, 600)); + + JScrollPane scroll = getJScrollPane(); + + this.add(scroll); + } + + private static JScrollPane getJScrollPane() { + JEditorPane texto = new JEditorPane(); + texto.setContentType("text/html"); + texto.setEditable(false); + + texto.setText(""" + + +

Share My Sheet

+ \s +

+ Versão: 1.0 +

+ \s +

+ Plataforma P2P baseada em plugins para o desenvolvimento de aplicações + distribuídas. Criada para apoiar as práticas da disciplina de Redes de + Computadores e servir como base para projetos acadêmicos e TCCs. + \s +

+ \s +

+ Autores:
+ Flávio
+ Tony
+ Gustavo Henrique +

+ \s +

+ Universidade Federal de São João del-Rei (UFSJ) +

+ \s + + + \s"""); + + return new JScrollPane(texto); + } +} \ No newline at end of file diff --git a/pitiupi/src/pitiupi/GUI/MenuBar.java b/pitiupi/src/pitiupi/GUI/MenuBar.java index 2a7e1b1..84d6e60 100644 --- a/pitiupi/src/pitiupi/GUI/MenuBar.java +++ b/pitiupi/src/pitiupi/GUI/MenuBar.java @@ -15,6 +15,7 @@ import javax.swing.JMenuBar; public class MenuBar extends JMenuBar { private javax.swing.JMenuItem setupMenu; + private javax.swing.JMenuItem aboutMenu; private javax.swing.JMenu fileMenu; private javax.swing.JMenu helpMenu; private javax.swing.JMenu pluginMenu; @@ -32,6 +33,7 @@ public class MenuBar extends JMenuBar { helpMenu = new javax.swing.JMenu(); pluginMenu = new javax.swing.JMenu(); setupMenu = new javax.swing.JMenuItem(); + aboutMenu = new javax.swing.JMenuItem(); fileMenu.setText("File"); exitMenu.setAccelerator(javax.swing.KeyStroke.getKeyStroke(java.awt.event.KeyEvent.VK_F4, java.awt.event.InputEvent.ALT_MASK)); @@ -44,9 +46,15 @@ public class MenuBar extends JMenuBar { this.add(pluginMenu); helpMenu.setText("Help"); + setupMenu.setText("Preferences"); setupMenu.addActionListener(this::setupMenuActionPerformed); helpMenu.add(setupMenu); + + aboutMenu.setText("About"); + aboutMenu.addActionListener(this::aboutMenuActionPerformed); + helpMenu.add(aboutMenu); + this.add(helpMenu); } @@ -61,6 +69,11 @@ public class MenuBar extends JMenuBar { login.setVisible(true); login.dispose(); } + + private void aboutMenuActionPerformed(java.awt.event.ActionEvent evt) { + About about = new About(); + about.setVisible(true); + } public void addPlugin(JMenu menu){ this.pluginMenu.add(menu);