├── README.md ├── build.xml ├── build └── classes │ ├── .netbeans_automatic_build │ ├── .netbeans_update_resources │ └── itp_library │ ├── Books$1.class │ ├── Books$2.class │ ├── Books$3.class │ ├── Books$4.class │ ├── Books$5.class │ ├── Books$6.class │ ├── Books$7.class │ ├── Books$8.class │ ├── Books.class │ ├── Books.form │ ├── Connect.class │ ├── Dashboard$1.class │ ├── Dashboard$10.class │ ├── Dashboard$11.class │ ├── Dashboard$12.class │ ├── Dashboard$2.class │ ├── Dashboard$3.class │ ├── Dashboard$4.class │ ├── Dashboard$5.class │ ├── Dashboard$6.class │ ├── Dashboard$7.class │ ├── Dashboard$8.class │ ├── Dashboard$9.class │ ├── Dashboard.class │ ├── Dashboard.form │ ├── Lendings$1.class │ ├── Lendings$2.class │ ├── Lendings$3.class │ ├── Lendings$4.class │ ├── Lendings.class │ ├── Lendings.form │ ├── Principal.class │ ├── Principal.form │ ├── Reports$1.class │ ├── Reports$2.class │ ├── Reports$3.class │ ├── Reports$4.class │ ├── Reports.class │ ├── Reports.form │ ├── Returns$1.class │ ├── Returns$2.class │ ├── Returns$3.class │ ├── Returns$4.class │ ├── Returns.class │ ├── Returns.form │ ├── UpBooks$1.class │ ├── UpBooks$10.class │ ├── UpBooks$11.class │ ├── UpBooks$12.class │ ├── UpBooks$13.class │ ├── UpBooks$14.class │ ├── UpBooks$15.class │ ├── UpBooks$16.class │ ├── UpBooks$17.class │ ├── UpBooks$18.class │ ├── UpBooks$19.class │ ├── UpBooks$2.class │ ├── UpBooks$20.class │ ├── UpBooks$21.class │ ├── UpBooks$22.class │ ├── UpBooks$23.class │ ├── UpBooks$24.class │ ├── UpBooks$25.class │ ├── UpBooks$3.class │ ├── UpBooks$4.class │ ├── UpBooks$5.class │ ├── UpBooks$6.class │ ├── UpBooks$7.class │ ├── UpBooks$8.class │ ├── UpBooks$9.class │ ├── UpBooks.class │ ├── UpBooks.form │ ├── UpUsers$1.class │ ├── UpUsers$10.class │ ├── UpUsers$11.class │ ├── UpUsers$2.class │ ├── UpUsers$3.class │ ├── UpUsers$4.class │ ├── UpUsers$5.class │ ├── UpUsers$6.class │ ├── UpUsers$7.class │ ├── UpUsers$8.class │ ├── UpUsers$9.class │ ├── UpUsers.class │ ├── UpUsers.form │ ├── Users$1.class │ ├── Users$2.class │ ├── Users$3.class │ ├── Users$4.class │ ├── Users$5.class │ ├── Users$6.class │ ├── Users$7.class │ ├── Users$8.class │ ├── Users.class │ ├── Users.form │ └── images │ ├── 336799ebb339821f342bc5a13386aff2.jpg │ ├── account-multiple.png │ ├── book-open-page-variant.png │ ├── calendar-multiple-check.png │ ├── calendar-plus.png │ ├── file-chart.png │ ├── home-outline.png │ ├── iStock.jpg │ └── prestamo.gif ├── library.sql ├── manifest.mf ├── nbproject ├── build-impl.xml ├── genfiles.properties ├── private │ ├── private.properties │ └── private.xml ├── project.properties └── project.xml └── src └── itp_library ├── Books.form ├── Books.java ├── Connect.java ├── Dashboard.form ├── Dashboard.java ├── Lendings.form ├── Lendings.java ├── Principal.form ├── Principal.java ├── Reports.form ├── Reports.java ├── Returns.form ├── Returns.java ├── UpBooks.form ├── UpBooks.java ├── UpUsers.form ├── UpUsers.java ├── Users.form ├── Users.java └── images ├── 336799ebb339821f342bc5a13386aff2.jpg ├── account-multiple.png ├── book-open-page-variant.png ├── calendar-multiple-check.png ├── calendar-plus.png ├── file-chart.png ├── home-outline.png ├── iStock.jpg └── prestamo.gif /README.md: -------------------------------------------------------------------------------- 1 | # ITPLibrary 2 | Basic system for managing a library on Java. It's a school project that I did for Object Oriented Programming. Programmed in Java. 3 | 4 | ## Features 5 | ✔️ Graphic interface with Material Design style.\ 6 | ✔️ MySQL database connection.\ 7 | ✔️ Management of books, loans and returns.\ 8 | ✔️ Penalties for late returns.\ 9 | ✔️ Movement logs.\ 10 | ✔️ Lookup tables. 11 | 12 | ## Previews 13 | 14 |

15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 |

26 | 27 | ## Getting Started 28 | Import the java project in your preferred IDE and import the database. Just edit the class `Connect.class` with your database connection credentials. 29 | 30 | ### Important 31 | Consider download the [mysql-connector-java-5.1.13](http://www.java2s.com/Code/JarDownload/mysql/mysql-connector-java-5.1.13.jar.zip) and import it to the project before compiling. 32 | -------------------------------------------------------------------------------- /build.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | Builds, tests, and runs the project ITP_Library. 12 | 13 | 73 | 74 | -------------------------------------------------------------------------------- /build/classes/.netbeans_automatic_build: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AnthonyZabs/ITPLibrary/43a8443c28c34946c1274c4a9ff58640fe7fcf62/build/classes/.netbeans_automatic_build -------------------------------------------------------------------------------- /build/classes/.netbeans_update_resources: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AnthonyZabs/ITPLibrary/43a8443c28c34946c1274c4a9ff58640fe7fcf62/build/classes/.netbeans_update_resources -------------------------------------------------------------------------------- /build/classes/itp_library/Books$1.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AnthonyZabs/ITPLibrary/43a8443c28c34946c1274c4a9ff58640fe7fcf62/build/classes/itp_library/Books$1.class -------------------------------------------------------------------------------- /build/classes/itp_library/Books$2.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AnthonyZabs/ITPLibrary/43a8443c28c34946c1274c4a9ff58640fe7fcf62/build/classes/itp_library/Books$2.class -------------------------------------------------------------------------------- /build/classes/itp_library/Books$3.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AnthonyZabs/ITPLibrary/43a8443c28c34946c1274c4a9ff58640fe7fcf62/build/classes/itp_library/Books$3.class -------------------------------------------------------------------------------- /build/classes/itp_library/Books$4.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AnthonyZabs/ITPLibrary/43a8443c28c34946c1274c4a9ff58640fe7fcf62/build/classes/itp_library/Books$4.class -------------------------------------------------------------------------------- /build/classes/itp_library/Books$5.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AnthonyZabs/ITPLibrary/43a8443c28c34946c1274c4a9ff58640fe7fcf62/build/classes/itp_library/Books$5.class -------------------------------------------------------------------------------- /build/classes/itp_library/Books$6.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AnthonyZabs/ITPLibrary/43a8443c28c34946c1274c4a9ff58640fe7fcf62/build/classes/itp_library/Books$6.class -------------------------------------------------------------------------------- /build/classes/itp_library/Books$7.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AnthonyZabs/ITPLibrary/43a8443c28c34946c1274c4a9ff58640fe7fcf62/build/classes/itp_library/Books$7.class -------------------------------------------------------------------------------- /build/classes/itp_library/Books$8.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AnthonyZabs/ITPLibrary/43a8443c28c34946c1274c4a9ff58640fe7fcf62/build/classes/itp_library/Books$8.class -------------------------------------------------------------------------------- /build/classes/itp_library/Books.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AnthonyZabs/ITPLibrary/43a8443c28c34946c1274c4a9ff58640fe7fcf62/build/classes/itp_library/Books.class -------------------------------------------------------------------------------- /build/classes/itp_library/Connect.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AnthonyZabs/ITPLibrary/43a8443c28c34946c1274c4a9ff58640fe7fcf62/build/classes/itp_library/Connect.class -------------------------------------------------------------------------------- /build/classes/itp_library/Dashboard$1.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AnthonyZabs/ITPLibrary/43a8443c28c34946c1274c4a9ff58640fe7fcf62/build/classes/itp_library/Dashboard$1.class -------------------------------------------------------------------------------- /build/classes/itp_library/Dashboard$10.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AnthonyZabs/ITPLibrary/43a8443c28c34946c1274c4a9ff58640fe7fcf62/build/classes/itp_library/Dashboard$10.class -------------------------------------------------------------------------------- /build/classes/itp_library/Dashboard$11.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AnthonyZabs/ITPLibrary/43a8443c28c34946c1274c4a9ff58640fe7fcf62/build/classes/itp_library/Dashboard$11.class -------------------------------------------------------------------------------- /build/classes/itp_library/Dashboard$12.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AnthonyZabs/ITPLibrary/43a8443c28c34946c1274c4a9ff58640fe7fcf62/build/classes/itp_library/Dashboard$12.class -------------------------------------------------------------------------------- /build/classes/itp_library/Dashboard$2.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AnthonyZabs/ITPLibrary/43a8443c28c34946c1274c4a9ff58640fe7fcf62/build/classes/itp_library/Dashboard$2.class -------------------------------------------------------------------------------- /build/classes/itp_library/Dashboard$3.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AnthonyZabs/ITPLibrary/43a8443c28c34946c1274c4a9ff58640fe7fcf62/build/classes/itp_library/Dashboard$3.class -------------------------------------------------------------------------------- /build/classes/itp_library/Dashboard$4.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AnthonyZabs/ITPLibrary/43a8443c28c34946c1274c4a9ff58640fe7fcf62/build/classes/itp_library/Dashboard$4.class -------------------------------------------------------------------------------- /build/classes/itp_library/Dashboard$5.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AnthonyZabs/ITPLibrary/43a8443c28c34946c1274c4a9ff58640fe7fcf62/build/classes/itp_library/Dashboard$5.class -------------------------------------------------------------------------------- /build/classes/itp_library/Dashboard$6.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AnthonyZabs/ITPLibrary/43a8443c28c34946c1274c4a9ff58640fe7fcf62/build/classes/itp_library/Dashboard$6.class -------------------------------------------------------------------------------- /build/classes/itp_library/Dashboard$7.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AnthonyZabs/ITPLibrary/43a8443c28c34946c1274c4a9ff58640fe7fcf62/build/classes/itp_library/Dashboard$7.class -------------------------------------------------------------------------------- /build/classes/itp_library/Dashboard$8.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AnthonyZabs/ITPLibrary/43a8443c28c34946c1274c4a9ff58640fe7fcf62/build/classes/itp_library/Dashboard$8.class -------------------------------------------------------------------------------- /build/classes/itp_library/Dashboard$9.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AnthonyZabs/ITPLibrary/43a8443c28c34946c1274c4a9ff58640fe7fcf62/build/classes/itp_library/Dashboard$9.class -------------------------------------------------------------------------------- /build/classes/itp_library/Dashboard.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AnthonyZabs/ITPLibrary/43a8443c28c34946c1274c4a9ff58640fe7fcf62/build/classes/itp_library/Dashboard.class -------------------------------------------------------------------------------- /build/classes/itp_library/Lendings$1.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AnthonyZabs/ITPLibrary/43a8443c28c34946c1274c4a9ff58640fe7fcf62/build/classes/itp_library/Lendings$1.class -------------------------------------------------------------------------------- /build/classes/itp_library/Lendings$2.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AnthonyZabs/ITPLibrary/43a8443c28c34946c1274c4a9ff58640fe7fcf62/build/classes/itp_library/Lendings$2.class -------------------------------------------------------------------------------- /build/classes/itp_library/Lendings$3.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AnthonyZabs/ITPLibrary/43a8443c28c34946c1274c4a9ff58640fe7fcf62/build/classes/itp_library/Lendings$3.class -------------------------------------------------------------------------------- /build/classes/itp_library/Lendings$4.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AnthonyZabs/ITPLibrary/43a8443c28c34946c1274c4a9ff58640fe7fcf62/build/classes/itp_library/Lendings$4.class -------------------------------------------------------------------------------- /build/classes/itp_library/Lendings.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AnthonyZabs/ITPLibrary/43a8443c28c34946c1274c4a9ff58640fe7fcf62/build/classes/itp_library/Lendings.class -------------------------------------------------------------------------------- /build/classes/itp_library/Lendings.form: -------------------------------------------------------------------------------- 1 | 2 | 3 |
4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | 39 | 40 | 41 | 42 | 43 | 44 | 45 | 46 | 47 | 48 | 49 | 50 | 51 | 52 | 53 | 54 | 55 | 56 | 57 | 58 | 59 | 60 | 61 | 62 | 63 | 64 | 65 | 66 | 67 | 68 | 69 | 70 | 71 | 72 | 73 | 74 | 75 | 76 | 77 | 78 | 79 | 80 | 81 | 82 | 83 | 84 | 85 | 86 | 87 | 88 | 89 | 90 | 91 | 92 | 93 | 94 | 95 | 96 | 97 | 98 | 99 | 100 | 101 | 102 | 103 | 104 | 105 | 106 | 107 | 108 | 109 | 110 | 111 | 112 | 113 | 114 | 115 | 116 | 117 | 118 | 119 | 120 | 121 | 122 | 123 | 124 | 125 | 126 | 127 | 128 | 129 | 130 | 131 | 132 | 133 | 134 | 135 | 136 | 137 | 138 | 139 | 140 | 141 | 142 | 143 | 144 | 145 | 146 | 147 | 148 | 149 | 150 | 151 | 152 | 153 | 154 | 155 | 156 | 157 | 158 | 159 | 160 | 161 | 162 | 163 | 164 | 165 | 166 | 167 | 168 | 169 | 170 | 171 | 172 | 173 | 174 | 175 | 176 | 177 | 178 | 179 | 180 | 181 | 182 | 183 | 184 | 185 | 186 | 187 | 188 | 189 | 190 | 191 | 192 | 193 | 194 | 195 | 196 | 197 | 198 | 199 | 200 | 201 | 202 | 203 | 204 | 205 | 206 | 207 | 208 | 209 | 210 | 211 | 212 | 213 | 214 | 215 | 216 | 217 | 218 | 219 | 220 | 221 | 222 | 223 | 224 | 225 | 226 | 227 | 228 | 229 | 230 | 231 | 232 | 233 | 234 | 235 | 236 | 237 | 238 | 239 | 240 | 241 | 242 | -------------------------------------------------------------------------------- /build/classes/itp_library/Principal.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AnthonyZabs/ITPLibrary/43a8443c28c34946c1274c4a9ff58640fe7fcf62/build/classes/itp_library/Principal.class -------------------------------------------------------------------------------- /build/classes/itp_library/Principal.form: -------------------------------------------------------------------------------- 1 | 2 | 3 |
4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | 39 | 40 | 41 | 42 | 43 | 44 | 45 | 46 | 47 | 48 | 49 | 50 | 51 | 52 | 53 | 54 | 55 | 56 | 57 | 58 | 59 | 60 | 61 | 62 | 63 | 64 | 65 | 66 | 67 | 68 | 69 | 70 | 71 | 72 | 73 | 74 | 75 | 76 | 77 | 78 | 79 | 80 | 81 | 82 | 83 | 84 | 85 | 86 | 87 | 88 | 89 | 90 | 91 | 92 | 93 | 94 | 95 | 96 | 97 | 98 | 99 | 100 | 101 | 102 | 103 | 104 | 105 | 106 | 107 | 108 | 109 | 110 | 111 | 112 | 113 | 114 | 115 | 116 | 117 | 118 | 119 | 120 | 121 | 122 | 123 | 124 | 125 | 126 | 127 | 128 | 129 | 130 | 131 | 132 | 133 | 134 | 135 | 136 | 137 | 138 | 139 | 140 | 141 | 142 | 143 | 144 | 145 | 146 | 147 | 148 | 149 | 150 | 151 | 152 | 153 | 154 | 155 | 156 | 157 | 158 | 159 | 160 | 161 | 162 | 163 | 164 | 165 | 166 | 167 | 168 | 169 | 170 | 171 | 172 | 173 | 174 | 175 | 176 | 177 | 178 | 179 | 180 | 181 | 182 | 183 | 184 | 185 | 186 | 187 | 188 | 189 | 190 | 191 | 192 | 193 | 194 | 195 | 196 | 197 | 198 | 199 | 200 | 201 | 202 | 203 | 204 | 205 | 206 | -------------------------------------------------------------------------------- /build/classes/itp_library/Reports$1.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AnthonyZabs/ITPLibrary/43a8443c28c34946c1274c4a9ff58640fe7fcf62/build/classes/itp_library/Reports$1.class -------------------------------------------------------------------------------- /build/classes/itp_library/Reports$2.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AnthonyZabs/ITPLibrary/43a8443c28c34946c1274c4a9ff58640fe7fcf62/build/classes/itp_library/Reports$2.class -------------------------------------------------------------------------------- /build/classes/itp_library/Reports$3.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AnthonyZabs/ITPLibrary/43a8443c28c34946c1274c4a9ff58640fe7fcf62/build/classes/itp_library/Reports$3.class -------------------------------------------------------------------------------- /build/classes/itp_library/Reports$4.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AnthonyZabs/ITPLibrary/43a8443c28c34946c1274c4a9ff58640fe7fcf62/build/classes/itp_library/Reports$4.class -------------------------------------------------------------------------------- /build/classes/itp_library/Reports.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AnthonyZabs/ITPLibrary/43a8443c28c34946c1274c4a9ff58640fe7fcf62/build/classes/itp_library/Reports.class -------------------------------------------------------------------------------- /build/classes/itp_library/Reports.form: -------------------------------------------------------------------------------- 1 | 2 | 3 |
4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | 39 | 40 | 41 | 42 | 43 | 44 | 45 | 46 | 47 | 48 | 49 | 50 | 51 | 52 | 53 | 54 | 55 | 56 | 57 | 58 | 59 | 60 | 61 | 62 | 63 | 64 | 65 | 66 | 67 | 68 | 69 | 70 | 71 | 72 | 73 | 74 | 75 | 76 | 77 | 78 | 79 | 80 | 81 | 82 | 83 | 84 |
85 |
86 | 87 | 88 | 89 | 90 | <Editor/> 91 | <Renderer/> 92 | </Column> 93 | <Column maxWidth="-1" minWidth="-1" prefWidth="-1" resizable="true"> 94 | <Title/> 95 | <Editor/> 96 | <Renderer/> 97 | </Column> 98 | <Column maxWidth="-1" minWidth="-1" prefWidth="-1" resizable="true"> 99 | <Title/> 100 | <Editor/> 101 | <Renderer/> 102 | </Column> 103 | <Column maxWidth="-1" minWidth="-1" prefWidth="-1" resizable="true"> 104 | <Title/> 105 | <Editor/> 106 | <Renderer/> 107 | </Column> 108 | </TableColumnModel> 109 | </Property> 110 | <Property name="tableHeader" type="javax.swing.table.JTableHeader" editor="org.netbeans.modules.form.editors2.JTableHeaderEditor"> 111 | <TableHeader reorderingAllowed="false" resizingAllowed="true"/> 112 | </Property> 113 | </Properties> 114 | <Events> 115 | <EventHandler event="inputMethodTextChanged" listener="java.awt.event.InputMethodListener" parameters="java.awt.event.InputMethodEvent" handler="jTable1InputMethodTextChanged"/> 116 | </Events> 117 | </Component> 118 | </SubComponents> 119 | </Container> 120 | <Container class="javax.swing.JPanel" name="button"> 121 | <Properties> 122 | <Property name="background" type="java.awt.Color" editor="org.netbeans.beaninfo.editors.ColorEditor"> 123 | <Color blue="ad" green="5a" red="12" type="rgb"/> 124 | </Property> 125 | <Property name="cursor" type="java.awt.Cursor" editor="org.netbeans.modules.form.editors2.CursorEditor"> 126 | <Color id="Cursor de Mano"/> 127 | </Property> 128 | </Properties> 129 | <Events> 130 | <EventHandler event="mouseEntered" listener="java.awt.event.MouseListener" parameters="java.awt.event.MouseEvent" handler="buttonMouseEntered"/> 131 | <EventHandler event="mouseExited" listener="java.awt.event.MouseListener" parameters="java.awt.event.MouseEvent" handler="buttonMouseExited"/> 132 | <EventHandler event="mousePressed" listener="java.awt.event.MouseListener" parameters="java.awt.event.MouseEvent" handler="buttonMousePressed"/> 133 | </Events> 134 | <Constraints> 135 | <Constraint layoutClass="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout" value="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout$AbsoluteConstraintsDescription"> 136 | <AbsoluteConstraints x="600" y="390" width="140" height="30"/> 137 | </Constraint> 138 | </Constraints> 139 | 140 | <Layout class="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout"> 141 | <Property name="useNullLayout" type="boolean" value="false"/> 142 | </Layout> 143 | <SubComponents> 144 | <Component class="javax.swing.JLabel" name="jLabel1"> 145 | <Properties> 146 | <Property name="font" type="java.awt.Font" editor="org.netbeans.beaninfo.editors.FontEditor"> 147 | <Font name="Segoe UI" size="18" style="1"/> 148 | </Property> 149 | <Property name="foreground" type="java.awt.Color" editor="org.netbeans.beaninfo.editors.ColorEditor"> 150 | <Color blue="ff" green="ff" red="ff" type="rgb"/> 151 | </Property> 152 | <Property name="horizontalAlignment" type="int" value="0"/> 153 | <Property name="text" type="java.lang.String" value="Actualizar"/> 154 | </Properties> 155 | <Events> 156 | <EventHandler event="mousePressed" listener="java.awt.event.MouseListener" parameters="java.awt.event.MouseEvent" handler="jLabel1MousePressed"/> 157 | </Events> 158 | <Constraints> 159 | <Constraint layoutClass="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout" value="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout$AbsoluteConstraintsDescription"> 160 | <AbsoluteConstraints x="20" y="0" width="100" height="30"/> 161 | </Constraint> 162 | </Constraints> 163 | </Component> 164 | </SubComponents> 165 | </Container> 166 | </SubComponents> 167 | </Form> 168 | -------------------------------------------------------------------------------- /build/classes/itp_library/Returns$1.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AnthonyZabs/ITPLibrary/43a8443c28c34946c1274c4a9ff58640fe7fcf62/build/classes/itp_library/Returns$1.class -------------------------------------------------------------------------------- /build/classes/itp_library/Returns$2.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AnthonyZabs/ITPLibrary/43a8443c28c34946c1274c4a9ff58640fe7fcf62/build/classes/itp_library/Returns$2.class -------------------------------------------------------------------------------- /build/classes/itp_library/Returns$3.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AnthonyZabs/ITPLibrary/43a8443c28c34946c1274c4a9ff58640fe7fcf62/build/classes/itp_library/Returns$3.class -------------------------------------------------------------------------------- /build/classes/itp_library/Returns$4.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AnthonyZabs/ITPLibrary/43a8443c28c34946c1274c4a9ff58640fe7fcf62/build/classes/itp_library/Returns$4.class -------------------------------------------------------------------------------- /build/classes/itp_library/Returns.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AnthonyZabs/ITPLibrary/43a8443c28c34946c1274c4a9ff58640fe7fcf62/build/classes/itp_library/Returns.class -------------------------------------------------------------------------------- /build/classes/itp_library/Returns.form: -------------------------------------------------------------------------------- 1 | <?xml version="1.0" encoding="UTF-8" ?> 2 | 3 | <Form version="1.3" maxVersion="1.9" type="org.netbeans.modules.form.forminfo.JPanelFormInfo"> 4 | <Properties> 5 | <Property name="background" type="java.awt.Color" editor="org.netbeans.beaninfo.editors.ColorEditor"> 6 | <Color blue="ff" green="ff" red="ff" type="rgb"/> 7 | </Property> 8 | <Property name="minimumSize" type="java.awt.Dimension" editor="org.netbeans.beaninfo.editors.DimensionEditor"> 9 | <Dimension value="[750, 430]"/> 10 | </Property> 11 | <Property name="preferredSize" type="java.awt.Dimension" editor="org.netbeans.beaninfo.editors.DimensionEditor"> 12 | <Dimension value="[750, 430]"/> 13 | </Property> 14 | </Properties> 15 | <AuxValues> 16 | <AuxValue name="FormSettings_autoResourcing" type="java.lang.Integer" value="0"/> 17 | <AuxValue name="FormSettings_autoSetComponentName" type="java.lang.Boolean" value="false"/> 18 | <AuxValue name="FormSettings_generateFQN" type="java.lang.Boolean" value="true"/> 19 | <AuxValue name="FormSettings_generateMnemonicsCode" type="java.lang.Boolean" value="false"/> 20 | <AuxValue name="FormSettings_i18nAutoMode" type="java.lang.Boolean" value="false"/> 21 | <AuxValue name="FormSettings_layoutCodeTarget" type="java.lang.Integer" value="1"/> 22 | <AuxValue name="FormSettings_listenerGenerationStyle" type="java.lang.Integer" value="0"/> 23 | <AuxValue name="FormSettings_variablesLocal" type="java.lang.Boolean" value="false"/> 24 | <AuxValue name="FormSettings_variablesModifier" type="java.lang.Integer" value="2"/> 25 | <AuxValue name="designerSize" type="java.awt.Dimension" value="-84,-19,0,5,115,114,0,18,106,97,118,97,46,97,119,116,46,68,105,109,101,110,115,105,111,110,65,-114,-39,-41,-84,95,68,20,2,0,2,73,0,6,104,101,105,103,104,116,73,0,5,119,105,100,116,104,120,112,0,0,1,-84,0,0,2,-10"/> 26 | </AuxValues> 27 | 28 | <Layout class="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout"> 29 | <Property name="useNullLayout" type="boolean" value="false"/> 30 | </Layout> 31 | <SubComponents> 32 | <Container class="javax.swing.JPanel" name="body"> 33 | <Properties> 34 | <Property name="background" type="java.awt.Color" editor="org.netbeans.beaninfo.editors.ColorEditor"> 35 | <Color blue="ff" green="ff" red="ff" type="rgb"/> 36 | </Property> 37 | </Properties> 38 | <Constraints> 39 | <Constraint layoutClass="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout" value="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout$AbsoluteConstraintsDescription"> 40 | <AbsoluteConstraints x="0" y="0" width="-1" height="-1"/> 41 | </Constraint> 42 | </Constraints> 43 | 44 | <Layout class="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout"> 45 | <Property name="useNullLayout" type="boolean" value="false"/> 46 | </Layout> 47 | </Container> 48 | <Component class="javax.swing.JLabel" name="Title"> 49 | <Properties> 50 | <Property name="font" type="java.awt.Font" editor="org.netbeans.beaninfo.editors.FontEditor"> 51 | <Font name="Segoe UI" size="24" style="0"/> 52 | </Property> 53 | <Property name="text" type="java.lang.String" value="Devolución de Libro"/> 54 | </Properties> 55 | <Constraints> 56 | <Constraint layoutClass="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout" value="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout$AbsoluteConstraintsDescription"> 57 | <AbsoluteConstraints x="20" y="10" width="-1" height="-1"/> 58 | </Constraint> 59 | </Constraints> 60 | </Component> 61 | <Component class="javax.swing.JLabel" name="Text1"> 62 | <Properties> 63 | <Property name="font" type="java.awt.Font" editor="org.netbeans.beaninfo.editors.FontEditor"> 64 | <Font name="Segoe UI" size="14" style="0"/> 65 | </Property> 66 | <Property name="text" type="java.lang.String" value="Libro ID"/> 67 | </Properties> 68 | <Constraints> 69 | <Constraint layoutClass="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout" value="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout$AbsoluteConstraintsDescription"> 70 | <AbsoluteConstraints x="30" y="170" width="-1" height="-1"/> 71 | </Constraint> 72 | </Constraints> 73 | </Component> 74 | <Component class="javax.swing.JLabel" name="Text2"> 75 | <Properties> 76 | <Property name="font" type="java.awt.Font" editor="org.netbeans.beaninfo.editors.FontEditor"> 77 | <Font name="Segoe UI" size="14" style="0"/> 78 | </Property> 79 | <Property name="text" type="java.lang.String" value="Folio Usuario"/> 80 | </Properties> 81 | <Constraints> 82 | <Constraint layoutClass="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout" value="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout$AbsoluteConstraintsDescription"> 83 | <AbsoluteConstraints x="30" y="70" width="-1" height="-1"/> 84 | </Constraint> 85 | </Constraints> 86 | </Component> 87 | <Component class="javax.swing.JSeparator" name="jSeparator1"> 88 | <Properties> 89 | <Property name="foreground" type="java.awt.Color" editor="org.netbeans.beaninfo.editors.ColorEditor"> 90 | <Color blue="ff" green="99" red="0" type="rgb"/> 91 | </Property> 92 | <Property name="preferredSize" type="java.awt.Dimension" editor="org.netbeans.beaninfo.editors.DimensionEditor"> 93 | <Dimension value="[200, 10]"/> 94 | </Property> 95 | </Properties> 96 | <Constraints> 97 | <Constraint layoutClass="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout" value="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout$AbsoluteConstraintsDescription"> 98 | <AbsoluteConstraints x="30" y="230" width="260" height="10"/> 99 | </Constraint> 100 | </Constraints> 101 | </Component> 102 | <Component class="javax.swing.JSeparator" name="jSeparator2"> 103 | <Properties> 104 | <Property name="foreground" type="java.awt.Color" editor="org.netbeans.beaninfo.editors.ColorEditor"> 105 | <Color blue="ff" green="99" red="0" type="rgb"/> 106 | </Property> 107 | <Property name="preferredSize" type="java.awt.Dimension" editor="org.netbeans.beaninfo.editors.DimensionEditor"> 108 | <Dimension value="[200, 10]"/> 109 | </Property> 110 | </Properties> 111 | <Constraints> 112 | <Constraint layoutClass="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout" value="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout$AbsoluteConstraintsDescription"> 113 | <AbsoluteConstraints x="30" y="130" width="260" height="10"/> 114 | </Constraint> 115 | </Constraints> 116 | </Component> 117 | <Component class="javax.swing.JSeparator" name="jSeparator3"> 118 | <Properties> 119 | <Property name="foreground" type="java.awt.Color" editor="org.netbeans.beaninfo.editors.ColorEditor"> 120 | <Color blue="cc" green="cc" red="cc" type="rgb"/> 121 | </Property> 122 | <Property name="orientation" type="int" value="1"/> 123 | <Property name="preferredSize" type="java.awt.Dimension" editor="org.netbeans.beaninfo.editors.DimensionEditor"> 124 | <Dimension value="[200, 10]"/> 125 | </Property> 126 | </Properties> 127 | <Constraints> 128 | <Constraint layoutClass="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout" value="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout$AbsoluteConstraintsDescription"> 129 | <AbsoluteConstraints x="400" y="30" width="10" height="350"/> 130 | </Constraint> 131 | </Constraints> 132 | </Component> 133 | <Component class="javax.swing.JTextField" name="book_id"> 134 | <Properties> 135 | <Property name="font" type="java.awt.Font" editor="org.netbeans.beaninfo.editors.FontEditor"> 136 | <Font name="Segoe UI" size="12" style="0"/> 137 | </Property> 138 | <Property name="foreground" type="java.awt.Color" editor="org.netbeans.beaninfo.editors.ColorEditor"> 139 | <Color blue="66" green="66" red="66" type="rgb"/> 140 | </Property> 141 | <Property name="text" type="java.lang.String" value="Ingrese el ID del Libro a devolver"/> 142 | <Property name="border" type="javax.swing.border.Border" editor="org.netbeans.modules.form.editors2.BorderEditor"> 143 | <Border info="null"/> 144 | </Property> 145 | </Properties> 146 | <Events> 147 | <EventHandler event="mousePressed" listener="java.awt.event.MouseListener" parameters="java.awt.event.MouseEvent" handler="book_idMousePressed"/> 148 | <EventHandler event="actionPerformed" listener="java.awt.event.ActionListener" parameters="java.awt.event.ActionEvent" handler="book_idActionPerformed"/> 149 | </Events> 150 | <Constraints> 151 | <Constraint layoutClass="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout" value="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout$AbsoluteConstraintsDescription"> 152 | <AbsoluteConstraints x="30" y="200" width="260" height="30"/> 153 | </Constraint> 154 | </Constraints> 155 | </Component> 156 | <Component class="javax.swing.JTextField" name="folio"> 157 | <Properties> 158 | <Property name="font" type="java.awt.Font" editor="org.netbeans.beaninfo.editors.FontEditor"> 159 | <Font name="Segoe UI" size="12" style="0"/> 160 | </Property> 161 | <Property name="foreground" type="java.awt.Color" editor="org.netbeans.beaninfo.editors.ColorEditor"> 162 | <Color blue="66" green="66" red="66" type="rgb"/> 163 | </Property> 164 | <Property name="text" type="java.lang.String" value="Ingrese el folio del usuario"/> 165 | <Property name="border" type="javax.swing.border.Border" editor="org.netbeans.modules.form.editors2.BorderEditor"> 166 | <Border info="null"/> 167 | </Property> 168 | </Properties> 169 | <Events> 170 | <EventHandler event="mousePressed" listener="java.awt.event.MouseListener" parameters="java.awt.event.MouseEvent" handler="folioMousePressed"/> 171 | </Events> 172 | <Constraints> 173 | <Constraint layoutClass="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout" value="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout$AbsoluteConstraintsDescription"> 174 | <AbsoluteConstraints x="30" y="100" width="260" height="30"/> 175 | </Constraint> 176 | </Constraints> 177 | </Component> 178 | <Container class="javax.swing.JPanel" name="button"> 179 | <Properties> 180 | <Property name="background" type="java.awt.Color" editor="org.netbeans.beaninfo.editors.ColorEditor"> 181 | <Color blue="ad" green="5a" red="12" type="rgb"/> 182 | </Property> 183 | <Property name="cursor" type="java.awt.Cursor" editor="org.netbeans.modules.form.editors2.CursorEditor"> 184 | <Color id="Cursor de Mano"/> 185 | </Property> 186 | </Properties> 187 | <Events> 188 | <EventHandler event="mouseEntered" listener="java.awt.event.MouseListener" parameters="java.awt.event.MouseEvent" handler="buttonMouseEntered"/> 189 | <EventHandler event="mouseExited" listener="java.awt.event.MouseListener" parameters="java.awt.event.MouseEvent" handler="buttonMouseExited"/> 190 | <EventHandler event="mousePressed" listener="java.awt.event.MouseListener" parameters="java.awt.event.MouseEvent" handler="buttonMousePressed"/> 191 | </Events> 192 | <Constraints> 193 | <Constraint layoutClass="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout" value="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout$AbsoluteConstraintsDescription"> 194 | <AbsoluteConstraints x="30" y="290" width="260" height="50"/> 195 | </Constraint> 196 | </Constraints> 197 | 198 | <Layout class="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout"> 199 | <Property name="useNullLayout" type="boolean" value="false"/> 200 | </Layout> 201 | <SubComponents> 202 | <Component class="javax.swing.JLabel" name="jLabel1"> 203 | <Properties> 204 | <Property name="font" type="java.awt.Font" editor="org.netbeans.beaninfo.editors.FontEditor"> 205 | <Font name="Segoe UI" size="18" style="1"/> 206 | </Property> 207 | <Property name="foreground" type="java.awt.Color" editor="org.netbeans.beaninfo.editors.ColorEditor"> 208 | <Color blue="ff" green="ff" red="ff" type="rgb"/> 209 | </Property> 210 | <Property name="horizontalAlignment" type="int" value="0"/> 211 | <Property name="text" type="java.lang.String" value=" Devolver"/> 212 | </Properties> 213 | <Constraints> 214 | <Constraint layoutClass="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout" value="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout$AbsoluteConstraintsDescription"> 215 | <AbsoluteConstraints x="90" y="10" width="-1" height="-1"/> 216 | </Constraint> 217 | </Constraints> 218 | </Component> 219 | </SubComponents> 220 | </Container> 221 | <Component class="javax.swing.JLabel" name="Image"> 222 | <Properties> 223 | <Property name="horizontalAlignment" type="int" value="0"/> 224 | <Property name="icon" type="javax.swing.Icon" editor="org.netbeans.modules.form.editors2.IconEditor"> 225 | <Image iconType="3" name="/itp_library/images/iStock.jpg"/> 226 | </Property> 227 | <Property name="maximumSize" type="java.awt.Dimension" editor="org.netbeans.beaninfo.editors.DimensionEditor"> 228 | <Dimension value="[750, 430]"/> 229 | </Property> 230 | <Property name="minimumSize" type="java.awt.Dimension" editor="org.netbeans.beaninfo.editors.DimensionEditor"> 231 | <Dimension value="[750, 430]"/> 232 | </Property> 233 | </Properties> 234 | <Constraints> 235 | <Constraint layoutClass="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout" value="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout$AbsoluteConstraintsDescription"> 236 | <AbsoluteConstraints x="400" y="50" width="-1" height="-1"/> 237 | </Constraint> 238 | </Constraints> 239 | </Component> 240 | </SubComponents> 241 | </Form> 242 | -------------------------------------------------------------------------------- /build/classes/itp_library/UpBooks$1.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AnthonyZabs/ITPLibrary/43a8443c28c34946c1274c4a9ff58640fe7fcf62/build/classes/itp_library/UpBooks$1.class -------------------------------------------------------------------------------- /build/classes/itp_library/UpBooks$10.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AnthonyZabs/ITPLibrary/43a8443c28c34946c1274c4a9ff58640fe7fcf62/build/classes/itp_library/UpBooks$10.class -------------------------------------------------------------------------------- /build/classes/itp_library/UpBooks$11.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AnthonyZabs/ITPLibrary/43a8443c28c34946c1274c4a9ff58640fe7fcf62/build/classes/itp_library/UpBooks$11.class -------------------------------------------------------------------------------- /build/classes/itp_library/UpBooks$12.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AnthonyZabs/ITPLibrary/43a8443c28c34946c1274c4a9ff58640fe7fcf62/build/classes/itp_library/UpBooks$12.class -------------------------------------------------------------------------------- /build/classes/itp_library/UpBooks$13.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AnthonyZabs/ITPLibrary/43a8443c28c34946c1274c4a9ff58640fe7fcf62/build/classes/itp_library/UpBooks$13.class -------------------------------------------------------------------------------- /build/classes/itp_library/UpBooks$14.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AnthonyZabs/ITPLibrary/43a8443c28c34946c1274c4a9ff58640fe7fcf62/build/classes/itp_library/UpBooks$14.class -------------------------------------------------------------------------------- /build/classes/itp_library/UpBooks$15.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AnthonyZabs/ITPLibrary/43a8443c28c34946c1274c4a9ff58640fe7fcf62/build/classes/itp_library/UpBooks$15.class -------------------------------------------------------------------------------- /build/classes/itp_library/UpBooks$16.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AnthonyZabs/ITPLibrary/43a8443c28c34946c1274c4a9ff58640fe7fcf62/build/classes/itp_library/UpBooks$16.class -------------------------------------------------------------------------------- /build/classes/itp_library/UpBooks$17.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AnthonyZabs/ITPLibrary/43a8443c28c34946c1274c4a9ff58640fe7fcf62/build/classes/itp_library/UpBooks$17.class -------------------------------------------------------------------------------- /build/classes/itp_library/UpBooks$18.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AnthonyZabs/ITPLibrary/43a8443c28c34946c1274c4a9ff58640fe7fcf62/build/classes/itp_library/UpBooks$18.class -------------------------------------------------------------------------------- /build/classes/itp_library/UpBooks$19.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AnthonyZabs/ITPLibrary/43a8443c28c34946c1274c4a9ff58640fe7fcf62/build/classes/itp_library/UpBooks$19.class -------------------------------------------------------------------------------- /build/classes/itp_library/UpBooks$2.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AnthonyZabs/ITPLibrary/43a8443c28c34946c1274c4a9ff58640fe7fcf62/build/classes/itp_library/UpBooks$2.class -------------------------------------------------------------------------------- /build/classes/itp_library/UpBooks$20.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AnthonyZabs/ITPLibrary/43a8443c28c34946c1274c4a9ff58640fe7fcf62/build/classes/itp_library/UpBooks$20.class -------------------------------------------------------------------------------- /build/classes/itp_library/UpBooks$21.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AnthonyZabs/ITPLibrary/43a8443c28c34946c1274c4a9ff58640fe7fcf62/build/classes/itp_library/UpBooks$21.class -------------------------------------------------------------------------------- /build/classes/itp_library/UpBooks$22.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AnthonyZabs/ITPLibrary/43a8443c28c34946c1274c4a9ff58640fe7fcf62/build/classes/itp_library/UpBooks$22.class -------------------------------------------------------------------------------- /build/classes/itp_library/UpBooks$23.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AnthonyZabs/ITPLibrary/43a8443c28c34946c1274c4a9ff58640fe7fcf62/build/classes/itp_library/UpBooks$23.class -------------------------------------------------------------------------------- /build/classes/itp_library/UpBooks$24.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AnthonyZabs/ITPLibrary/43a8443c28c34946c1274c4a9ff58640fe7fcf62/build/classes/itp_library/UpBooks$24.class -------------------------------------------------------------------------------- /build/classes/itp_library/UpBooks$25.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AnthonyZabs/ITPLibrary/43a8443c28c34946c1274c4a9ff58640fe7fcf62/build/classes/itp_library/UpBooks$25.class -------------------------------------------------------------------------------- /build/classes/itp_library/UpBooks$3.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AnthonyZabs/ITPLibrary/43a8443c28c34946c1274c4a9ff58640fe7fcf62/build/classes/itp_library/UpBooks$3.class -------------------------------------------------------------------------------- /build/classes/itp_library/UpBooks$4.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AnthonyZabs/ITPLibrary/43a8443c28c34946c1274c4a9ff58640fe7fcf62/build/classes/itp_library/UpBooks$4.class -------------------------------------------------------------------------------- /build/classes/itp_library/UpBooks$5.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AnthonyZabs/ITPLibrary/43a8443c28c34946c1274c4a9ff58640fe7fcf62/build/classes/itp_library/UpBooks$5.class -------------------------------------------------------------------------------- /build/classes/itp_library/UpBooks$6.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AnthonyZabs/ITPLibrary/43a8443c28c34946c1274c4a9ff58640fe7fcf62/build/classes/itp_library/UpBooks$6.class -------------------------------------------------------------------------------- /build/classes/itp_library/UpBooks$7.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AnthonyZabs/ITPLibrary/43a8443c28c34946c1274c4a9ff58640fe7fcf62/build/classes/itp_library/UpBooks$7.class -------------------------------------------------------------------------------- /build/classes/itp_library/UpBooks$8.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AnthonyZabs/ITPLibrary/43a8443c28c34946c1274c4a9ff58640fe7fcf62/build/classes/itp_library/UpBooks$8.class -------------------------------------------------------------------------------- /build/classes/itp_library/UpBooks$9.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AnthonyZabs/ITPLibrary/43a8443c28c34946c1274c4a9ff58640fe7fcf62/build/classes/itp_library/UpBooks$9.class -------------------------------------------------------------------------------- /build/classes/itp_library/UpBooks.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AnthonyZabs/ITPLibrary/43a8443c28c34946c1274c4a9ff58640fe7fcf62/build/classes/itp_library/UpBooks.class -------------------------------------------------------------------------------- /build/classes/itp_library/UpUsers$1.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AnthonyZabs/ITPLibrary/43a8443c28c34946c1274c4a9ff58640fe7fcf62/build/classes/itp_library/UpUsers$1.class -------------------------------------------------------------------------------- /build/classes/itp_library/UpUsers$10.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AnthonyZabs/ITPLibrary/43a8443c28c34946c1274c4a9ff58640fe7fcf62/build/classes/itp_library/UpUsers$10.class -------------------------------------------------------------------------------- /build/classes/itp_library/UpUsers$11.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AnthonyZabs/ITPLibrary/43a8443c28c34946c1274c4a9ff58640fe7fcf62/build/classes/itp_library/UpUsers$11.class -------------------------------------------------------------------------------- /build/classes/itp_library/UpUsers$2.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AnthonyZabs/ITPLibrary/43a8443c28c34946c1274c4a9ff58640fe7fcf62/build/classes/itp_library/UpUsers$2.class -------------------------------------------------------------------------------- /build/classes/itp_library/UpUsers$3.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AnthonyZabs/ITPLibrary/43a8443c28c34946c1274c4a9ff58640fe7fcf62/build/classes/itp_library/UpUsers$3.class -------------------------------------------------------------------------------- /build/classes/itp_library/UpUsers$4.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AnthonyZabs/ITPLibrary/43a8443c28c34946c1274c4a9ff58640fe7fcf62/build/classes/itp_library/UpUsers$4.class -------------------------------------------------------------------------------- /build/classes/itp_library/UpUsers$5.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AnthonyZabs/ITPLibrary/43a8443c28c34946c1274c4a9ff58640fe7fcf62/build/classes/itp_library/UpUsers$5.class -------------------------------------------------------------------------------- /build/classes/itp_library/UpUsers$6.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AnthonyZabs/ITPLibrary/43a8443c28c34946c1274c4a9ff58640fe7fcf62/build/classes/itp_library/UpUsers$6.class -------------------------------------------------------------------------------- /build/classes/itp_library/UpUsers$7.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AnthonyZabs/ITPLibrary/43a8443c28c34946c1274c4a9ff58640fe7fcf62/build/classes/itp_library/UpUsers$7.class -------------------------------------------------------------------------------- /build/classes/itp_library/UpUsers$8.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AnthonyZabs/ITPLibrary/43a8443c28c34946c1274c4a9ff58640fe7fcf62/build/classes/itp_library/UpUsers$8.class -------------------------------------------------------------------------------- /build/classes/itp_library/UpUsers$9.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AnthonyZabs/ITPLibrary/43a8443c28c34946c1274c4a9ff58640fe7fcf62/build/classes/itp_library/UpUsers$9.class -------------------------------------------------------------------------------- /build/classes/itp_library/UpUsers.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AnthonyZabs/ITPLibrary/43a8443c28c34946c1274c4a9ff58640fe7fcf62/build/classes/itp_library/UpUsers.class -------------------------------------------------------------------------------- /build/classes/itp_library/Users$1.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AnthonyZabs/ITPLibrary/43a8443c28c34946c1274c4a9ff58640fe7fcf62/build/classes/itp_library/Users$1.class -------------------------------------------------------------------------------- /build/classes/itp_library/Users$2.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AnthonyZabs/ITPLibrary/43a8443c28c34946c1274c4a9ff58640fe7fcf62/build/classes/itp_library/Users$2.class -------------------------------------------------------------------------------- /build/classes/itp_library/Users$3.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AnthonyZabs/ITPLibrary/43a8443c28c34946c1274c4a9ff58640fe7fcf62/build/classes/itp_library/Users$3.class -------------------------------------------------------------------------------- /build/classes/itp_library/Users$4.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AnthonyZabs/ITPLibrary/43a8443c28c34946c1274c4a9ff58640fe7fcf62/build/classes/itp_library/Users$4.class -------------------------------------------------------------------------------- /build/classes/itp_library/Users$5.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AnthonyZabs/ITPLibrary/43a8443c28c34946c1274c4a9ff58640fe7fcf62/build/classes/itp_library/Users$5.class -------------------------------------------------------------------------------- /build/classes/itp_library/Users$6.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AnthonyZabs/ITPLibrary/43a8443c28c34946c1274c4a9ff58640fe7fcf62/build/classes/itp_library/Users$6.class -------------------------------------------------------------------------------- /build/classes/itp_library/Users$7.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AnthonyZabs/ITPLibrary/43a8443c28c34946c1274c4a9ff58640fe7fcf62/build/classes/itp_library/Users$7.class -------------------------------------------------------------------------------- /build/classes/itp_library/Users$8.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AnthonyZabs/ITPLibrary/43a8443c28c34946c1274c4a9ff58640fe7fcf62/build/classes/itp_library/Users$8.class -------------------------------------------------------------------------------- /build/classes/itp_library/Users.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AnthonyZabs/ITPLibrary/43a8443c28c34946c1274c4a9ff58640fe7fcf62/build/classes/itp_library/Users.class -------------------------------------------------------------------------------- /build/classes/itp_library/images/336799ebb339821f342bc5a13386aff2.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AnthonyZabs/ITPLibrary/43a8443c28c34946c1274c4a9ff58640fe7fcf62/build/classes/itp_library/images/336799ebb339821f342bc5a13386aff2.jpg -------------------------------------------------------------------------------- /build/classes/itp_library/images/account-multiple.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AnthonyZabs/ITPLibrary/43a8443c28c34946c1274c4a9ff58640fe7fcf62/build/classes/itp_library/images/account-multiple.png -------------------------------------------------------------------------------- /build/classes/itp_library/images/book-open-page-variant.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AnthonyZabs/ITPLibrary/43a8443c28c34946c1274c4a9ff58640fe7fcf62/build/classes/itp_library/images/book-open-page-variant.png -------------------------------------------------------------------------------- /build/classes/itp_library/images/calendar-multiple-check.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AnthonyZabs/ITPLibrary/43a8443c28c34946c1274c4a9ff58640fe7fcf62/build/classes/itp_library/images/calendar-multiple-check.png -------------------------------------------------------------------------------- /build/classes/itp_library/images/calendar-plus.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AnthonyZabs/ITPLibrary/43a8443c28c34946c1274c4a9ff58640fe7fcf62/build/classes/itp_library/images/calendar-plus.png -------------------------------------------------------------------------------- /build/classes/itp_library/images/file-chart.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AnthonyZabs/ITPLibrary/43a8443c28c34946c1274c4a9ff58640fe7fcf62/build/classes/itp_library/images/file-chart.png -------------------------------------------------------------------------------- /build/classes/itp_library/images/home-outline.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AnthonyZabs/ITPLibrary/43a8443c28c34946c1274c4a9ff58640fe7fcf62/build/classes/itp_library/images/home-outline.png -------------------------------------------------------------------------------- /build/classes/itp_library/images/iStock.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AnthonyZabs/ITPLibrary/43a8443c28c34946c1274c4a9ff58640fe7fcf62/build/classes/itp_library/images/iStock.jpg -------------------------------------------------------------------------------- /build/classes/itp_library/images/prestamo.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AnthonyZabs/ITPLibrary/43a8443c28c34946c1274c4a9ff58640fe7fcf62/build/classes/itp_library/images/prestamo.gif -------------------------------------------------------------------------------- /library.sql: -------------------------------------------------------------------------------- 1 | -- phpMyAdmin SQL Dump 2 | -- version 4.9.7 3 | -- https://www.phpmyadmin.net/ 4 | -- 5 | -- Servidor: localhost 6 | -- Tiempo de generación: 13-04-2021 a las 22:56:24 7 | -- Versión del servidor: 5.7.21-log 8 | -- Versión de PHP: 5.6.31 9 | 10 | SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; 11 | SET AUTOCOMMIT = 0; 12 | START TRANSACTION; 13 | SET time_zone = "+00:00"; 14 | 15 | 16 | /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; 17 | /*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */; 18 | /*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */; 19 | /*!40101 SET NAMES utf8mb4 */; 20 | 21 | -- 22 | -- Base de datos: `library` 23 | -- 24 | 25 | -- -------------------------------------------------------- 26 | 27 | -- 28 | -- Estructura de tabla para la tabla `books` 29 | -- 30 | 31 | CREATE TABLE `books` ( 32 | `id` int(11) NOT NULL, 33 | `title` varchar(255) NOT NULL, 34 | `date` varchar(255) NOT NULL, 35 | `author` varchar(255) NOT NULL, 36 | `category` varchar(255) NOT NULL, 37 | `edit` varchar(255) NOT NULL, 38 | `lang` varchar(255) NOT NULL, 39 | `pages` varchar(255) NOT NULL, 40 | `description` varchar(255) NOT NULL, 41 | `ejemplares` varchar(255) NOT NULL, 42 | `stock` int(11) NOT NULL, 43 | `available` int(11) NOT NULL 44 | ) ENGINE=InnoDB DEFAULT CHARSET=utf8; 45 | 46 | -- -------------------------------------------------------- 47 | 48 | -- 49 | -- Estructura de tabla para la tabla `lendings` 50 | -- 51 | 52 | CREATE TABLE `lendings` ( 53 | `id` int(11) NOT NULL, 54 | `user_id` int(11) NOT NULL, 55 | `book_id` int(11) NOT NULL, 56 | `date_out` varchar(255) NOT NULL, 57 | `date_return` varchar(255) NOT NULL 58 | ) ENGINE=InnoDB DEFAULT CHARSET=utf8; 59 | 60 | -- -------------------------------------------------------- 61 | 62 | -- 63 | -- Estructura de tabla para la tabla `users` 64 | -- 65 | 66 | CREATE TABLE `users` ( 67 | `id` int(11) NOT NULL, 68 | `name` varchar(30) NOT NULL, 69 | `last_name_p` varchar(30) NOT NULL, 70 | `last_name_m` varchar(30) NOT NULL, 71 | `domicilio` varchar(250) DEFAULT NULL, 72 | `tel` varchar(25) DEFAULT NULL, 73 | `sanctions` int(11) DEFAULT '0', 74 | `sanc_money` int(11) NOT NULL DEFAULT '0' 75 | ) ENGINE=InnoDB DEFAULT CHARSET=utf8; 76 | 77 | -- 78 | -- Índices para tablas volcadas 79 | -- 80 | 81 | -- 82 | -- Indices de la tabla `books` 83 | -- 84 | ALTER TABLE `books` 85 | ADD PRIMARY KEY (`id`); 86 | 87 | -- 88 | -- Indices de la tabla `lendings` 89 | -- 90 | ALTER TABLE `lendings` 91 | ADD PRIMARY KEY (`id`); 92 | 93 | -- 94 | -- Indices de la tabla `users` 95 | -- 96 | ALTER TABLE `users` 97 | ADD PRIMARY KEY (`id`); 98 | 99 | -- 100 | -- AUTO_INCREMENT de las tablas volcadas 101 | -- 102 | 103 | -- 104 | -- AUTO_INCREMENT de la tabla `books` 105 | -- 106 | ALTER TABLE `books` 107 | MODIFY `id` int(11) NOT NULL AUTO_INCREMENT; 108 | 109 | -- 110 | -- AUTO_INCREMENT de la tabla `lendings` 111 | -- 112 | ALTER TABLE `lendings` 113 | MODIFY `id` int(11) NOT NULL AUTO_INCREMENT; 114 | 115 | -- 116 | -- AUTO_INCREMENT de la tabla `users` 117 | -- 118 | ALTER TABLE `users` 119 | MODIFY `id` int(11) NOT NULL AUTO_INCREMENT; 120 | COMMIT; 121 | 122 | /*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */; 123 | /*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */; 124 | /*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */; 125 | -------------------------------------------------------------------------------- /manifest.mf: -------------------------------------------------------------------------------- 1 | Manifest-Version: 1.0 2 | X-COMMENT: Main-Class will be added automatically by build 3 | 4 | -------------------------------------------------------------------------------- /nbproject/genfiles.properties: -------------------------------------------------------------------------------- 1 | build.xml.data.CRC32=cc39cc8b 2 | build.xml.script.CRC32=57d498df 3 | build.xml.stylesheet.CRC32=f85dc8f2@1.97.0.48 4 | # This file is used by a NetBeans-based IDE to track changes in generated files such as build-impl.xml. 5 | # Do not edit this file. You may delete it but then the IDE will never regenerate such files for you. 6 | nbproject/build-impl.xml.data.CRC32=cc39cc8b 7 | nbproject/build-impl.xml.script.CRC32=1fce2e8c 8 | nbproject/build-impl.xml.stylesheet.CRC32=d549e5cc@1.97.0.48 9 | -------------------------------------------------------------------------------- /nbproject/private/private.properties: -------------------------------------------------------------------------------- 1 | compile.on.save=true 2 | file.reference.mysql-connector-java-5.1.13-bin.jar=D:\\Respaldo\\Proyectos\\ITP_Library\\mysql-connector-java-5.1.13.jar 3 | file.reference.mysql-connector-java-5.1.13-bin.jar-1=D:\\Respaldo\\Proyectos\\ITP_Library\\mysql-connector-java-5.1.13.jar 4 | user.properties.file=C:\\Users\\Antonio\\AppData\\Roaming\\NetBeans\\12.2\\build.properties 5 | -------------------------------------------------------------------------------- /nbproject/private/private.xml: -------------------------------------------------------------------------------- 1 | <?xml version="1.0" encoding="UTF-8"?> 2 | <project-private xmlns="http://www.netbeans.org/ns/project-private/1"> 3 | <editor-bookmarks xmlns="http://www.netbeans.org/ns/editor-bookmarks/2" lastBookmarkId="0"/> 4 | <open-files xmlns="http://www.netbeans.org/ns/projectui-open-files/2"> 5 | <group/> 6 | </open-files> 7 | </project-private> 8 | -------------------------------------------------------------------------------- /nbproject/project.properties: -------------------------------------------------------------------------------- 1 | annotation.processing.enabled=true 2 | annotation.processing.enabled.in.editor=false 3 | annotation.processing.processor.options= 4 | annotation.processing.processors.list= 5 | annotation.processing.run.all.processors=true 6 | annotation.processing.source.output=${build.generated.sources.dir}/ap-source-output 7 | build.classes.dir=${build.dir}/classes 8 | build.classes.excludes=**/*.java,**/*.form 9 | # This directory is removed when the project is cleaned: 10 | build.dir=build 11 | build.generated.dir=${build.dir}/generated 12 | build.generated.sources.dir=${build.dir}/generated-sources 13 | # Only compile against the classpath explicitly listed here: 14 | build.sysclasspath=ignore 15 | build.test.classes.dir=${build.dir}/test/classes 16 | build.test.results.dir=${build.dir}/test/results 17 | # Uncomment to specify the preferred debugger connection transport: 18 | #debug.transport=dt_socket 19 | debug.classpath=\ 20 | ${run.classpath} 21 | debug.modulepath=\ 22 | ${run.modulepath} 23 | debug.test.classpath=\ 24 | ${run.test.classpath} 25 | debug.test.modulepath=\ 26 | ${run.test.modulepath} 27 | # Files in build.classes.dir which should be excluded from distribution jar 28 | dist.archive.excludes= 29 | # This directory is removed when the project is cleaned: 30 | dist.dir=dist 31 | dist.jar=${dist.dir}/ITP_Library.jar 32 | dist.javadoc.dir=${dist.dir}/javadoc 33 | excludes= 34 | file.reference.mysql-connector-java-5.1.13-bin.jar=C:\\Users\\Antonio\\Desktop\\TAP\\mysql_lib\\mysql-connector-java-5.1.13-bin.jar 35 | file.reference.mysql-connector-java-5.1.13-bin.jar-1=C:\\Program Files\\Java\\mysql_lib\\mysql-connector-java-5.1.13-bin.jar 36 | includes=** 37 | jar.compress=false 38 | javac.classpath=\ 39 | ${file.reference.mysql-connector-java-5.1.13-bin.jar}:\ 40 | ${libs.absolutelayout.classpath}:\ 41 | ${file.reference.mysql-connector-java-5.1.13-bin.jar-1} 42 | # Space-separated list of extra javac options 43 | javac.compilerargs= 44 | javac.deprecation=false 45 | javac.external.vm=true 46 | javac.modulepath= 47 | javac.processormodulepath= 48 | javac.processorpath=\ 49 | ${javac.classpath} 50 | javac.source=1.8 51 | javac.target=1.8 52 | javac.test.classpath=\ 53 | ${javac.classpath}:\ 54 | ${build.classes.dir} 55 | javac.test.modulepath=\ 56 | ${javac.modulepath} 57 | javac.test.processorpath=\ 58 | ${javac.test.classpath} 59 | javadoc.additionalparam= 60 | javadoc.author=false 61 | javadoc.encoding=${source.encoding} 62 | javadoc.noindex=false 63 | javadoc.nonavbar=false 64 | javadoc.notree=false 65 | javadoc.private=false 66 | javadoc.splitindex=true 67 | javadoc.use=true 68 | javadoc.version=false 69 | javadoc.windowtitle= 70 | main.class=itp_library.Dashboard 71 | manifest.file=manifest.mf 72 | meta.inf.dir=${src.dir}/META-INF 73 | mkdist.disabled=false 74 | platform.active=default_platform 75 | run.classpath=\ 76 | ${javac.classpath}:\ 77 | ${build.classes.dir} 78 | # Space-separated list of JVM arguments used when running the project. 79 | # You may also define separate properties like run-sys-prop.name=value instead of -Dname=value. 80 | # To set system properties for unit tests define test-sys-prop.name=value: 81 | run.jvmargs= 82 | run.modulepath=\ 83 | ${javac.modulepath} 84 | run.test.classpath=\ 85 | ${javac.test.classpath}:\ 86 | ${build.test.classes.dir} 87 | run.test.modulepath=\ 88 | ${javac.test.modulepath} 89 | source.encoding=UTF-8 90 | src.dir=src 91 | test.src.dir=test 92 | -------------------------------------------------------------------------------- /nbproject/project.xml: -------------------------------------------------------------------------------- 1 | <?xml version="1.0" encoding="UTF-8"?> 2 | <project xmlns="http://www.netbeans.org/ns/project/1"> 3 | <type>org.netbeans.modules.java.j2seproject</type> 4 | <configuration> 5 | <data xmlns="http://www.netbeans.org/ns/j2se-project/3"> 6 | <name>ITP_Library</name> 7 | <source-roots> 8 | <root id="src.dir"/> 9 | </source-roots> 10 | <test-roots> 11 | <root id="test.src.dir"/> 12 | </test-roots> 13 | </data> 14 | </configuration> 15 | </project> 16 | -------------------------------------------------------------------------------- /src/itp_library/Connect.java: -------------------------------------------------------------------------------- 1 | package itp_library; 2 | 3 | import java.sql.Connection; 4 | import java.sql.DriverManager; 5 | import java.sql.SQLException; 6 | 7 | public class Connect { 8 | private static Connection conn; 9 | private static final String driver = "com.mysql.jdbc.Driver"; 10 | private static final String user = "root"; 11 | private static final String pass = "123456"; 12 | private static final String db = "library"; 13 | private static final String url = "jdbc:mysql://localhost/"+db+""; 14 | 15 | public Connect(){ 16 | conn = null; 17 | try{ 18 | Class.forName(driver); 19 | conn = DriverManager.getConnection(url, user, pass); 20 | 21 | // Connect? 22 | if(conn != null) 23 | System.out.println("Conexión establecida exitosamente"); 24 | }catch (ClassNotFoundException | SQLException ex){ 25 | System.out.println("Conexión Fallida:\n\n"+ex); 26 | } 27 | } 28 | 29 | public Connection getConnection(){ 30 | return conn; 31 | } 32 | } 33 | -------------------------------------------------------------------------------- /src/itp_library/Lendings.form: -------------------------------------------------------------------------------- 1 | <?xml version="1.0" encoding="UTF-8" ?> 2 | 3 | <Form version="1.3" maxVersion="1.9" type="org.netbeans.modules.form.forminfo.JPanelFormInfo"> 4 | <Properties> 5 | <Property name="background" type="java.awt.Color" editor="org.netbeans.beaninfo.editors.ColorEditor"> 6 | <Color blue="ff" green="ff" red="ff" type="rgb"/> 7 | </Property> 8 | <Property name="minimumSize" type="java.awt.Dimension" editor="org.netbeans.beaninfo.editors.DimensionEditor"> 9 | <Dimension value="[750, 430]"/> 10 | </Property> 11 | <Property name="preferredSize" type="java.awt.Dimension" editor="org.netbeans.beaninfo.editors.DimensionEditor"> 12 | <Dimension value="[750, 430]"/> 13 | </Property> 14 | </Properties> 15 | <AuxValues> 16 | <AuxValue name="FormSettings_autoResourcing" type="java.lang.Integer" value="0"/> 17 | <AuxValue name="FormSettings_autoSetComponentName" type="java.lang.Boolean" value="false"/> 18 | <AuxValue name="FormSettings_generateFQN" type="java.lang.Boolean" value="true"/> 19 | <AuxValue name="FormSettings_generateMnemonicsCode" type="java.lang.Boolean" value="false"/> 20 | <AuxValue name="FormSettings_i18nAutoMode" type="java.lang.Boolean" value="false"/> 21 | <AuxValue name="FormSettings_layoutCodeTarget" type="java.lang.Integer" value="1"/> 22 | <AuxValue name="FormSettings_listenerGenerationStyle" type="java.lang.Integer" value="0"/> 23 | <AuxValue name="FormSettings_variablesLocal" type="java.lang.Boolean" value="false"/> 24 | <AuxValue name="FormSettings_variablesModifier" type="java.lang.Integer" value="2"/> 25 | <AuxValue name="designerSize" type="java.awt.Dimension" value="-84,-19,0,5,115,114,0,18,106,97,118,97,46,97,119,116,46,68,105,109,101,110,115,105,111,110,65,-114,-39,-41,-84,95,68,20,2,0,2,73,0,6,104,101,105,103,104,116,73,0,5,119,105,100,116,104,120,112,0,0,1,-84,0,0,2,-10"/> 26 | </AuxValues> 27 | 28 | <Layout class="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout"> 29 | <Property name="useNullLayout" type="boolean" value="false"/> 30 | </Layout> 31 | <SubComponents> 32 | <Container class="javax.swing.JPanel" name="body"> 33 | <Properties> 34 | <Property name="background" type="java.awt.Color" editor="org.netbeans.beaninfo.editors.ColorEditor"> 35 | <Color blue="ff" green="ff" red="ff" type="rgb"/> 36 | </Property> 37 | </Properties> 38 | <Constraints> 39 | <Constraint layoutClass="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout" value="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout$AbsoluteConstraintsDescription"> 40 | <AbsoluteConstraints x="0" y="0" width="-1" height="-1"/> 41 | </Constraint> 42 | </Constraints> 43 | 44 | <Layout class="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout"> 45 | <Property name="useNullLayout" type="boolean" value="false"/> 46 | </Layout> 47 | </Container> 48 | <Component class="javax.swing.JLabel" name="Title"> 49 | <Properties> 50 | <Property name="font" type="java.awt.Font" editor="org.netbeans.beaninfo.editors.FontEditor"> 51 | <Font name="Segoe UI" size="24" style="0"/> 52 | </Property> 53 | <Property name="text" type="java.lang.String" value="Nuevo Préstamo"/> 54 | </Properties> 55 | <Constraints> 56 | <Constraint layoutClass="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout" value="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout$AbsoluteConstraintsDescription"> 57 | <AbsoluteConstraints x="20" y="10" width="-1" height="-1"/> 58 | </Constraint> 59 | </Constraints> 60 | </Component> 61 | <Component class="javax.swing.JLabel" name="Text1"> 62 | <Properties> 63 | <Property name="font" type="java.awt.Font" editor="org.netbeans.beaninfo.editors.FontEditor"> 64 | <Font name="Segoe UI" size="14" style="0"/> 65 | </Property> 66 | <Property name="text" type="java.lang.String" value="Libro ID"/> 67 | </Properties> 68 | <Constraints> 69 | <Constraint layoutClass="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout" value="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout$AbsoluteConstraintsDescription"> 70 | <AbsoluteConstraints x="470" y="150" width="-1" height="-1"/> 71 | </Constraint> 72 | </Constraints> 73 | </Component> 74 | <Component class="javax.swing.JLabel" name="Text2"> 75 | <Properties> 76 | <Property name="font" type="java.awt.Font" editor="org.netbeans.beaninfo.editors.FontEditor"> 77 | <Font name="Segoe UI" size="14" style="0"/> 78 | </Property> 79 | <Property name="text" type="java.lang.String" value="Folio Usuario"/> 80 | </Properties> 81 | <Constraints> 82 | <Constraint layoutClass="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout" value="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout$AbsoluteConstraintsDescription"> 83 | <AbsoluteConstraints x="470" y="50" width="-1" height="-1"/> 84 | </Constraint> 85 | </Constraints> 86 | </Component> 87 | <Component class="javax.swing.JSeparator" name="jSeparator1"> 88 | <Properties> 89 | <Property name="foreground" type="java.awt.Color" editor="org.netbeans.beaninfo.editors.ColorEditor"> 90 | <Color blue="ff" green="99" red="0" type="rgb"/> 91 | </Property> 92 | <Property name="preferredSize" type="java.awt.Dimension" editor="org.netbeans.beaninfo.editors.DimensionEditor"> 93 | <Dimension value="[200, 10]"/> 94 | </Property> 95 | </Properties> 96 | <Constraints> 97 | <Constraint layoutClass="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout" value="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout$AbsoluteConstraintsDescription"> 98 | <AbsoluteConstraints x="470" y="210" width="260" height="10"/> 99 | </Constraint> 100 | </Constraints> 101 | </Component> 102 | <Component class="javax.swing.JSeparator" name="jSeparator2"> 103 | <Properties> 104 | <Property name="foreground" type="java.awt.Color" editor="org.netbeans.beaninfo.editors.ColorEditor"> 105 | <Color blue="ff" green="99" red="0" type="rgb"/> 106 | </Property> 107 | <Property name="preferredSize" type="java.awt.Dimension" editor="org.netbeans.beaninfo.editors.DimensionEditor"> 108 | <Dimension value="[200, 10]"/> 109 | </Property> 110 | </Properties> 111 | <Constraints> 112 | <Constraint layoutClass="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout" value="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout$AbsoluteConstraintsDescription"> 113 | <AbsoluteConstraints x="470" y="110" width="260" height="10"/> 114 | </Constraint> 115 | </Constraints> 116 | </Component> 117 | <Component class="javax.swing.JSeparator" name="jSeparator3"> 118 | <Properties> 119 | <Property name="foreground" type="java.awt.Color" editor="org.netbeans.beaninfo.editors.ColorEditor"> 120 | <Color blue="cc" green="cc" red="cc" type="rgb"/> 121 | </Property> 122 | <Property name="orientation" type="int" value="1"/> 123 | <Property name="preferredSize" type="java.awt.Dimension" editor="org.netbeans.beaninfo.editors.DimensionEditor"> 124 | <Dimension value="[200, 10]"/> 125 | </Property> 126 | </Properties> 127 | <Constraints> 128 | <Constraint layoutClass="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout" value="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout$AbsoluteConstraintsDescription"> 129 | <AbsoluteConstraints x="450" y="20" width="10" height="350"/> 130 | </Constraint> 131 | </Constraints> 132 | </Component> 133 | <Component class="javax.swing.JTextField" name="book_id"> 134 | <Properties> 135 | <Property name="font" type="java.awt.Font" editor="org.netbeans.beaninfo.editors.FontEditor"> 136 | <Font name="Segoe UI" size="12" style="0"/> 137 | </Property> 138 | <Property name="foreground" type="java.awt.Color" editor="org.netbeans.beaninfo.editors.ColorEditor"> 139 | <Color blue="66" green="66" red="66" type="rgb"/> 140 | </Property> 141 | <Property name="text" type="java.lang.String" value="Ingrese el ID del Libro a prestar"/> 142 | <Property name="border" type="javax.swing.border.Border" editor="org.netbeans.modules.form.editors2.BorderEditor"> 143 | <Border info="null"/> 144 | </Property> 145 | </Properties> 146 | <Events> 147 | <EventHandler event="mousePressed" listener="java.awt.event.MouseListener" parameters="java.awt.event.MouseEvent" handler="book_idMousePressed"/> 148 | <EventHandler event="actionPerformed" listener="java.awt.event.ActionListener" parameters="java.awt.event.ActionEvent" handler="book_idActionPerformed"/> 149 | </Events> 150 | <Constraints> 151 | <Constraint layoutClass="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout" value="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout$AbsoluteConstraintsDescription"> 152 | <AbsoluteConstraints x="470" y="180" width="260" height="30"/> 153 | </Constraint> 154 | </Constraints> 155 | </Component> 156 | <Component class="javax.swing.JTextField" name="folio"> 157 | <Properties> 158 | <Property name="font" type="java.awt.Font" editor="org.netbeans.beaninfo.editors.FontEditor"> 159 | <Font name="Segoe UI" size="12" style="0"/> 160 | </Property> 161 | <Property name="foreground" type="java.awt.Color" editor="org.netbeans.beaninfo.editors.ColorEditor"> 162 | <Color blue="66" green="66" red="66" type="rgb"/> 163 | </Property> 164 | <Property name="text" type="java.lang.String" value="Ingrese el folio del usuario"/> 165 | <Property name="border" type="javax.swing.border.Border" editor="org.netbeans.modules.form.editors2.BorderEditor"> 166 | <Border info="null"/> 167 | </Property> 168 | </Properties> 169 | <Events> 170 | <EventHandler event="mousePressed" listener="java.awt.event.MouseListener" parameters="java.awt.event.MouseEvent" handler="folioMousePressed"/> 171 | </Events> 172 | <Constraints> 173 | <Constraint layoutClass="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout" value="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout$AbsoluteConstraintsDescription"> 174 | <AbsoluteConstraints x="470" y="80" width="260" height="30"/> 175 | </Constraint> 176 | </Constraints> 177 | </Component> 178 | <Container class="javax.swing.JPanel" name="button"> 179 | <Properties> 180 | <Property name="background" type="java.awt.Color" editor="org.netbeans.beaninfo.editors.ColorEditor"> 181 | <Color blue="ad" green="5a" red="12" type="rgb"/> 182 | </Property> 183 | <Property name="cursor" type="java.awt.Cursor" editor="org.netbeans.modules.form.editors2.CursorEditor"> 184 | <Color id="Cursor de Mano"/> 185 | </Property> 186 | </Properties> 187 | <Events> 188 | <EventHandler event="mouseEntered" listener="java.awt.event.MouseListener" parameters="java.awt.event.MouseEvent" handler="buttonMouseEntered"/> 189 | <EventHandler event="mouseExited" listener="java.awt.event.MouseListener" parameters="java.awt.event.MouseEvent" handler="buttonMouseExited"/> 190 | <EventHandler event="mousePressed" listener="java.awt.event.MouseListener" parameters="java.awt.event.MouseEvent" handler="buttonMousePressed"/> 191 | </Events> 192 | <Constraints> 193 | <Constraint layoutClass="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout" value="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout$AbsoluteConstraintsDescription"> 194 | <AbsoluteConstraints x="470" y="270" width="260" height="50"/> 195 | </Constraint> 196 | </Constraints> 197 | 198 | <Layout class="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout"> 199 | <Property name="useNullLayout" type="boolean" value="false"/> 200 | </Layout> 201 | <SubComponents> 202 | <Component class="javax.swing.JLabel" name="jLabel1"> 203 | <Properties> 204 | <Property name="font" type="java.awt.Font" editor="org.netbeans.beaninfo.editors.FontEditor"> 205 | <Font name="Segoe UI" size="18" style="1"/> 206 | </Property> 207 | <Property name="foreground" type="java.awt.Color" editor="org.netbeans.beaninfo.editors.ColorEditor"> 208 | <Color blue="ff" green="ff" red="ff" type="rgb"/> 209 | </Property> 210 | <Property name="horizontalAlignment" type="int" value="0"/> 211 | <Property name="text" type="java.lang.String" value="Prestar"/> 212 | </Properties> 213 | <Constraints> 214 | <Constraint layoutClass="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout" value="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout$AbsoluteConstraintsDescription"> 215 | <AbsoluteConstraints x="100" y="10" width="-1" height="-1"/> 216 | </Constraint> 217 | </Constraints> 218 | </Component> 219 | </SubComponents> 220 | </Container> 221 | <Component class="javax.swing.JLabel" name="Image"> 222 | <Properties> 223 | <Property name="horizontalAlignment" type="int" value="0"/> 224 | <Property name="icon" type="javax.swing.Icon" editor="org.netbeans.modules.form.editors2.IconEditor"> 225 | <Image iconType="3" name="/itp_library/images/prestamo.gif"/> 226 | </Property> 227 | <Property name="maximumSize" type="java.awt.Dimension" editor="org.netbeans.beaninfo.editors.DimensionEditor"> 228 | <Dimension value="[750, 430]"/> 229 | </Property> 230 | <Property name="minimumSize" type="java.awt.Dimension" editor="org.netbeans.beaninfo.editors.DimensionEditor"> 231 | <Dimension value="[750, 430]"/> 232 | </Property> 233 | </Properties> 234 | <Constraints> 235 | <Constraint layoutClass="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout" value="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout$AbsoluteConstraintsDescription"> 236 | <AbsoluteConstraints x="-180" y="-140" width="-1" height="-1"/> 237 | </Constraint> 238 | </Constraints> 239 | </Component> 240 | </SubComponents> 241 | </Form> 242 | -------------------------------------------------------------------------------- /src/itp_library/Lendings.java: -------------------------------------------------------------------------------- 1 | /* 2 | * To change this license header, choose License Headers in Project Properties. 3 | * To change this template file, choose Tools | Templates 4 | * and open the template in the editor. 5 | */ 6 | package itp_library; 7 | 8 | import java.awt.Color; 9 | import java.sql.Connection; 10 | import java.sql.ResultSet; 11 | import java.sql.SQLException; 12 | import java.sql.Statement; 13 | import java.text.DateFormat; 14 | import java.text.ParseException; 15 | import java.text.SimpleDateFormat; 16 | import java.util.Calendar; 17 | import java.util.Date; 18 | import java.util.GregorianCalendar; 19 | import java.util.logging.Level; 20 | import java.util.logging.Logger; 21 | import javax.swing.JPanel; 22 | 23 | /** 24 | * 25 | * @author Antonio 26 | */ 27 | public class Lendings extends javax.swing.JPanel { 28 | 29 | Connect conn; 30 | Connection reg; 31 | /** 32 | * Creates new form Principal 33 | */ 34 | public Lendings() { 35 | initComponents(); 36 | conn = new Connect(); 37 | reg = conn.getConnection(); 38 | } 39 | 40 | /** 41 | * This method is called from within the constructor to initialize the form. 42 | * WARNING: Do NOT modify this code. The content of this method is always 43 | * regenerated by the Form Editor. 44 | */ 45 | @SuppressWarnings("unchecked") 46 | // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents 47 | private void initComponents() { 48 | 49 | body = new javax.swing.JPanel(); 50 | Title = new javax.swing.JLabel(); 51 | Text1 = new javax.swing.JLabel(); 52 | Text2 = new javax.swing.JLabel(); 53 | jSeparator1 = new javax.swing.JSeparator(); 54 | jSeparator2 = new javax.swing.JSeparator(); 55 | jSeparator3 = new javax.swing.JSeparator(); 56 | book_id = new javax.swing.JTextField(); 57 | folio = new javax.swing.JTextField(); 58 | button = new javax.swing.JPanel(); 59 | jLabel1 = new javax.swing.JLabel(); 60 | Image = new javax.swing.JLabel(); 61 | 62 | setBackground(new java.awt.Color(255, 255, 255)); 63 | setMinimumSize(new java.awt.Dimension(750, 430)); 64 | setPreferredSize(new java.awt.Dimension(750, 430)); 65 | setLayout(new org.netbeans.lib.awtextra.AbsoluteLayout()); 66 | 67 | body.setBackground(new java.awt.Color(255, 255, 255)); 68 | body.setLayout(new org.netbeans.lib.awtextra.AbsoluteLayout()); 69 | add(body, new org.netbeans.lib.awtextra.AbsoluteConstraints(0, 0, -1, -1)); 70 | 71 | Title.setFont(new java.awt.Font("Segoe UI", 0, 24)); // NOI18N 72 | Title.setText("Nuevo Préstamo"); 73 | add(Title, new org.netbeans.lib.awtextra.AbsoluteConstraints(20, 10, -1, -1)); 74 | 75 | Text1.setFont(new java.awt.Font("Segoe UI", 0, 14)); // NOI18N 76 | Text1.setText("Libro ID"); 77 | add(Text1, new org.netbeans.lib.awtextra.AbsoluteConstraints(470, 150, -1, -1)); 78 | 79 | Text2.setFont(new java.awt.Font("Segoe UI", 0, 14)); // NOI18N 80 | Text2.setText("Folio Usuario"); 81 | add(Text2, new org.netbeans.lib.awtextra.AbsoluteConstraints(470, 50, -1, -1)); 82 | 83 | jSeparator1.setForeground(new java.awt.Color(0, 153, 255)); 84 | jSeparator1.setPreferredSize(new java.awt.Dimension(200, 10)); 85 | add(jSeparator1, new org.netbeans.lib.awtextra.AbsoluteConstraints(470, 210, 260, 10)); 86 | 87 | jSeparator2.setForeground(new java.awt.Color(0, 153, 255)); 88 | jSeparator2.setPreferredSize(new java.awt.Dimension(200, 10)); 89 | add(jSeparator2, new org.netbeans.lib.awtextra.AbsoluteConstraints(470, 110, 260, 10)); 90 | 91 | jSeparator3.setForeground(new java.awt.Color(204, 204, 204)); 92 | jSeparator3.setOrientation(javax.swing.SwingConstants.VERTICAL); 93 | jSeparator3.setPreferredSize(new java.awt.Dimension(200, 10)); 94 | add(jSeparator3, new org.netbeans.lib.awtextra.AbsoluteConstraints(450, 20, 10, 350)); 95 | 96 | book_id.setFont(new java.awt.Font("Segoe UI", 0, 12)); // NOI18N 97 | book_id.setForeground(new java.awt.Color(102, 102, 102)); 98 | book_id.setText("Ingrese el ID del Libro a prestar"); 99 | book_id.setBorder(null); 100 | book_id.addMouseListener(new java.awt.event.MouseAdapter() { 101 | public void mousePressed(java.awt.event.MouseEvent evt) { 102 | book_idMousePressed(evt); 103 | } 104 | }); 105 | book_id.addActionListener(new java.awt.event.ActionListener() { 106 | public void actionPerformed(java.awt.event.ActionEvent evt) { 107 | book_idActionPerformed(evt); 108 | } 109 | }); 110 | add(book_id, new org.netbeans.lib.awtextra.AbsoluteConstraints(470, 180, 260, 30)); 111 | 112 | folio.setFont(new java.awt.Font("Segoe UI", 0, 12)); // NOI18N 113 | folio.setForeground(new java.awt.Color(102, 102, 102)); 114 | folio.setText("Ingrese el folio del usuario"); 115 | folio.setBorder(null); 116 | folio.addMouseListener(new java.awt.event.MouseAdapter() { 117 | public void mousePressed(java.awt.event.MouseEvent evt) { 118 | folioMousePressed(evt); 119 | } 120 | }); 121 | add(folio, new org.netbeans.lib.awtextra.AbsoluteConstraints(470, 80, 260, 30)); 122 | 123 | button.setBackground(new java.awt.Color(18, 90, 173)); 124 | button.setCursor(new java.awt.Cursor(java.awt.Cursor.HAND_CURSOR)); 125 | button.addMouseListener(new java.awt.event.MouseAdapter() { 126 | public void mouseEntered(java.awt.event.MouseEvent evt) { 127 | buttonMouseEntered(evt); 128 | } 129 | public void mouseExited(java.awt.event.MouseEvent evt) { 130 | buttonMouseExited(evt); 131 | } 132 | public void mousePressed(java.awt.event.MouseEvent evt) { 133 | buttonMousePressed(evt); 134 | } 135 | }); 136 | button.setLayout(new org.netbeans.lib.awtextra.AbsoluteLayout()); 137 | 138 | jLabel1.setFont(new java.awt.Font("Segoe UI", 1, 18)); // NOI18N 139 | jLabel1.setForeground(new java.awt.Color(255, 255, 255)); 140 | jLabel1.setHorizontalAlignment(javax.swing.SwingConstants.CENTER); 141 | jLabel1.setText("Prestar"); 142 | button.add(jLabel1, new org.netbeans.lib.awtextra.AbsoluteConstraints(100, 10, -1, -1)); 143 | 144 | add(button, new org.netbeans.lib.awtextra.AbsoluteConstraints(470, 270, 260, 50)); 145 | 146 | Image.setHorizontalAlignment(javax.swing.SwingConstants.CENTER); 147 | Image.setIcon(new javax.swing.ImageIcon(getClass().getResource("/itp_library/images/prestamo.gif"))); // NOI18N 148 | Image.setMaximumSize(new java.awt.Dimension(750, 430)); 149 | Image.setMinimumSize(new java.awt.Dimension(750, 430)); 150 | add(Image, new org.netbeans.lib.awtextra.AbsoluteConstraints(-180, -140, -1, -1)); 151 | }// </editor-fold>//GEN-END:initComponents 152 | 153 | private void book_idActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_book_idActionPerformed 154 | // TODO add your handling code here: 155 | }//GEN-LAST:event_book_idActionPerformed 156 | 157 | private void folioMousePressed(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_folioMousePressed 158 | if(folio.getText().equals("Ingrese el folio del usuario")) 159 | folio.setText(""); 160 | if(book_id.getText().equals("") || book_id.getText() == null || book_id.getText().equals(" ")) 161 | book_id.setText("Ingrese el ID del Libro a prestar"); 162 | }//GEN-LAST:event_folioMousePressed 163 | 164 | private void book_idMousePressed(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_book_idMousePressed 165 | if(book_id.getText().equals("Ingrese el ID del Libro a prestar")) 166 | book_id.setText(""); 167 | if(folio.getText().equals("") || folio.getText() == null || folio.getText().equals(" ")) 168 | folio.setText("Ingrese el folio del usuario"); 169 | }//GEN-LAST:event_book_idMousePressed 170 | 171 | private void buttonMouseEntered(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_buttonMouseEntered 172 | setColor(button); 173 | }//GEN-LAST:event_buttonMouseEntered 174 | 175 | private void buttonMouseExited(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_buttonMouseExited 176 | resetColor(button); 177 | }//GEN-LAST:event_buttonMouseExited 178 | // PRESTAR 179 | private void buttonMousePressed(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_buttonMousePressed 180 | String fol = folio.getText(); 181 | String book = book_id.getText(); 182 | int intfol = 0; 183 | 184 | // Conditions 185 | if(fol.equals("") || book.equals("")){ 186 | javax.swing.JOptionPane.showMessageDialog(this, "Debe llenar todos los campos \n", "AVISO", javax.swing.JOptionPane.INFORMATION_MESSAGE); 187 | folio.requestFocus(); 188 | } 189 | else{ 190 | try 191 | { 192 | intfol = Integer.parseInt(folio.getText()); 193 | 194 | if(intfol <= 0){ 195 | javax.swing.JOptionPane.showMessageDialog(this, "El folio del usuario debe ser mayor a 0. \n", "AVISO", javax.swing.JOptionPane.INFORMATION_MESSAGE); 196 | folio.requestFocus(); 197 | } 198 | }catch(Exception ex){ 199 | javax.swing.JOptionPane.showMessageDialog(this, "El folio del usuario debe ser un número entero. \n", "AVISO", javax.swing.JOptionPane.INFORMATION_MESSAGE); 200 | folio.requestFocus(); 201 | } 202 | } 203 | 204 | try { 205 | // Verificamos el usuario 206 | boolean pase = UserExist(intfol); 207 | if(!pase){ 208 | javax.swing.JOptionPane.showMessageDialog(this, "No existe ningún usuario con ese Folio. \n", "AVISO", javax.swing.JOptionPane.INFORMATION_MESSAGE); 209 | folio.requestFocus(); 210 | } 211 | // Verificamos el libro 212 | else if(!BookExist(book)){ 213 | javax.swing.JOptionPane.showMessageDialog(this, "No existe ningún libro con esa ID. \n", "AVISO", javax.swing.JOptionPane.INFORMATION_MESSAGE); 214 | book_id.requestFocus(); 215 | } 216 | else if(CheckLending(intfol, book)){ 217 | javax.swing.JOptionPane.showMessageDialog(this, "Esa persona ya cuenta con el préstamo de ese mismo Libro. \n", "AVISO", javax.swing.JOptionPane.INFORMATION_MESSAGE); 218 | book_id.requestFocus(); 219 | } 220 | else if(!BookAvailable(book)){ 221 | javax.swing.JOptionPane.showMessageDialog(this, "Ya no hay más libros con esa ID para prestar. \n", "AVISO", javax.swing.JOptionPane.INFORMATION_MESSAGE); 222 | book_id.requestFocus(); 223 | } 224 | else{ 225 | InsertLending(intfol, book);// Insertamos el prestamo a la DB. 226 | folio.setText(""); 227 | book_id.setText(""); 228 | } 229 | 230 | } catch (SQLException ex) { 231 | Logger.getLogger(Lendings.class.getName()).log(Level.SEVERE, null, ex); 232 | } 233 | }//GEN-LAST:event_buttonMousePressed 234 | 235 | void setColor(JPanel panel){ 236 | panel.setBackground(new Color(21,101,192)); 237 | } 238 | void resetColor(JPanel panel){ 239 | panel.setBackground(new Color(18,90,173)); 240 | } 241 | 242 | public boolean UserExist(int id) throws SQLException{ 243 | boolean res = false; 244 | Statement stm = reg.createStatement(); 245 | ResultSet re = stm.executeQuery("SELECT `id` FROM `users` WHERE `id` = '"+id+"' LIMIT 1"); 246 | if(re.next()) 247 | res = true; 248 | 249 | return res; 250 | } 251 | 252 | public boolean BookExist(String bookid) throws SQLException{ 253 | boolean res = false; 254 | Statement stm = reg.createStatement(); 255 | ResultSet re = stm.executeQuery("SELECT `id` FROM `books` WHERE `id` = '"+bookid+"' LIMIT 1"); 256 | if(re.next()) 257 | res = true; 258 | 259 | return res; 260 | } 261 | 262 | public boolean BookAvailable(String bookid) throws SQLException{ 263 | boolean res = false; 264 | Statement stm = reg.createStatement(); 265 | ResultSet re = stm.executeQuery("SELECT `available` FROM `books` WHERE `id` = '"+bookid+"' LIMIT 1"); 266 | if(re.next()){ 267 | int av = Integer.parseInt(re.getString("available")); 268 | if(av >= 1) 269 | res = true; 270 | } 271 | 272 | return res; 273 | } 274 | 275 | public boolean CheckSanction(int userid, String bookid) throws SQLException, ParseException{ 276 | boolean res = false; 277 | Statement stm = reg.createStatement(); 278 | ResultSet re = stm.executeQuery("SELECT * FROM `lendings` WHERE `id` = '"+bookid+"' AND `user_id` = '"+userid+"' LIMIT 1"); 279 | System.out.println("1"); 280 | if(re.next()){ 281 | System.out.println("2"); 282 | Date ahora = new Date(); 283 | Date returned = deStringToDate(re.getString("date_return")); 284 | System.out.println("2"); 285 | int days = diferenciasDeFechas(returned, ahora); 286 | System.out.println("3"); 287 | System.out.println(days); 288 | int days2 = diferenciasDeFechas(ahora, returned); 289 | System.out.println(days2); 290 | if(days <= 0) 291 | res = true; 292 | System.out.println("4"); 293 | } 294 | System.out.println("5"); 295 | return res; 296 | } 297 | 298 | public boolean CheckLending(int userid, String bookid) throws SQLException{ 299 | boolean res = false; 300 | Statement stm = reg.createStatement(); 301 | ResultSet re = stm.executeQuery("SELECT * FROM `lendings` WHERE `user_id` = '"+userid+"' AND `book_id` = '"+ bookid +"'"); 302 | if(re.next()){ 303 | res = true; 304 | } 305 | 306 | return res; 307 | } 308 | 309 | public void InsertLending(int id, String bookid) throws SQLException{ 310 | Statement stm = reg.createStatement(); 311 | String date = getFechaActual(); 312 | Date ahora = new Date(); 313 | Date devol = sumarFechasDias(ahora, 5);//Sumamos 5 días a la fecha actual. 314 | SimpleDateFormat formateador = new SimpleDateFormat("dd-MM-yyyy"); 315 | String dev = formateador.format(devol); 316 | stm.executeUpdate("INSERT INTO `lendings` (`id`, `user_id`, `book_id`, `date_out`, `date_return`) VALUES (NULL, '"+id+"', '"+ bookid +"', '"+ date +"', '"+dev+"')"); 317 | stm.executeUpdate("UPDATE `books` SET `available` = available-1 WHERE `id` = '"+ bookid +"';"); 318 | javax.swing.JOptionPane.showMessageDialog(this, "¡Prestamo realizado correctamente! \n", "HECHO", javax.swing.JOptionPane.INFORMATION_MESSAGE); 319 | 320 | } 321 | 322 | public void Devolutions(int fo, String bookid) throws SQLException, ParseException{ 323 | Statement stm = reg.createStatement(); 324 | int days = -1; 325 | boolean ready = false; 326 | do{ 327 | ResultSet re = stm.executeQuery("SELECT * FROM `lendings` WHERE `book_id` = '"+bookid+"' AND `user_id` = '"+fo+"' LIMIT 1"); 328 | if(re.next()){ 329 | Date ahora = new Date(); 330 | Date returned = deStringToDate(re.getString("date_return")); 331 | days = diferenciasDeFechas(ahora, returned); 332 | } 333 | ready = true; 334 | }while(!ready); 335 | if(ready){ 336 | stm.executeUpdate("DELETE FROM `lendings` WHERE `book_id` = '"+ bookid +"' AND `user_id` = '"+ fo +"' LIMIT 1"); 337 | stm.executeUpdate("UPDATE `books` SET `available` = available+1 WHERE `id` = '"+ bookid +"';"); 338 | if(days <= 0){ 339 | int money = 0; 340 | money = days * -1; 341 | int cost = 5;// Costo por día retardado. 342 | money = money * cost; 343 | stm.executeUpdate("UPDATE `users` SET `sanctions` = sanctions+1, `sanc_money` = sanc_money+'"+ money +"' WHERE `id` = '"+ fo +"';"); 344 | javax.swing.JOptionPane.showMessageDialog(this, "¡SANCIONADO POR ENTREGA A DESTIEMPO! ($"+money+") \n", "AVISO", javax.swing.JOptionPane.INFORMATION_MESSAGE); 345 | } 346 | javax.swing.JOptionPane.showMessageDialog(this, "¡Devolución realizada correctamente! \n", "HECHO", javax.swing.JOptionPane.INFORMATION_MESSAGE); 347 | 348 | } 349 | } 350 | 351 | public static String getFechaActual() { 352 | Date ahora = new Date(); 353 | SimpleDateFormat formateador = new SimpleDateFormat("dd-MM-yyyy"); 354 | return formateador.format(ahora); 355 | } 356 | 357 | public static java.sql.Date sumarFechasDias(java.util.Date fch, int dias) { 358 | Calendar cal = new GregorianCalendar(); 359 | cal.setTimeInMillis(fch.getTime()); 360 | cal.add(Calendar.DATE, dias); 361 | return new java.sql.Date(cal.getTimeInMillis()); 362 | } 363 | 364 | //Diferencias entre dos fechas 365 | //@param fechaInicial La fecha de inicio 366 | //@param fechaFinal La fecha de fin 367 | //@return Retorna el numero de dias entre dos fechas 368 | public static synchronized int diferenciasDeFechas(Date fechaInicial, Date fechaFinal) throws ParseException { 369 | 370 | DateFormat df = DateFormat.getDateInstance(DateFormat.MEDIUM); 371 | String fechaInicioString = df.format(fechaInicial); 372 | try { 373 | fechaInicial = df.parse(fechaInicioString); 374 | } catch (ParseException ex) { 375 | } 376 | 377 | String fechaFinalString = df.format(fechaFinal); 378 | fechaFinal = df.parse(fechaFinalString); 379 | 380 | long fechaInicialMs = fechaInicial.getTime(); 381 | long fechaFinalMs = fechaFinal.getTime(); 382 | long diferencia = fechaFinalMs - fechaInicialMs; 383 | double dias = Math.floor(diferencia / (1000 * 60 * 60 * 24)); 384 | return ((int) dias); 385 | } 386 | 387 | //Devuele un java.util.Date desde un String en formato dd-MM-yyyy 388 | //@param La fecha a convertir a formato date 389 | //@return Retorna la fecha en formato Date 390 | public static synchronized java.util.Date deStringToDate(String fecha) { 391 | SimpleDateFormat formatoDelTexto = new SimpleDateFormat("dd-MM-yyyy"); 392 | Date fechaEnviar = null; 393 | try { 394 | fechaEnviar = formatoDelTexto.parse(fecha); 395 | return fechaEnviar; 396 | } catch (ParseException ex) { 397 | ex.printStackTrace(); 398 | return null; 399 | } 400 | } 401 | 402 | // Variables declaration - do not modify//GEN-BEGIN:variables 403 | private javax.swing.JLabel Image; 404 | private javax.swing.JLabel Text1; 405 | private javax.swing.JLabel Text2; 406 | private javax.swing.JLabel Title; 407 | private javax.swing.JPanel body; 408 | private javax.swing.JTextField book_id; 409 | private javax.swing.JPanel button; 410 | private javax.swing.JTextField folio; 411 | private javax.swing.JLabel jLabel1; 412 | private javax.swing.JSeparator jSeparator1; 413 | private javax.swing.JSeparator jSeparator2; 414 | private javax.swing.JSeparator jSeparator3; 415 | // End of variables declaration//GEN-END:variables 416 | } 417 | -------------------------------------------------------------------------------- /src/itp_library/Principal.form: -------------------------------------------------------------------------------- 1 | <?xml version="1.0" encoding="UTF-8" ?> 2 | 3 | <Form version="1.3" maxVersion="1.9" type="org.netbeans.modules.form.forminfo.JPanelFormInfo"> 4 | <Properties> 5 | <Property name="background" type="java.awt.Color" editor="org.netbeans.beaninfo.editors.ColorEditor"> 6 | <Color blue="ff" green="ff" red="ff" type="rgb"/> 7 | </Property> 8 | <Property name="minimumSize" type="java.awt.Dimension" editor="org.netbeans.beaninfo.editors.DimensionEditor"> 9 | <Dimension value="[750, 430]"/> 10 | </Property> 11 | <Property name="preferredSize" type="java.awt.Dimension" editor="org.netbeans.beaninfo.editors.DimensionEditor"> 12 | <Dimension value="[750, 430]"/> 13 | </Property> 14 | </Properties> 15 | <AuxValues> 16 | <AuxValue name="FormSettings_autoResourcing" type="java.lang.Integer" value="0"/> 17 | <AuxValue name="FormSettings_autoSetComponentName" type="java.lang.Boolean" value="false"/> 18 | <AuxValue name="FormSettings_generateFQN" type="java.lang.Boolean" value="true"/> 19 | <AuxValue name="FormSettings_generateMnemonicsCode" type="java.lang.Boolean" value="false"/> 20 | <AuxValue name="FormSettings_i18nAutoMode" type="java.lang.Boolean" value="false"/> 21 | <AuxValue name="FormSettings_layoutCodeTarget" type="java.lang.Integer" value="1"/> 22 | <AuxValue name="FormSettings_listenerGenerationStyle" type="java.lang.Integer" value="0"/> 23 | <AuxValue name="FormSettings_variablesLocal" type="java.lang.Boolean" value="false"/> 24 | <AuxValue name="FormSettings_variablesModifier" type="java.lang.Integer" value="2"/> 25 | <AuxValue name="designerSize" type="java.awt.Dimension" value="-84,-19,0,5,115,114,0,18,106,97,118,97,46,97,119,116,46,68,105,109,101,110,115,105,111,110,65,-114,-39,-41,-84,95,68,20,2,0,2,73,0,6,104,101,105,103,104,116,73,0,5,119,105,100,116,104,120,112,0,0,1,-105,0,0,2,-10"/> 26 | </AuxValues> 27 | 28 | <Layout class="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout"> 29 | <Property name="useNullLayout" type="boolean" value="false"/> 30 | </Layout> 31 | <SubComponents> 32 | <Container class="javax.swing.JPanel" name="body"> 33 | <Properties> 34 | <Property name="background" type="java.awt.Color" editor="org.netbeans.beaninfo.editors.ColorEditor"> 35 | <Color blue="ff" green="ff" red="ff" type="rgb"/> 36 | </Property> 37 | </Properties> 38 | <Constraints> 39 | <Constraint layoutClass="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout" value="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout$AbsoluteConstraintsDescription"> 40 | <AbsoluteConstraints x="0" y="0" width="-1" height="-1"/> 41 | </Constraint> 42 | </Constraints> 43 | 44 | <Layout class="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout"> 45 | <Property name="useNullLayout" type="boolean" value="false"/> 46 | </Layout> 47 | </Container> 48 | <Component class="javax.swing.JLabel" name="Title"> 49 | <Properties> 50 | <Property name="font" type="java.awt.Font" editor="org.netbeans.beaninfo.editors.FontEditor"> 51 | <Font name="Segoe UI" size="24" style="0"/> 52 | </Property> 53 | <Property name="text" type="java.lang.String" value="Bienvenido"/> 54 | </Properties> 55 | <Constraints> 56 | <Constraint layoutClass="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout" value="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout$AbsoluteConstraintsDescription"> 57 | <AbsoluteConstraints x="20" y="10" width="-1" height="-1"/> 58 | </Constraint> 59 | </Constraints> 60 | </Component> 61 | <Component class="javax.swing.JLabel" name="Text1"> 62 | <Properties> 63 | <Property name="font" type="java.awt.Font" editor="org.netbeans.beaninfo.editors.FontEditor"> 64 | <Font name="Segoe UI" size="14" style="0"/> 65 | </Property> 66 | <Property name="text" type="java.lang.String" value="Sistema de Gestión para Biblioteca Pública. Controle y administre de"/> 67 | </Properties> 68 | <Constraints> 69 | <Constraint layoutClass="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout" value="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout$AbsoluteConstraintsDescription"> 70 | <AbsoluteConstraints x="30" y="70" width="-1" height="-1"/> 71 | </Constraint> 72 | </Constraints> 73 | </Component> 74 | <Component class="javax.swing.JLabel" name="jLabel1"> 75 | <Properties> 76 | <Property name="font" type="java.awt.Font" editor="org.netbeans.beaninfo.editors.FontEditor"> 77 | <Font name="Segoe UI" size="14" style="0"/> 78 | </Property> 79 | <Property name="text" type="java.lang.String" value="forma óptima y fácil el flujo de préstamos y devoluciones de Libros. "/> 80 | </Properties> 81 | <Constraints> 82 | <Constraint layoutClass="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout" value="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout$AbsoluteConstraintsDescription"> 83 | <AbsoluteConstraints x="30" y="90" width="-1" height="-1"/> 84 | </Constraint> 85 | </Constraints> 86 | </Component> 87 | <Component class="javax.swing.JLabel" name="jLabel2"> 88 | <Properties> 89 | <Property name="font" type="java.awt.Font" editor="org.netbeans.beaninfo.editors.FontEditor"> 90 | <Font name="Segoe UI" size="14" style="0"/> 91 | </Property> 92 | <Property name="text" type="java.lang.String" value="Esta herramienta le permitirá llevar un control completo y detallado de su Biblioteca,"/> 93 | </Properties> 94 | <Constraints> 95 | <Constraint layoutClass="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout" value="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout$AbsoluteConstraintsDescription"> 96 | <AbsoluteConstraints x="30" y="130" width="-1" height="-1"/> 97 | </Constraint> 98 | </Constraints> 99 | </Component> 100 | <Component class="javax.swing.JLabel" name="jLabel3"> 101 | <Properties> 102 | <Property name="font" type="java.awt.Font" editor="org.netbeans.beaninfo.editors.FontEditor"> 103 | <Font name="Segoe UI" size="14" style="0"/> 104 | </Property> 105 | <Property name="text" type="java.lang.String" value="tendrá acceso a herramientas especiales para tareas específicas, como lo son:"/> 106 | </Properties> 107 | <Constraints> 108 | <Constraint layoutClass="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout" value="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout$AbsoluteConstraintsDescription"> 109 | <AbsoluteConstraints x="30" y="150" width="-1" height="-1"/> 110 | </Constraint> 111 | </Constraints> 112 | </Component> 113 | <Component class="javax.swing.JLabel" name="Image"> 114 | <Properties> 115 | <Property name="horizontalAlignment" type="int" value="0"/> 116 | <Property name="icon" type="javax.swing.Icon" editor="org.netbeans.modules.form.editors2.IconEditor"> 117 | <Image iconType="3" name="/itp_library/images/336799ebb339821f342bc5a13386aff2.jpg"/> 118 | </Property> 119 | </Properties> 120 | <Constraints> 121 | <Constraint layoutClass="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout" value="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout$AbsoluteConstraintsDescription"> 122 | <AbsoluteConstraints x="450" y="80" width="-1" height="-1"/> 123 | </Constraint> 124 | </Constraints> 125 | </Component> 126 | <Component class="javax.swing.JLabel" name="jLabel4"> 127 | <Properties> 128 | <Property name="font" type="java.awt.Font" editor="org.netbeans.beaninfo.editors.FontEditor"> 129 | <Font name="Segoe UI" size="14" style="0"/> 130 | </Property> 131 | <Property name="text" type="java.lang.String" value="• Sección de Reportes de acciones en el sistema"/> 132 | </Properties> 133 | <Constraints> 134 | <Constraint layoutClass="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout" value="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout$AbsoluteConstraintsDescription"> 135 | <AbsoluteConstraints x="30" y="300" width="330" height="-1"/> 136 | </Constraint> 137 | </Constraints> 138 | </Component> 139 | <Component class="javax.swing.JLabel" name="jLabel5"> 140 | <Properties> 141 | <Property name="font" type="java.awt.Font" editor="org.netbeans.beaninfo.editors.FontEditor"> 142 | <Font name="Segoe UI" size="14" style="0"/> 143 | </Property> 144 | <Property name="text" type="java.lang.String" value="• Préstamos"/> 145 | </Properties> 146 | <Constraints> 147 | <Constraint layoutClass="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout" value="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout$AbsoluteConstraintsDescription"> 148 | <AbsoluteConstraints x="30" y="200" width="170" height="-1"/> 149 | </Constraint> 150 | </Constraints> 151 | </Component> 152 | <Component class="javax.swing.JLabel" name="jLabel6"> 153 | <Properties> 154 | <Property name="font" type="java.awt.Font" editor="org.netbeans.beaninfo.editors.FontEditor"> 155 | <Font name="Segoe UI" size="14" style="0"/> 156 | </Property> 157 | <Property name="text" type="java.lang.String" value="• Devoluciones"/> 158 | </Properties> 159 | <Constraints> 160 | <Constraint layoutClass="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout" value="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout$AbsoluteConstraintsDescription"> 161 | <AbsoluteConstraints x="30" y="220" width="170" height="-1"/> 162 | </Constraint> 163 | </Constraints> 164 | </Component> 165 | <Component class="javax.swing.JLabel" name="jLabel7"> 166 | <Properties> 167 | <Property name="font" type="java.awt.Font" editor="org.netbeans.beaninfo.editors.FontEditor"> 168 | <Font name="Segoe UI" size="14" style="0"/> 169 | </Property> 170 | <Property name="text" type="java.lang.String" value="• Registro de Usuarios y Libros Nuevos"/> 171 | </Properties> 172 | <Constraints> 173 | <Constraint layoutClass="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout" value="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout$AbsoluteConstraintsDescription"> 174 | <AbsoluteConstraints x="30" y="240" width="320" height="-1"/> 175 | </Constraint> 176 | </Constraints> 177 | </Component> 178 | <Component class="javax.swing.JLabel" name="jLabel8"> 179 | <Properties> 180 | <Property name="font" type="java.awt.Font" editor="org.netbeans.beaninfo.editors.FontEditor"> 181 | <Font name="Segoe UI" size="14" style="0"/> 182 | </Property> 183 | <Property name="text" type="java.lang.String" value="• Edición de Usuarios y Libros existentes"/> 184 | </Properties> 185 | <Constraints> 186 | <Constraint layoutClass="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout" value="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout$AbsoluteConstraintsDescription"> 187 | <AbsoluteConstraints x="30" y="260" width="330" height="-1"/> 188 | </Constraint> 189 | </Constraints> 190 | </Component> 191 | <Component class="javax.swing.JLabel" name="jLabel9"> 192 | <Properties> 193 | <Property name="font" type="java.awt.Font" editor="org.netbeans.beaninfo.editors.FontEditor"> 194 | <Font name="Segoe UI" size="14" style="0"/> 195 | </Property> 196 | <Property name="text" type="java.lang.String" value="• Eliminar todo tipo de Registros"/> 197 | </Properties> 198 | <Constraints> 199 | <Constraint layoutClass="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout" value="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout$AbsoluteConstraintsDescription"> 200 | <AbsoluteConstraints x="30" y="280" width="330" height="-1"/> 201 | </Constraint> 202 | </Constraints> 203 | </Component> 204 | </SubComponents> 205 | </Form> 206 | -------------------------------------------------------------------------------- /src/itp_library/Principal.java: -------------------------------------------------------------------------------- 1 | /* 2 | * To change this license header, choose License Headers in Project Properties. 3 | * To change this template file, choose Tools | Templates 4 | * and open the template in the editor. 5 | */ 6 | package itp_library; 7 | 8 | /** 9 | * 10 | * @author Antonio 11 | */ 12 | public class Principal extends javax.swing.JPanel { 13 | 14 | /** 15 | * Creates new form Principal 16 | */ 17 | public Principal() { 18 | initComponents(); 19 | } 20 | 21 | /** 22 | * This method is called from within the constructor to initialize the form. 23 | * WARNING: Do NOT modify this code. The content of this method is always 24 | * regenerated by the Form Editor. 25 | */ 26 | @SuppressWarnings("unchecked") 27 | // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents 28 | private void initComponents() { 29 | 30 | body = new javax.swing.JPanel(); 31 | Title = new javax.swing.JLabel(); 32 | Text1 = new javax.swing.JLabel(); 33 | jLabel1 = new javax.swing.JLabel(); 34 | jLabel2 = new javax.swing.JLabel(); 35 | jLabel3 = new javax.swing.JLabel(); 36 | Image = new javax.swing.JLabel(); 37 | jLabel4 = new javax.swing.JLabel(); 38 | jLabel5 = new javax.swing.JLabel(); 39 | jLabel6 = new javax.swing.JLabel(); 40 | jLabel7 = new javax.swing.JLabel(); 41 | jLabel8 = new javax.swing.JLabel(); 42 | jLabel9 = new javax.swing.JLabel(); 43 | 44 | setBackground(new java.awt.Color(255, 255, 255)); 45 | setMinimumSize(new java.awt.Dimension(750, 430)); 46 | setPreferredSize(new java.awt.Dimension(750, 430)); 47 | setLayout(new org.netbeans.lib.awtextra.AbsoluteLayout()); 48 | 49 | body.setBackground(new java.awt.Color(255, 255, 255)); 50 | body.setLayout(new org.netbeans.lib.awtextra.AbsoluteLayout()); 51 | add(body, new org.netbeans.lib.awtextra.AbsoluteConstraints(0, 0, -1, -1)); 52 | 53 | Title.setFont(new java.awt.Font("Segoe UI", 0, 24)); // NOI18N 54 | Title.setText("Bienvenido"); 55 | add(Title, new org.netbeans.lib.awtextra.AbsoluteConstraints(20, 10, -1, -1)); 56 | 57 | Text1.setFont(new java.awt.Font("Segoe UI", 0, 14)); // NOI18N 58 | Text1.setText("Sistema de Gestión para Biblioteca Pública. Controle y administre de"); 59 | add(Text1, new org.netbeans.lib.awtextra.AbsoluteConstraints(30, 70, -1, -1)); 60 | 61 | jLabel1.setFont(new java.awt.Font("Segoe UI", 0, 14)); // NOI18N 62 | jLabel1.setText("forma óptima y fácil el flujo de préstamos y devoluciones de Libros. "); 63 | add(jLabel1, new org.netbeans.lib.awtextra.AbsoluteConstraints(30, 90, -1, -1)); 64 | 65 | jLabel2.setFont(new java.awt.Font("Segoe UI", 0, 14)); // NOI18N 66 | jLabel2.setText("Esta herramienta le permitirá llevar un control completo y detallado de su Biblioteca,"); 67 | add(jLabel2, new org.netbeans.lib.awtextra.AbsoluteConstraints(30, 130, -1, -1)); 68 | 69 | jLabel3.setFont(new java.awt.Font("Segoe UI", 0, 14)); // NOI18N 70 | jLabel3.setText("tendrá acceso a herramientas especiales para tareas específicas, como lo son:"); 71 | add(jLabel3, new org.netbeans.lib.awtextra.AbsoluteConstraints(30, 150, -1, -1)); 72 | 73 | Image.setHorizontalAlignment(javax.swing.SwingConstants.CENTER); 74 | Image.setIcon(new javax.swing.ImageIcon(getClass().getResource("/itp_library/images/336799ebb339821f342bc5a13386aff2.jpg"))); // NOI18N 75 | add(Image, new org.netbeans.lib.awtextra.AbsoluteConstraints(450, 80, -1, -1)); 76 | 77 | jLabel4.setFont(new java.awt.Font("Segoe UI", 0, 14)); // NOI18N 78 | jLabel4.setText("• Sección de Reportes de acciones en el sistema"); 79 | add(jLabel4, new org.netbeans.lib.awtextra.AbsoluteConstraints(30, 300, 330, -1)); 80 | 81 | jLabel5.setFont(new java.awt.Font("Segoe UI", 0, 14)); // NOI18N 82 | jLabel5.setText("• Préstamos"); 83 | add(jLabel5, new org.netbeans.lib.awtextra.AbsoluteConstraints(30, 200, 170, -1)); 84 | 85 | jLabel6.setFont(new java.awt.Font("Segoe UI", 0, 14)); // NOI18N 86 | jLabel6.setText("• Devoluciones"); 87 | add(jLabel6, new org.netbeans.lib.awtextra.AbsoluteConstraints(30, 220, 170, -1)); 88 | 89 | jLabel7.setFont(new java.awt.Font("Segoe UI", 0, 14)); // NOI18N 90 | jLabel7.setText("• Registro de Usuarios y Libros Nuevos"); 91 | add(jLabel7, new org.netbeans.lib.awtextra.AbsoluteConstraints(30, 240, 320, -1)); 92 | 93 | jLabel8.setFont(new java.awt.Font("Segoe UI", 0, 14)); // NOI18N 94 | jLabel8.setText("• Edición de Usuarios y Libros existentes"); 95 | add(jLabel8, new org.netbeans.lib.awtextra.AbsoluteConstraints(30, 260, 330, -1)); 96 | 97 | jLabel9.setFont(new java.awt.Font("Segoe UI", 0, 14)); // NOI18N 98 | jLabel9.setText("• Eliminar todo tipo de Registros"); 99 | add(jLabel9, new org.netbeans.lib.awtextra.AbsoluteConstraints(30, 280, 330, -1)); 100 | }// </editor-fold>//GEN-END:initComponents 101 | 102 | 103 | // Variables declaration - do not modify//GEN-BEGIN:variables 104 | private javax.swing.JLabel Image; 105 | private javax.swing.JLabel Text1; 106 | private javax.swing.JLabel Title; 107 | private javax.swing.JPanel body; 108 | private javax.swing.JLabel jLabel1; 109 | private javax.swing.JLabel jLabel2; 110 | private javax.swing.JLabel jLabel3; 111 | private javax.swing.JLabel jLabel4; 112 | private javax.swing.JLabel jLabel5; 113 | private javax.swing.JLabel jLabel6; 114 | private javax.swing.JLabel jLabel7; 115 | private javax.swing.JLabel jLabel8; 116 | private javax.swing.JLabel jLabel9; 117 | // End of variables declaration//GEN-END:variables 118 | } 119 | -------------------------------------------------------------------------------- /src/itp_library/Reports.form: -------------------------------------------------------------------------------- 1 | <?xml version="1.0" encoding="UTF-8" ?> 2 | 3 | <Form version="1.5" maxVersion="1.9" type="org.netbeans.modules.form.forminfo.JPanelFormInfo"> 4 | <Properties> 5 | <Property name="background" type="java.awt.Color" editor="org.netbeans.beaninfo.editors.ColorEditor"> 6 | <Color blue="ff" green="ff" red="ff" type="rgb"/> 7 | </Property> 8 | <Property name="minimumSize" type="java.awt.Dimension" editor="org.netbeans.beaninfo.editors.DimensionEditor"> 9 | <Dimension value="[750, 430]"/> 10 | </Property> 11 | <Property name="preferredSize" type="java.awt.Dimension" editor="org.netbeans.beaninfo.editors.DimensionEditor"> 12 | <Dimension value="[750, 430]"/> 13 | </Property> 14 | </Properties> 15 | <AuxValues> 16 | <AuxValue name="FormSettings_autoResourcing" type="java.lang.Integer" value="0"/> 17 | <AuxValue name="FormSettings_autoSetComponentName" type="java.lang.Boolean" value="false"/> 18 | <AuxValue name="FormSettings_generateFQN" type="java.lang.Boolean" value="true"/> 19 | <AuxValue name="FormSettings_generateMnemonicsCode" type="java.lang.Boolean" value="false"/> 20 | <AuxValue name="FormSettings_i18nAutoMode" type="java.lang.Boolean" value="false"/> 21 | <AuxValue name="FormSettings_layoutCodeTarget" type="java.lang.Integer" value="1"/> 22 | <AuxValue name="FormSettings_listenerGenerationStyle" type="java.lang.Integer" value="0"/> 23 | <AuxValue name="FormSettings_variablesLocal" type="java.lang.Boolean" value="false"/> 24 | <AuxValue name="FormSettings_variablesModifier" type="java.lang.Integer" value="2"/> 25 | <AuxValue name="designerSize" type="java.awt.Dimension" value="-84,-19,0,5,115,114,0,18,106,97,118,97,46,97,119,116,46,68,105,109,101,110,115,105,111,110,65,-114,-39,-41,-84,95,68,20,2,0,2,73,0,6,104,101,105,103,104,116,73,0,5,119,105,100,116,104,120,112,0,0,1,-84,0,0,2,-10"/> 26 | </AuxValues> 27 | 28 | <Layout class="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout"> 29 | <Property name="useNullLayout" type="boolean" value="false"/> 30 | </Layout> 31 | <SubComponents> 32 | <Container class="javax.swing.JPanel" name="body"> 33 | <Properties> 34 | <Property name="background" type="java.awt.Color" editor="org.netbeans.beaninfo.editors.ColorEditor"> 35 | <Color blue="ff" green="ff" red="ff" type="rgb"/> 36 | </Property> 37 | </Properties> 38 | <Constraints> 39 | <Constraint layoutClass="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout" value="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout$AbsoluteConstraintsDescription"> 40 | <AbsoluteConstraints x="0" y="0" width="-1" height="-1"/> 41 | </Constraint> 42 | </Constraints> 43 | 44 | <Layout class="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout"> 45 | <Property name="useNullLayout" type="boolean" value="false"/> 46 | </Layout> 47 | </Container> 48 | <Component class="javax.swing.JLabel" name="Title"> 49 | <Properties> 50 | <Property name="font" type="java.awt.Font" editor="org.netbeans.beaninfo.editors.FontEditor"> 51 | <Font name="Segoe UI" size="24" style="0"/> 52 | </Property> 53 | <Property name="text" type="java.lang.String" value="Reportes"/> 54 | </Properties> 55 | <Constraints> 56 | <Constraint layoutClass="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout" value="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout$AbsoluteConstraintsDescription"> 57 | <AbsoluteConstraints x="20" y="10" width="-1" height="-1"/> 58 | </Constraint> 59 | </Constraints> 60 | </Component> 61 | <Container class="javax.swing.JScrollPane" name="jScrollPane1"> 62 | <AuxValues> 63 | <AuxValue name="autoScrollPane" type="java.lang.Boolean" value="true"/> 64 | </AuxValues> 65 | <Constraints> 66 | <Constraint layoutClass="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout" value="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout$AbsoluteConstraintsDescription"> 67 | <AbsoluteConstraints x="0" y="50" width="750" height="330"/> 68 | </Constraint> 69 | </Constraints> 70 | 71 | <Layout class="org.netbeans.modules.form.compat2.layouts.support.JScrollPaneSupportLayout"/> 72 | <SubComponents> 73 | <Component class="javax.swing.JTable" name="jTable1"> 74 | <Properties> 75 | <Property name="font" type="java.awt.Font" editor="org.netbeans.beaninfo.editors.FontEditor"> 76 | <Font name="Segoe UI" size="11" style="0"/> 77 | </Property> 78 | <Property name="model" type="javax.swing.table.TableModel" editor="org.netbeans.modules.form.editors2.TableModelEditor"> 79 | <Table columnCount="4" rowCount="19"> 80 | <Column editable="false" title="User ID" type="java.lang.String"/> 81 | <Column editable="false" title="Book ID" type="java.lang.String"/> 82 | <Column editable="false" title="Fecha de Salida" type="java.lang.String"/> 83 | <Column editable="false" title="Fecha de Entrega" type="java.lang.String"/> 84 | </Table> 85 | </Property> 86 | <Property name="columnModel" type="javax.swing.table.TableColumnModel" editor="org.netbeans.modules.form.editors2.TableColumnModelEditor"> 87 | <TableColumnModel selectionModel="0"> 88 | <Column maxWidth="-1" minWidth="-1" prefWidth="-1" resizable="true"> 89 | <Title/> 90 | <Editor/> 91 | <Renderer/> 92 | </Column> 93 | <Column maxWidth="-1" minWidth="-1" prefWidth="-1" resizable="true"> 94 | <Title/> 95 | <Editor/> 96 | <Renderer/> 97 | </Column> 98 | <Column maxWidth="-1" minWidth="-1" prefWidth="-1" resizable="true"> 99 | <Title/> 100 | <Editor/> 101 | <Renderer/> 102 | </Column> 103 | <Column maxWidth="-1" minWidth="-1" prefWidth="-1" resizable="true"> 104 | <Title/> 105 | <Editor/> 106 | <Renderer/> 107 | </Column> 108 | </TableColumnModel> 109 | </Property> 110 | <Property name="tableHeader" type="javax.swing.table.JTableHeader" editor="org.netbeans.modules.form.editors2.JTableHeaderEditor"> 111 | <TableHeader reorderingAllowed="false" resizingAllowed="true"/> 112 | </Property> 113 | </Properties> 114 | <Events> 115 | <EventHandler event="inputMethodTextChanged" listener="java.awt.event.InputMethodListener" parameters="java.awt.event.InputMethodEvent" handler="jTable1InputMethodTextChanged"/> 116 | </Events> 117 | </Component> 118 | </SubComponents> 119 | </Container> 120 | <Container class="javax.swing.JPanel" name="button"> 121 | <Properties> 122 | <Property name="background" type="java.awt.Color" editor="org.netbeans.beaninfo.editors.ColorEditor"> 123 | <Color blue="ad" green="5a" red="12" type="rgb"/> 124 | </Property> 125 | <Property name="cursor" type="java.awt.Cursor" editor="org.netbeans.modules.form.editors2.CursorEditor"> 126 | <Color id="Cursor de Mano"/> 127 | </Property> 128 | </Properties> 129 | <Events> 130 | <EventHandler event="mouseEntered" listener="java.awt.event.MouseListener" parameters="java.awt.event.MouseEvent" handler="buttonMouseEntered"/> 131 | <EventHandler event="mouseExited" listener="java.awt.event.MouseListener" parameters="java.awt.event.MouseEvent" handler="buttonMouseExited"/> 132 | <EventHandler event="mousePressed" listener="java.awt.event.MouseListener" parameters="java.awt.event.MouseEvent" handler="buttonMousePressed"/> 133 | </Events> 134 | <Constraints> 135 | <Constraint layoutClass="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout" value="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout$AbsoluteConstraintsDescription"> 136 | <AbsoluteConstraints x="600" y="390" width="140" height="30"/> 137 | </Constraint> 138 | </Constraints> 139 | 140 | <Layout class="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout"> 141 | <Property name="useNullLayout" type="boolean" value="false"/> 142 | </Layout> 143 | <SubComponents> 144 | <Component class="javax.swing.JLabel" name="jLabel1"> 145 | <Properties> 146 | <Property name="font" type="java.awt.Font" editor="org.netbeans.beaninfo.editors.FontEditor"> 147 | <Font name="Segoe UI" size="18" style="1"/> 148 | </Property> 149 | <Property name="foreground" type="java.awt.Color" editor="org.netbeans.beaninfo.editors.ColorEditor"> 150 | <Color blue="ff" green="ff" red="ff" type="rgb"/> 151 | </Property> 152 | <Property name="horizontalAlignment" type="int" value="0"/> 153 | <Property name="text" type="java.lang.String" value="Actualizar"/> 154 | </Properties> 155 | <Events> 156 | <EventHandler event="mousePressed" listener="java.awt.event.MouseListener" parameters="java.awt.event.MouseEvent" handler="jLabel1MousePressed"/> 157 | </Events> 158 | <Constraints> 159 | <Constraint layoutClass="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout" value="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout$AbsoluteConstraintsDescription"> 160 | <AbsoluteConstraints x="20" y="0" width="100" height="30"/> 161 | </Constraint> 162 | </Constraints> 163 | </Component> 164 | </SubComponents> 165 | </Container> 166 | </SubComponents> 167 | </Form> 168 | -------------------------------------------------------------------------------- /src/itp_library/Reports.java: -------------------------------------------------------------------------------- 1 | /* 2 | * To change this license header, choose License Headers in Project Properties. 3 | * To change this template file, choose Tools | Templates 4 | * and open the template in the editor. 5 | */ 6 | package itp_library; 7 | 8 | import java.awt.Color; 9 | import java.sql.Connection; 10 | import java.sql.ResultSet; 11 | import java.sql.SQLException; 12 | import java.sql.Statement; 13 | import java.util.logging.Level; 14 | import java.util.logging.Logger; 15 | import javax.swing.DefaultListModel; 16 | import javax.swing.JPanel; 17 | 18 | /** 19 | * 20 | * @author Antonio 21 | */ 22 | public class Reports extends javax.swing.JPanel { 23 | 24 | Connect conn; 25 | Connection reg; 26 | /** 27 | * Creates new form Principal 28 | */ 29 | public Reports() { 30 | initComponents(); 31 | conn = new Connect(); 32 | reg = conn.getConnection(); 33 | try { 34 | GetReports(); 35 | } catch (SQLException ex) { 36 | Logger.getLogger(Reports.class.getName()).log(Level.SEVERE, null, ex); 37 | } 38 | } 39 | 40 | /** 41 | * This method is called from within the constructor to initialize the form. 42 | * WARNING: Do NOT modify this code. The content of this method is always 43 | * regenerated by the Form Editor. 44 | */ 45 | @SuppressWarnings("unchecked") 46 | // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents 47 | private void initComponents() { 48 | 49 | body = new javax.swing.JPanel(); 50 | Title = new javax.swing.JLabel(); 51 | jScrollPane1 = new javax.swing.JScrollPane(); 52 | jTable1 = new javax.swing.JTable(); 53 | button = new javax.swing.JPanel(); 54 | jLabel1 = new javax.swing.JLabel(); 55 | 56 | setBackground(new java.awt.Color(255, 255, 255)); 57 | setMinimumSize(new java.awt.Dimension(750, 430)); 58 | setPreferredSize(new java.awt.Dimension(750, 430)); 59 | setLayout(new org.netbeans.lib.awtextra.AbsoluteLayout()); 60 | 61 | body.setBackground(new java.awt.Color(255, 255, 255)); 62 | body.setLayout(new org.netbeans.lib.awtextra.AbsoluteLayout()); 63 | add(body, new org.netbeans.lib.awtextra.AbsoluteConstraints(0, 0, -1, -1)); 64 | 65 | Title.setFont(new java.awt.Font("Segoe UI", 0, 24)); // NOI18N 66 | Title.setText("Reportes"); 67 | add(Title, new org.netbeans.lib.awtextra.AbsoluteConstraints(20, 10, -1, -1)); 68 | 69 | jTable1.setFont(new java.awt.Font("Segoe UI", 0, 11)); // NOI18N 70 | jTable1.setModel(new javax.swing.table.DefaultTableModel( 71 | new Object [][] { 72 | {null, null, null, null}, 73 | {null, null, null, null}, 74 | {null, null, null, null}, 75 | {null, null, null, null}, 76 | {null, null, null, null}, 77 | {null, null, null, null}, 78 | {null, null, null, null}, 79 | {null, null, null, null}, 80 | {null, null, null, null}, 81 | {null, null, null, null}, 82 | {null, null, null, null}, 83 | {null, null, null, null}, 84 | {null, null, null, null}, 85 | {null, null, null, null}, 86 | {null, null, null, null}, 87 | {null, null, null, null}, 88 | {null, null, null, null}, 89 | {null, null, null, null}, 90 | {null, null, null, null} 91 | }, 92 | new String [] { 93 | "User ID", "Book ID", "Fecha de Salida", "Fecha de Entrega" 94 | } 95 | ) { 96 | Class[] types = new Class [] { 97 | java.lang.String.class, java.lang.String.class, java.lang.String.class, java.lang.String.class 98 | }; 99 | boolean[] canEdit = new boolean [] { 100 | false, false, false, false 101 | }; 102 | 103 | public Class getColumnClass(int columnIndex) { 104 | return types [columnIndex]; 105 | } 106 | 107 | public boolean isCellEditable(int rowIndex, int columnIndex) { 108 | return canEdit [columnIndex]; 109 | } 110 | }); 111 | jTable1.getTableHeader().setReorderingAllowed(false); 112 | jTable1.addInputMethodListener(new java.awt.event.InputMethodListener() { 113 | public void caretPositionChanged(java.awt.event.InputMethodEvent evt) { 114 | } 115 | public void inputMethodTextChanged(java.awt.event.InputMethodEvent evt) { 116 | jTable1InputMethodTextChanged(evt); 117 | } 118 | }); 119 | jScrollPane1.setViewportView(jTable1); 120 | 121 | add(jScrollPane1, new org.netbeans.lib.awtextra.AbsoluteConstraints(0, 50, 750, 330)); 122 | 123 | button.setBackground(new java.awt.Color(18, 90, 173)); 124 | button.setCursor(new java.awt.Cursor(java.awt.Cursor.HAND_CURSOR)); 125 | button.addMouseListener(new java.awt.event.MouseAdapter() { 126 | public void mouseEntered(java.awt.event.MouseEvent evt) { 127 | buttonMouseEntered(evt); 128 | } 129 | public void mouseExited(java.awt.event.MouseEvent evt) { 130 | buttonMouseExited(evt); 131 | } 132 | public void mousePressed(java.awt.event.MouseEvent evt) { 133 | buttonMousePressed(evt); 134 | } 135 | }); 136 | button.setLayout(new org.netbeans.lib.awtextra.AbsoluteLayout()); 137 | 138 | jLabel1.setFont(new java.awt.Font("Segoe UI", 1, 18)); // NOI18N 139 | jLabel1.setForeground(new java.awt.Color(255, 255, 255)); 140 | jLabel1.setHorizontalAlignment(javax.swing.SwingConstants.CENTER); 141 | jLabel1.setText("Actualizar"); 142 | jLabel1.addMouseListener(new java.awt.event.MouseAdapter() { 143 | public void mousePressed(java.awt.event.MouseEvent evt) { 144 | jLabel1MousePressed(evt); 145 | } 146 | }); 147 | button.add(jLabel1, new org.netbeans.lib.awtextra.AbsoluteConstraints(20, 0, 100, 30)); 148 | 149 | add(button, new org.netbeans.lib.awtextra.AbsoluteConstraints(600, 390, 140, 30)); 150 | }// </editor-fold>//GEN-END:initComponents 151 | 152 | private void jTable1InputMethodTextChanged(java.awt.event.InputMethodEvent evt) {//GEN-FIRST:event_jTable1InputMethodTextChanged 153 | //nothing 154 | }//GEN-LAST:event_jTable1InputMethodTextChanged 155 | 156 | private void buttonMouseEntered(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_buttonMouseEntered 157 | setColor(button); 158 | }//GEN-LAST:event_buttonMouseEntered 159 | 160 | private void buttonMouseExited(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_buttonMouseExited 161 | resetColor(button); 162 | }//GEN-LAST:event_buttonMouseExited 163 | 164 | private void buttonMousePressed(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_buttonMousePressed 165 | try { 166 | GetReports(); 167 | } catch (SQLException ex) { 168 | Logger.getLogger(Reports.class.getName()).log(Level.SEVERE, null, ex); 169 | } 170 | }//GEN-LAST:event_buttonMousePressed 171 | 172 | private void jLabel1MousePressed(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_jLabel1MousePressed 173 | try { 174 | GetReports(); 175 | } catch (SQLException ex) { 176 | Logger.getLogger(Reports.class.getName()).log(Level.SEVERE, null, ex); 177 | } 178 | }//GEN-LAST:event_jLabel1MousePressed 179 | 180 | void setColor(JPanel panel){ 181 | panel.setBackground(new Color(21,101,192)); 182 | } 183 | void resetColor(JPanel panel){ 184 | panel.setBackground(new Color(18,90,173)); 185 | } 186 | 187 | private void GetReports() throws SQLException{ 188 | Statement stm = reg.createStatement(); 189 | ResultSet counter = stm.executeQuery("SELECT * FROM `lendings`"); 190 | 191 | int count = 0; 192 | while(counter.next()){count++;} 193 | 194 | String list[][] = new String[count][4]; 195 | int i = 0; 196 | ResultSet re = stm.executeQuery("SELECT * FROM `lendings`"); 197 | while(re.next()){ 198 | list[i][0] = re.getString("user_id"); 199 | list[i][1] = re.getString("book_id"); 200 | list[i][2] = re.getString("date_out"); 201 | list[i][3] = re.getString("date_return"); 202 | i++; 203 | } 204 | 205 | jTable1.setModel(new javax.swing.table.DefaultTableModel( 206 | list, 207 | new String [] { 208 | "User ID", "Book ID", "Fecha de Salida", "Fecha de Entrega" 209 | })); 210 | } 211 | 212 | // Variables declaration - do not modify//GEN-BEGIN:variables 213 | private javax.swing.JLabel Title; 214 | private javax.swing.JPanel body; 215 | private javax.swing.JPanel button; 216 | private javax.swing.JLabel jLabel1; 217 | private javax.swing.JScrollPane jScrollPane1; 218 | private javax.swing.JTable jTable1; 219 | // End of variables declaration//GEN-END:variables 220 | } 221 | -------------------------------------------------------------------------------- /src/itp_library/Returns.form: -------------------------------------------------------------------------------- 1 | <?xml version="1.0" encoding="UTF-8" ?> 2 | 3 | <Form version="1.3" maxVersion="1.9" type="org.netbeans.modules.form.forminfo.JPanelFormInfo"> 4 | <Properties> 5 | <Property name="background" type="java.awt.Color" editor="org.netbeans.beaninfo.editors.ColorEditor"> 6 | <Color blue="ff" green="ff" red="ff" type="rgb"/> 7 | </Property> 8 | <Property name="minimumSize" type="java.awt.Dimension" editor="org.netbeans.beaninfo.editors.DimensionEditor"> 9 | <Dimension value="[750, 430]"/> 10 | </Property> 11 | <Property name="preferredSize" type="java.awt.Dimension" editor="org.netbeans.beaninfo.editors.DimensionEditor"> 12 | <Dimension value="[750, 430]"/> 13 | </Property> 14 | </Properties> 15 | <AuxValues> 16 | <AuxValue name="FormSettings_autoResourcing" type="java.lang.Integer" value="0"/> 17 | <AuxValue name="FormSettings_autoSetComponentName" type="java.lang.Boolean" value="false"/> 18 | <AuxValue name="FormSettings_generateFQN" type="java.lang.Boolean" value="true"/> 19 | <AuxValue name="FormSettings_generateMnemonicsCode" type="java.lang.Boolean" value="false"/> 20 | <AuxValue name="FormSettings_i18nAutoMode" type="java.lang.Boolean" value="false"/> 21 | <AuxValue name="FormSettings_layoutCodeTarget" type="java.lang.Integer" value="1"/> 22 | <AuxValue name="FormSettings_listenerGenerationStyle" type="java.lang.Integer" value="0"/> 23 | <AuxValue name="FormSettings_variablesLocal" type="java.lang.Boolean" value="false"/> 24 | <AuxValue name="FormSettings_variablesModifier" type="java.lang.Integer" value="2"/> 25 | <AuxValue name="designerSize" type="java.awt.Dimension" value="-84,-19,0,5,115,114,0,18,106,97,118,97,46,97,119,116,46,68,105,109,101,110,115,105,111,110,65,-114,-39,-41,-84,95,68,20,2,0,2,73,0,6,104,101,105,103,104,116,73,0,5,119,105,100,116,104,120,112,0,0,1,-84,0,0,2,-10"/> 26 | </AuxValues> 27 | 28 | <Layout class="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout"> 29 | <Property name="useNullLayout" type="boolean" value="false"/> 30 | </Layout> 31 | <SubComponents> 32 | <Container class="javax.swing.JPanel" name="body"> 33 | <Properties> 34 | <Property name="background" type="java.awt.Color" editor="org.netbeans.beaninfo.editors.ColorEditor"> 35 | <Color blue="ff" green="ff" red="ff" type="rgb"/> 36 | </Property> 37 | </Properties> 38 | <Constraints> 39 | <Constraint layoutClass="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout" value="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout$AbsoluteConstraintsDescription"> 40 | <AbsoluteConstraints x="0" y="0" width="-1" height="-1"/> 41 | </Constraint> 42 | </Constraints> 43 | 44 | <Layout class="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout"> 45 | <Property name="useNullLayout" type="boolean" value="false"/> 46 | </Layout> 47 | </Container> 48 | <Component class="javax.swing.JLabel" name="Title"> 49 | <Properties> 50 | <Property name="font" type="java.awt.Font" editor="org.netbeans.beaninfo.editors.FontEditor"> 51 | <Font name="Segoe UI" size="24" style="0"/> 52 | </Property> 53 | <Property name="text" type="java.lang.String" value="Devolución de Libro"/> 54 | </Properties> 55 | <Constraints> 56 | <Constraint layoutClass="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout" value="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout$AbsoluteConstraintsDescription"> 57 | <AbsoluteConstraints x="20" y="10" width="-1" height="-1"/> 58 | </Constraint> 59 | </Constraints> 60 | </Component> 61 | <Component class="javax.swing.JLabel" name="Text1"> 62 | <Properties> 63 | <Property name="font" type="java.awt.Font" editor="org.netbeans.beaninfo.editors.FontEditor"> 64 | <Font name="Segoe UI" size="14" style="0"/> 65 | </Property> 66 | <Property name="text" type="java.lang.String" value="Libro ID"/> 67 | </Properties> 68 | <Constraints> 69 | <Constraint layoutClass="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout" value="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout$AbsoluteConstraintsDescription"> 70 | <AbsoluteConstraints x="30" y="170" width="-1" height="-1"/> 71 | </Constraint> 72 | </Constraints> 73 | </Component> 74 | <Component class="javax.swing.JLabel" name="Text2"> 75 | <Properties> 76 | <Property name="font" type="java.awt.Font" editor="org.netbeans.beaninfo.editors.FontEditor"> 77 | <Font name="Segoe UI" size="14" style="0"/> 78 | </Property> 79 | <Property name="text" type="java.lang.String" value="Folio Usuario"/> 80 | </Properties> 81 | <Constraints> 82 | <Constraint layoutClass="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout" value="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout$AbsoluteConstraintsDescription"> 83 | <AbsoluteConstraints x="30" y="70" width="-1" height="-1"/> 84 | </Constraint> 85 | </Constraints> 86 | </Component> 87 | <Component class="javax.swing.JSeparator" name="jSeparator1"> 88 | <Properties> 89 | <Property name="foreground" type="java.awt.Color" editor="org.netbeans.beaninfo.editors.ColorEditor"> 90 | <Color blue="ff" green="99" red="0" type="rgb"/> 91 | </Property> 92 | <Property name="preferredSize" type="java.awt.Dimension" editor="org.netbeans.beaninfo.editors.DimensionEditor"> 93 | <Dimension value="[200, 10]"/> 94 | </Property> 95 | </Properties> 96 | <Constraints> 97 | <Constraint layoutClass="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout" value="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout$AbsoluteConstraintsDescription"> 98 | <AbsoluteConstraints x="30" y="230" width="260" height="10"/> 99 | </Constraint> 100 | </Constraints> 101 | </Component> 102 | <Component class="javax.swing.JSeparator" name="jSeparator2"> 103 | <Properties> 104 | <Property name="foreground" type="java.awt.Color" editor="org.netbeans.beaninfo.editors.ColorEditor"> 105 | <Color blue="ff" green="99" red="0" type="rgb"/> 106 | </Property> 107 | <Property name="preferredSize" type="java.awt.Dimension" editor="org.netbeans.beaninfo.editors.DimensionEditor"> 108 | <Dimension value="[200, 10]"/> 109 | </Property> 110 | </Properties> 111 | <Constraints> 112 | <Constraint layoutClass="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout" value="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout$AbsoluteConstraintsDescription"> 113 | <AbsoluteConstraints x="30" y="130" width="260" height="10"/> 114 | </Constraint> 115 | </Constraints> 116 | </Component> 117 | <Component class="javax.swing.JSeparator" name="jSeparator3"> 118 | <Properties> 119 | <Property name="foreground" type="java.awt.Color" editor="org.netbeans.beaninfo.editors.ColorEditor"> 120 | <Color blue="cc" green="cc" red="cc" type="rgb"/> 121 | </Property> 122 | <Property name="orientation" type="int" value="1"/> 123 | <Property name="preferredSize" type="java.awt.Dimension" editor="org.netbeans.beaninfo.editors.DimensionEditor"> 124 | <Dimension value="[200, 10]"/> 125 | </Property> 126 | </Properties> 127 | <Constraints> 128 | <Constraint layoutClass="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout" value="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout$AbsoluteConstraintsDescription"> 129 | <AbsoluteConstraints x="400" y="30" width="10" height="350"/> 130 | </Constraint> 131 | </Constraints> 132 | </Component> 133 | <Component class="javax.swing.JTextField" name="book_id"> 134 | <Properties> 135 | <Property name="font" type="java.awt.Font" editor="org.netbeans.beaninfo.editors.FontEditor"> 136 | <Font name="Segoe UI" size="12" style="0"/> 137 | </Property> 138 | <Property name="foreground" type="java.awt.Color" editor="org.netbeans.beaninfo.editors.ColorEditor"> 139 | <Color blue="66" green="66" red="66" type="rgb"/> 140 | </Property> 141 | <Property name="text" type="java.lang.String" value="Ingrese el ID del Libro a devolver"/> 142 | <Property name="border" type="javax.swing.border.Border" editor="org.netbeans.modules.form.editors2.BorderEditor"> 143 | <Border info="null"/> 144 | </Property> 145 | </Properties> 146 | <Events> 147 | <EventHandler event="mousePressed" listener="java.awt.event.MouseListener" parameters="java.awt.event.MouseEvent" handler="book_idMousePressed"/> 148 | <EventHandler event="actionPerformed" listener="java.awt.event.ActionListener" parameters="java.awt.event.ActionEvent" handler="book_idActionPerformed"/> 149 | </Events> 150 | <Constraints> 151 | <Constraint layoutClass="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout" value="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout$AbsoluteConstraintsDescription"> 152 | <AbsoluteConstraints x="30" y="200" width="260" height="30"/> 153 | </Constraint> 154 | </Constraints> 155 | </Component> 156 | <Component class="javax.swing.JTextField" name="folio"> 157 | <Properties> 158 | <Property name="font" type="java.awt.Font" editor="org.netbeans.beaninfo.editors.FontEditor"> 159 | <Font name="Segoe UI" size="12" style="0"/> 160 | </Property> 161 | <Property name="foreground" type="java.awt.Color" editor="org.netbeans.beaninfo.editors.ColorEditor"> 162 | <Color blue="66" green="66" red="66" type="rgb"/> 163 | </Property> 164 | <Property name="text" type="java.lang.String" value="Ingrese el folio del usuario"/> 165 | <Property name="border" type="javax.swing.border.Border" editor="org.netbeans.modules.form.editors2.BorderEditor"> 166 | <Border info="null"/> 167 | </Property> 168 | </Properties> 169 | <Events> 170 | <EventHandler event="mousePressed" listener="java.awt.event.MouseListener" parameters="java.awt.event.MouseEvent" handler="folioMousePressed"/> 171 | </Events> 172 | <Constraints> 173 | <Constraint layoutClass="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout" value="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout$AbsoluteConstraintsDescription"> 174 | <AbsoluteConstraints x="30" y="100" width="260" height="30"/> 175 | </Constraint> 176 | </Constraints> 177 | </Component> 178 | <Container class="javax.swing.JPanel" name="button"> 179 | <Properties> 180 | <Property name="background" type="java.awt.Color" editor="org.netbeans.beaninfo.editors.ColorEditor"> 181 | <Color blue="ad" green="5a" red="12" type="rgb"/> 182 | </Property> 183 | <Property name="cursor" type="java.awt.Cursor" editor="org.netbeans.modules.form.editors2.CursorEditor"> 184 | <Color id="Cursor de Mano"/> 185 | </Property> 186 | </Properties> 187 | <Events> 188 | <EventHandler event="mouseEntered" listener="java.awt.event.MouseListener" parameters="java.awt.event.MouseEvent" handler="buttonMouseEntered"/> 189 | <EventHandler event="mouseExited" listener="java.awt.event.MouseListener" parameters="java.awt.event.MouseEvent" handler="buttonMouseExited"/> 190 | <EventHandler event="mousePressed" listener="java.awt.event.MouseListener" parameters="java.awt.event.MouseEvent" handler="buttonMousePressed"/> 191 | </Events> 192 | <Constraints> 193 | <Constraint layoutClass="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout" value="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout$AbsoluteConstraintsDescription"> 194 | <AbsoluteConstraints x="30" y="290" width="260" height="50"/> 195 | </Constraint> 196 | </Constraints> 197 | 198 | <Layout class="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout"> 199 | <Property name="useNullLayout" type="boolean" value="false"/> 200 | </Layout> 201 | <SubComponents> 202 | <Component class="javax.swing.JLabel" name="jLabel1"> 203 | <Properties> 204 | <Property name="font" type="java.awt.Font" editor="org.netbeans.beaninfo.editors.FontEditor"> 205 | <Font name="Segoe UI" size="18" style="1"/> 206 | </Property> 207 | <Property name="foreground" type="java.awt.Color" editor="org.netbeans.beaninfo.editors.ColorEditor"> 208 | <Color blue="ff" green="ff" red="ff" type="rgb"/> 209 | </Property> 210 | <Property name="horizontalAlignment" type="int" value="0"/> 211 | <Property name="text" type="java.lang.String" value=" Devolver"/> 212 | </Properties> 213 | <Constraints> 214 | <Constraint layoutClass="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout" value="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout$AbsoluteConstraintsDescription"> 215 | <AbsoluteConstraints x="90" y="10" width="-1" height="-1"/> 216 | </Constraint> 217 | </Constraints> 218 | </Component> 219 | </SubComponents> 220 | </Container> 221 | <Component class="javax.swing.JLabel" name="Image"> 222 | <Properties> 223 | <Property name="horizontalAlignment" type="int" value="0"/> 224 | <Property name="icon" type="javax.swing.Icon" editor="org.netbeans.modules.form.editors2.IconEditor"> 225 | <Image iconType="3" name="/itp_library/images/iStock.jpg"/> 226 | </Property> 227 | <Property name="maximumSize" type="java.awt.Dimension" editor="org.netbeans.beaninfo.editors.DimensionEditor"> 228 | <Dimension value="[750, 430]"/> 229 | </Property> 230 | <Property name="minimumSize" type="java.awt.Dimension" editor="org.netbeans.beaninfo.editors.DimensionEditor"> 231 | <Dimension value="[750, 430]"/> 232 | </Property> 233 | </Properties> 234 | <Constraints> 235 | <Constraint layoutClass="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout" value="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout$AbsoluteConstraintsDescription"> 236 | <AbsoluteConstraints x="400" y="50" width="-1" height="-1"/> 237 | </Constraint> 238 | </Constraints> 239 | </Component> 240 | </SubComponents> 241 | </Form> 242 | -------------------------------------------------------------------------------- /src/itp_library/Returns.java: -------------------------------------------------------------------------------- 1 | /* 2 | * To change this license header, choose License Headers in Project Properties. 3 | * To change this template file, choose Tools | Templates 4 | * and open the template in the editor. 5 | */ 6 | package itp_library; 7 | 8 | import java.awt.Color; 9 | import java.sql.SQLException; 10 | import java.util.logging.Level; 11 | import java.util.logging.Logger; 12 | import javax.swing.JPanel; 13 | 14 | /** 15 | * 16 | * @author Antonio 17 | */ 18 | public class Returns extends javax.swing.JPanel { 19 | Lendings Inter; 20 | /** 21 | * Creates new form Principal 22 | */ 23 | public Returns() { 24 | initComponents(); 25 | Inter = new Lendings(); 26 | } 27 | 28 | /** 29 | * This method is called from within the constructor to initialize the form. 30 | * WARNING: Do NOT modify this code. The content of this method is always 31 | * regenerated by the Form Editor. 32 | */ 33 | @SuppressWarnings("unchecked") 34 | // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents 35 | private void initComponents() { 36 | 37 | body = new javax.swing.JPanel(); 38 | Title = new javax.swing.JLabel(); 39 | Text1 = new javax.swing.JLabel(); 40 | Text2 = new javax.swing.JLabel(); 41 | jSeparator1 = new javax.swing.JSeparator(); 42 | jSeparator2 = new javax.swing.JSeparator(); 43 | jSeparator3 = new javax.swing.JSeparator(); 44 | book_id = new javax.swing.JTextField(); 45 | folio = new javax.swing.JTextField(); 46 | button = new javax.swing.JPanel(); 47 | jLabel1 = new javax.swing.JLabel(); 48 | Image = new javax.swing.JLabel(); 49 | 50 | setBackground(new java.awt.Color(255, 255, 255)); 51 | setMinimumSize(new java.awt.Dimension(750, 430)); 52 | setPreferredSize(new java.awt.Dimension(750, 430)); 53 | setLayout(new org.netbeans.lib.awtextra.AbsoluteLayout()); 54 | 55 | body.setBackground(new java.awt.Color(255, 255, 255)); 56 | body.setLayout(new org.netbeans.lib.awtextra.AbsoluteLayout()); 57 | add(body, new org.netbeans.lib.awtextra.AbsoluteConstraints(0, 0, -1, -1)); 58 | 59 | Title.setFont(new java.awt.Font("Segoe UI", 0, 24)); // NOI18N 60 | Title.setText("Devolución de Libro"); 61 | add(Title, new org.netbeans.lib.awtextra.AbsoluteConstraints(20, 10, -1, -1)); 62 | 63 | Text1.setFont(new java.awt.Font("Segoe UI", 0, 14)); // NOI18N 64 | Text1.setText("Libro ID"); 65 | add(Text1, new org.netbeans.lib.awtextra.AbsoluteConstraints(30, 170, -1, -1)); 66 | 67 | Text2.setFont(new java.awt.Font("Segoe UI", 0, 14)); // NOI18N 68 | Text2.setText("Folio Usuario"); 69 | add(Text2, new org.netbeans.lib.awtextra.AbsoluteConstraints(30, 70, -1, -1)); 70 | 71 | jSeparator1.setForeground(new java.awt.Color(0, 153, 255)); 72 | jSeparator1.setPreferredSize(new java.awt.Dimension(200, 10)); 73 | add(jSeparator1, new org.netbeans.lib.awtextra.AbsoluteConstraints(30, 230, 260, 10)); 74 | 75 | jSeparator2.setForeground(new java.awt.Color(0, 153, 255)); 76 | jSeparator2.setPreferredSize(new java.awt.Dimension(200, 10)); 77 | add(jSeparator2, new org.netbeans.lib.awtextra.AbsoluteConstraints(30, 130, 260, 10)); 78 | 79 | jSeparator3.setForeground(new java.awt.Color(204, 204, 204)); 80 | jSeparator3.setOrientation(javax.swing.SwingConstants.VERTICAL); 81 | jSeparator3.setPreferredSize(new java.awt.Dimension(200, 10)); 82 | add(jSeparator3, new org.netbeans.lib.awtextra.AbsoluteConstraints(400, 30, 10, 350)); 83 | 84 | book_id.setFont(new java.awt.Font("Segoe UI", 0, 12)); // NOI18N 85 | book_id.setForeground(new java.awt.Color(102, 102, 102)); 86 | book_id.setText("Ingrese el ID del Libro a devolver"); 87 | book_id.setBorder(null); 88 | book_id.addMouseListener(new java.awt.event.MouseAdapter() { 89 | public void mousePressed(java.awt.event.MouseEvent evt) { 90 | book_idMousePressed(evt); 91 | } 92 | }); 93 | book_id.addActionListener(new java.awt.event.ActionListener() { 94 | public void actionPerformed(java.awt.event.ActionEvent evt) { 95 | book_idActionPerformed(evt); 96 | } 97 | }); 98 | add(book_id, new org.netbeans.lib.awtextra.AbsoluteConstraints(30, 200, 260, 30)); 99 | 100 | folio.setFont(new java.awt.Font("Segoe UI", 0, 12)); // NOI18N 101 | folio.setForeground(new java.awt.Color(102, 102, 102)); 102 | folio.setText("Ingrese el folio del usuario"); 103 | folio.setBorder(null); 104 | folio.addMouseListener(new java.awt.event.MouseAdapter() { 105 | public void mousePressed(java.awt.event.MouseEvent evt) { 106 | folioMousePressed(evt); 107 | } 108 | }); 109 | add(folio, new org.netbeans.lib.awtextra.AbsoluteConstraints(30, 100, 260, 30)); 110 | 111 | button.setBackground(new java.awt.Color(18, 90, 173)); 112 | button.setCursor(new java.awt.Cursor(java.awt.Cursor.HAND_CURSOR)); 113 | button.addMouseListener(new java.awt.event.MouseAdapter() { 114 | public void mouseEntered(java.awt.event.MouseEvent evt) { 115 | buttonMouseEntered(evt); 116 | } 117 | public void mouseExited(java.awt.event.MouseEvent evt) { 118 | buttonMouseExited(evt); 119 | } 120 | public void mousePressed(java.awt.event.MouseEvent evt) { 121 | buttonMousePressed(evt); 122 | } 123 | }); 124 | button.setLayout(new org.netbeans.lib.awtextra.AbsoluteLayout()); 125 | 126 | jLabel1.setFont(new java.awt.Font("Segoe UI", 1, 18)); // NOI18N 127 | jLabel1.setForeground(new java.awt.Color(255, 255, 255)); 128 | jLabel1.setHorizontalAlignment(javax.swing.SwingConstants.CENTER); 129 | jLabel1.setText(" Devolver"); 130 | button.add(jLabel1, new org.netbeans.lib.awtextra.AbsoluteConstraints(90, 10, -1, -1)); 131 | 132 | add(button, new org.netbeans.lib.awtextra.AbsoluteConstraints(30, 290, 260, 50)); 133 | 134 | Image.setHorizontalAlignment(javax.swing.SwingConstants.CENTER); 135 | Image.setIcon(new javax.swing.ImageIcon(getClass().getResource("/itp_library/images/iStock.jpg"))); // NOI18N 136 | Image.setMaximumSize(new java.awt.Dimension(750, 430)); 137 | Image.setMinimumSize(new java.awt.Dimension(750, 430)); 138 | add(Image, new org.netbeans.lib.awtextra.AbsoluteConstraints(400, 50, -1, -1)); 139 | }// </editor-fold>//GEN-END:initComponents 140 | 141 | private void book_idActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_book_idActionPerformed 142 | // TODO add your handling code here: 143 | }//GEN-LAST:event_book_idActionPerformed 144 | 145 | private void folioMousePressed(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_folioMousePressed 146 | if(folio.getText().equals("Ingrese el folio del usuario")) 147 | folio.setText(""); 148 | if(book_id.getText().equals("") || book_id.getText() == null || book_id.getText().equals(" ")) 149 | book_id.setText("Ingrese el ID del Libro a devolver"); 150 | }//GEN-LAST:event_folioMousePressed 151 | 152 | private void book_idMousePressed(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_book_idMousePressed 153 | if(book_id.getText().equals("Ingrese el ID del Libro a devolver")) 154 | book_id.setText(""); 155 | if(folio.getText().equals("") || folio.getText() == null || folio.getText().equals(" ")) 156 | folio.setText("Ingrese el folio del usuario"); 157 | }//GEN-LAST:event_book_idMousePressed 158 | 159 | private void buttonMouseEntered(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_buttonMouseEntered 160 | setColor(button); 161 | }//GEN-LAST:event_buttonMouseEntered 162 | 163 | private void buttonMouseExited(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_buttonMouseExited 164 | resetColor(button); 165 | }//GEN-LAST:event_buttonMouseExited 166 | // DEVOLVER 167 | private void buttonMousePressed(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_buttonMousePressed 168 | String book = book_id.getText(); 169 | String fol = folio.getText(); 170 | int intfol = 0; 171 | 172 | // Conditions 173 | if(fol.equals("") || book.equals("")){ 174 | javax.swing.JOptionPane.showMessageDialog(this, "Debe rellenar todos los campos. \n", "AVISO", javax.swing.JOptionPane.INFORMATION_MESSAGE); 175 | book_id.requestFocus(); 176 | } 177 | else{ 178 | try 179 | { 180 | intfol = Integer.parseInt(folio.getText()); 181 | 182 | if(intfol <= 0){ 183 | javax.swing.JOptionPane.showMessageDialog(this, "El folio del usuario debe ser mayor a 0. \n", "AVISO", javax.swing.JOptionPane.INFORMATION_MESSAGE); 184 | folio.requestFocus(); 185 | } 186 | 187 | try { 188 | // Verificamos el usuario 189 | boolean pase = Inter.UserExist(intfol); 190 | if(!pase){ 191 | javax.swing.JOptionPane.showMessageDialog(this, "No existe ningún usuario con ese Folio. \n", "AVISO", javax.swing.JOptionPane.INFORMATION_MESSAGE); 192 | folio.requestFocus(); 193 | } 194 | // Verificamos el libro 195 | else if (!Inter.BookExist(book)) 196 | { 197 | javax.swing.JOptionPane.showMessageDialog(this, "No existe ningún libro con esa ID. \n", "AVISO", javax.swing.JOptionPane.INFORMATION_MESSAGE); 198 | book_id.requestFocus(); 199 | } 200 | else if(!Inter.CheckLending(intfol, book)){ 201 | javax.swing.JOptionPane.showMessageDialog(this, "No se ha podido encontrar el préstamo correspiendote a los datos ingresados. \n", "AVISO", javax.swing.JOptionPane.INFORMATION_MESSAGE); 202 | book_id.requestFocus(); 203 | } 204 | else{ 205 | // DEVOLVEMOS 206 | Inter.Devolutions(intfol, book); 207 | folio.setText(""); 208 | book_id.setText(""); 209 | } 210 | 211 | } catch (SQLException ex) { 212 | Logger.getLogger(Returns.class.getName()).log(Level.SEVERE, null, ex); 213 | } 214 | 215 | }catch(Exception ex){ 216 | javax.swing.JOptionPane.showMessageDialog(this, "El folio del usuario debe ser un número entero. \n", "AVISO", javax.swing.JOptionPane.INFORMATION_MESSAGE); 217 | folio.requestFocus(); 218 | } 219 | } 220 | }//GEN-LAST:event_buttonMousePressed 221 | 222 | void setColor(JPanel panel){ 223 | panel.setBackground(new Color(21,101,192)); 224 | } 225 | void resetColor(JPanel panel){ 226 | panel.setBackground(new Color(18,90,173)); 227 | } 228 | 229 | // Variables declaration - do not modify//GEN-BEGIN:variables 230 | private javax.swing.JLabel Image; 231 | private javax.swing.JLabel Text1; 232 | private javax.swing.JLabel Text2; 233 | private javax.swing.JLabel Title; 234 | private javax.swing.JPanel body; 235 | private javax.swing.JTextField book_id; 236 | private javax.swing.JPanel button; 237 | private javax.swing.JTextField folio; 238 | private javax.swing.JLabel jLabel1; 239 | private javax.swing.JSeparator jSeparator1; 240 | private javax.swing.JSeparator jSeparator2; 241 | private javax.swing.JSeparator jSeparator3; 242 | // End of variables declaration//GEN-END:variables 243 | } 244 | -------------------------------------------------------------------------------- /src/itp_library/Users.form: -------------------------------------------------------------------------------- 1 | <?xml version="1.0" encoding="UTF-8" ?> 2 | 3 | <Form version="1.5" maxVersion="1.9" type="org.netbeans.modules.form.forminfo.JPanelFormInfo"> 4 | <Properties> 5 | <Property name="background" type="java.awt.Color" editor="org.netbeans.beaninfo.editors.ColorEditor"> 6 | <Color blue="ff" green="ff" red="ff" type="rgb"/> 7 | </Property> 8 | <Property name="minimumSize" type="java.awt.Dimension" editor="org.netbeans.beaninfo.editors.DimensionEditor"> 9 | <Dimension value="[750, 430]"/> 10 | </Property> 11 | <Property name="preferredSize" type="java.awt.Dimension" editor="org.netbeans.beaninfo.editors.DimensionEditor"> 12 | <Dimension value="[750, 430]"/> 13 | </Property> 14 | </Properties> 15 | <AuxValues> 16 | <AuxValue name="FormSettings_autoResourcing" type="java.lang.Integer" value="0"/> 17 | <AuxValue name="FormSettings_autoSetComponentName" type="java.lang.Boolean" value="false"/> 18 | <AuxValue name="FormSettings_generateFQN" type="java.lang.Boolean" value="true"/> 19 | <AuxValue name="FormSettings_generateMnemonicsCode" type="java.lang.Boolean" value="false"/> 20 | <AuxValue name="FormSettings_i18nAutoMode" type="java.lang.Boolean" value="false"/> 21 | <AuxValue name="FormSettings_layoutCodeTarget" type="java.lang.Integer" value="1"/> 22 | <AuxValue name="FormSettings_listenerGenerationStyle" type="java.lang.Integer" value="0"/> 23 | <AuxValue name="FormSettings_variablesLocal" type="java.lang.Boolean" value="false"/> 24 | <AuxValue name="FormSettings_variablesModifier" type="java.lang.Integer" value="2"/> 25 | <AuxValue name="designerSize" type="java.awt.Dimension" value="-84,-19,0,5,115,114,0,18,106,97,118,97,46,97,119,116,46,68,105,109,101,110,115,105,111,110,65,-114,-39,-41,-84,95,68,20,2,0,2,73,0,6,104,101,105,103,104,116,73,0,5,119,105,100,116,104,120,112,0,0,1,-84,0,0,2,-10"/> 26 | </AuxValues> 27 | 28 | <Layout class="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout"> 29 | <Property name="useNullLayout" type="boolean" value="false"/> 30 | </Layout> 31 | <SubComponents> 32 | <Container class="javax.swing.JPanel" name="body"> 33 | <Properties> 34 | <Property name="background" type="java.awt.Color" editor="org.netbeans.beaninfo.editors.ColorEditor"> 35 | <Color blue="ff" green="ff" red="ff" type="rgb"/> 36 | </Property> 37 | </Properties> 38 | <Constraints> 39 | <Constraint layoutClass="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout" value="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout$AbsoluteConstraintsDescription"> 40 | <AbsoluteConstraints x="0" y="0" width="-1" height="-1"/> 41 | </Constraint> 42 | </Constraints> 43 | 44 | <Layout class="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout"> 45 | <Property name="useNullLayout" type="boolean" value="false"/> 46 | </Layout> 47 | </Container> 48 | <Component class="javax.swing.JLabel" name="Title"> 49 | <Properties> 50 | <Property name="font" type="java.awt.Font" editor="org.netbeans.beaninfo.editors.FontEditor"> 51 | <Font name="Segoe UI" size="24" style="0"/> 52 | </Property> 53 | <Property name="text" type="java.lang.String" value="Usuarios"/> 54 | </Properties> 55 | <Constraints> 56 | <Constraint layoutClass="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout" value="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout$AbsoluteConstraintsDescription"> 57 | <AbsoluteConstraints x="20" y="10" width="-1" height="-1"/> 58 | </Constraint> 59 | </Constraints> 60 | </Component> 61 | <Component class="javax.swing.JSeparator" name="jSeparator2"> 62 | <Properties> 63 | <Property name="foreground" type="java.awt.Color" editor="org.netbeans.beaninfo.editors.ColorEditor"> 64 | <Color blue="ff" green="99" red="0" type="rgb"/> 65 | </Property> 66 | <Property name="preferredSize" type="java.awt.Dimension" editor="org.netbeans.beaninfo.editors.DimensionEditor"> 67 | <Dimension value="[250, 10]"/> 68 | </Property> 69 | </Properties> 70 | <Constraints> 71 | <Constraint layoutClass="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout" value="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout$AbsoluteConstraintsDescription"> 72 | <AbsoluteConstraints x="20" y="70" width="620" height="10"/> 73 | </Constraint> 74 | </Constraints> 75 | </Component> 76 | <Component class="javax.swing.JTextField" name="usrnm"> 77 | <Properties> 78 | <Property name="font" type="java.awt.Font" editor="org.netbeans.beaninfo.editors.FontEditor"> 79 | <Font name="Segoe UI" size="12" style="0"/> 80 | </Property> 81 | <Property name="foreground" type="java.awt.Color" editor="org.netbeans.beaninfo.editors.ColorEditor"> 82 | <Color blue="66" green="66" red="66" type="rgb"/> 83 | </Property> 84 | <Property name="text" type="java.lang.String" value="Ingrese el nombre de usuario a buscar"/> 85 | <Property name="border" type="javax.swing.border.Border" editor="org.netbeans.modules.form.editors2.BorderEditor"> 86 | <Border info="null"/> 87 | </Property> 88 | </Properties> 89 | <Events> 90 | <EventHandler event="mousePressed" listener="java.awt.event.MouseListener" parameters="java.awt.event.MouseEvent" handler="usrnmMousePressed"/> 91 | <EventHandler event="mouseReleased" listener="java.awt.event.MouseListener" parameters="java.awt.event.MouseEvent" handler="usrnmMouseReleased"/> 92 | </Events> 93 | <Constraints> 94 | <Constraint layoutClass="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout" value="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout$AbsoluteConstraintsDescription"> 95 | <AbsoluteConstraints x="20" y="40" width="620" height="30"/> 96 | </Constraint> 97 | </Constraints> 98 | </Component> 99 | <Container class="javax.swing.JPanel" name="search"> 100 | <Properties> 101 | <Property name="background" type="java.awt.Color" editor="org.netbeans.beaninfo.editors.ColorEditor"> 102 | <Color blue="ad" green="5a" red="12" type="rgb"/> 103 | </Property> 104 | <Property name="cursor" type="java.awt.Cursor" editor="org.netbeans.modules.form.editors2.CursorEditor"> 105 | <Color id="Cursor de Mano"/> 106 | </Property> 107 | </Properties> 108 | <Events> 109 | <EventHandler event="mouseEntered" listener="java.awt.event.MouseListener" parameters="java.awt.event.MouseEvent" handler="searchMouseEntered"/> 110 | <EventHandler event="mouseExited" listener="java.awt.event.MouseListener" parameters="java.awt.event.MouseEvent" handler="searchMouseExited"/> 111 | <EventHandler event="mousePressed" listener="java.awt.event.MouseListener" parameters="java.awt.event.MouseEvent" handler="searchMousePressed"/> 112 | </Events> 113 | <Constraints> 114 | <Constraint layoutClass="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout" value="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout$AbsoluteConstraintsDescription"> 115 | <AbsoluteConstraints x="650" y="40" width="80" height="30"/> 116 | </Constraint> 117 | </Constraints> 118 | 119 | <Layout class="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout"> 120 | <Property name="useNullLayout" type="boolean" value="false"/> 121 | </Layout> 122 | <SubComponents> 123 | <Component class="javax.swing.JLabel" name="jLabel4"> 124 | <Properties> 125 | <Property name="font" type="java.awt.Font" editor="org.netbeans.beaninfo.editors.FontEditor"> 126 | <Font name="Segoe UI" size="18" style="1"/> 127 | </Property> 128 | <Property name="foreground" type="java.awt.Color" editor="org.netbeans.beaninfo.editors.ColorEditor"> 129 | <Color blue="ff" green="ff" red="ff" type="rgb"/> 130 | </Property> 131 | <Property name="horizontalAlignment" type="int" value="0"/> 132 | <Property name="text" type="java.lang.String" value="Buscar"/> 133 | </Properties> 134 | <Constraints> 135 | <Constraint layoutClass="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout" value="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout$AbsoluteConstraintsDescription"> 136 | <AbsoluteConstraints x="10" y="0" width="60" height="-1"/> 137 | </Constraint> 138 | </Constraints> 139 | </Component> 140 | </SubComponents> 141 | </Container> 142 | <Container class="javax.swing.JPanel" name="delete"> 143 | <Properties> 144 | <Property name="background" type="java.awt.Color" editor="org.netbeans.beaninfo.editors.ColorEditor"> 145 | <Color blue="ad" green="5a" red="12" type="rgb"/> 146 | </Property> 147 | <Property name="cursor" type="java.awt.Cursor" editor="org.netbeans.modules.form.editors2.CursorEditor"> 148 | <Color id="Cursor de Mano"/> 149 | </Property> 150 | </Properties> 151 | <Events> 152 | <EventHandler event="mouseEntered" listener="java.awt.event.MouseListener" parameters="java.awt.event.MouseEvent" handler="deleteMouseEntered"/> 153 | <EventHandler event="mouseExited" listener="java.awt.event.MouseListener" parameters="java.awt.event.MouseEvent" handler="deleteMouseExited"/> 154 | <EventHandler event="mousePressed" listener="java.awt.event.MouseListener" parameters="java.awt.event.MouseEvent" handler="deleteMousePressed"/> 155 | </Events> 156 | <Constraints> 157 | <Constraint layoutClass="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout" value="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout$AbsoluteConstraintsDescription"> 158 | <AbsoluteConstraints x="670" y="395" width="80" height="-1"/> 159 | </Constraint> 160 | </Constraints> 161 | 162 | <Layout class="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout"> 163 | <Property name="useNullLayout" type="boolean" value="false"/> 164 | </Layout> 165 | <SubComponents> 166 | <Component class="javax.swing.JLabel" name="jLabel1"> 167 | <Properties> 168 | <Property name="font" type="java.awt.Font" editor="org.netbeans.beaninfo.editors.FontEditor"> 169 | <Font name="Segoe UI" size="18" style="0"/> 170 | </Property> 171 | <Property name="foreground" type="java.awt.Color" editor="org.netbeans.beaninfo.editors.ColorEditor"> 172 | <Color blue="ff" green="ff" red="ff" type="rgb"/> 173 | </Property> 174 | <Property name="horizontalAlignment" type="int" value="0"/> 175 | <Property name="text" type="java.lang.String" value="Borrar"/> 176 | </Properties> 177 | <Constraints> 178 | <Constraint layoutClass="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout" value="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout$AbsoluteConstraintsDescription"> 179 | <AbsoluteConstraints x="10" y="0" width="60" height="-1"/> 180 | </Constraint> 181 | </Constraints> 182 | </Component> 183 | </SubComponents> 184 | </Container> 185 | <Container class="javax.swing.JPanel" name="edit"> 186 | <Properties> 187 | <Property name="background" type="java.awt.Color" editor="org.netbeans.beaninfo.editors.ColorEditor"> 188 | <Color blue="ad" green="5a" red="12" type="rgb"/> 189 | </Property> 190 | <Property name="cursor" type="java.awt.Cursor" editor="org.netbeans.modules.form.editors2.CursorEditor"> 191 | <Color id="Cursor de Mano"/> 192 | </Property> 193 | </Properties> 194 | <Events> 195 | <EventHandler event="mouseEntered" listener="java.awt.event.MouseListener" parameters="java.awt.event.MouseEvent" handler="editMouseEntered"/> 196 | <EventHandler event="mouseExited" listener="java.awt.event.MouseListener" parameters="java.awt.event.MouseEvent" handler="editMouseExited"/> 197 | <EventHandler event="mousePressed" listener="java.awt.event.MouseListener" parameters="java.awt.event.MouseEvent" handler="editMousePressed"/> 198 | </Events> 199 | <Constraints> 200 | <Constraint layoutClass="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout" value="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout$AbsoluteConstraintsDescription"> 201 | <AbsoluteConstraints x="580" y="395" width="80" height="-1"/> 202 | </Constraint> 203 | </Constraints> 204 | 205 | <Layout class="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout"> 206 | <Property name="useNullLayout" type="boolean" value="false"/> 207 | </Layout> 208 | <SubComponents> 209 | <Component class="javax.swing.JLabel" name="jLabel2"> 210 | <Properties> 211 | <Property name="font" type="java.awt.Font" editor="org.netbeans.beaninfo.editors.FontEditor"> 212 | <Font name="Segoe UI" size="18" style="0"/> 213 | </Property> 214 | <Property name="foreground" type="java.awt.Color" editor="org.netbeans.beaninfo.editors.ColorEditor"> 215 | <Color blue="ff" green="ff" red="ff" type="rgb"/> 216 | </Property> 217 | <Property name="horizontalAlignment" type="int" value="0"/> 218 | <Property name="text" type="java.lang.String" value="Editar"/> 219 | </Properties> 220 | <Constraints> 221 | <Constraint layoutClass="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout" value="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout$AbsoluteConstraintsDescription"> 222 | <AbsoluteConstraints x="10" y="0" width="60" height="-1"/> 223 | </Constraint> 224 | </Constraints> 225 | </Component> 226 | </SubComponents> 227 | </Container> 228 | <Container class="javax.swing.JPanel" name="nuevo"> 229 | <Properties> 230 | <Property name="background" type="java.awt.Color" editor="org.netbeans.beaninfo.editors.ColorEditor"> 231 | <Color blue="ad" green="5a" red="12" type="rgb"/> 232 | </Property> 233 | <Property name="cursor" type="java.awt.Cursor" editor="org.netbeans.modules.form.editors2.CursorEditor"> 234 | <Color id="Cursor de Mano"/> 235 | </Property> 236 | </Properties> 237 | <Events> 238 | <EventHandler event="mouseEntered" listener="java.awt.event.MouseListener" parameters="java.awt.event.MouseEvent" handler="nuevoMouseEntered"/> 239 | <EventHandler event="mouseExited" listener="java.awt.event.MouseListener" parameters="java.awt.event.MouseEvent" handler="nuevoMouseExited"/> 240 | <EventHandler event="mousePressed" listener="java.awt.event.MouseListener" parameters="java.awt.event.MouseEvent" handler="nuevoMousePressed"/> 241 | </Events> 242 | <Constraints> 243 | <Constraint layoutClass="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout" value="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout$AbsoluteConstraintsDescription"> 244 | <AbsoluteConstraints x="490" y="395" width="80" height="-1"/> 245 | </Constraint> 246 | </Constraints> 247 | 248 | <Layout class="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout"> 249 | <Property name="useNullLayout" type="boolean" value="false"/> 250 | </Layout> 251 | <SubComponents> 252 | <Component class="javax.swing.JLabel" name="jLabel3"> 253 | <Properties> 254 | <Property name="font" type="java.awt.Font" editor="org.netbeans.beaninfo.editors.FontEditor"> 255 | <Font name="Segoe UI" size="18" style="0"/> 256 | </Property> 257 | <Property name="foreground" type="java.awt.Color" editor="org.netbeans.beaninfo.editors.ColorEditor"> 258 | <Color blue="ff" green="ff" red="ff" type="rgb"/> 259 | </Property> 260 | <Property name="horizontalAlignment" type="int" value="0"/> 261 | <Property name="text" type="java.lang.String" value="Nuevo"/> 262 | </Properties> 263 | <Events> 264 | <EventHandler event="mousePressed" listener="java.awt.event.MouseListener" parameters="java.awt.event.MouseEvent" handler="jLabel3MousePressed"/> 265 | </Events> 266 | <Constraints> 267 | <Constraint layoutClass="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout" value="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout$AbsoluteConstraintsDescription"> 268 | <AbsoluteConstraints x="10" y="0" width="60" height="-1"/> 269 | </Constraint> 270 | </Constraints> 271 | </Component> 272 | </SubComponents> 273 | </Container> 274 | <Container class="javax.swing.JScrollPane" name="jScrollPane1"> 275 | <AuxValues> 276 | <AuxValue name="autoScrollPane" type="java.lang.Boolean" value="true"/> 277 | </AuxValues> 278 | <Constraints> 279 | <Constraint layoutClass="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout" value="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout$AbsoluteConstraintsDescription"> 280 | <AbsoluteConstraints x="0" y="90" width="750" height="300"/> 281 | </Constraint> 282 | </Constraints> 283 | 284 | <Layout class="org.netbeans.modules.form.compat2.layouts.support.JScrollPaneSupportLayout"/> 285 | <SubComponents> 286 | <Component class="javax.swing.JTable" name="jTable1"> 287 | <Properties> 288 | <Property name="font" type="java.awt.Font" editor="org.netbeans.beaninfo.editors.FontEditor"> 289 | <Font name="Segoe UI" size="11" style="0"/> 290 | </Property> 291 | <Property name="model" type="javax.swing.table.TableModel" editor="org.netbeans.modules.form.editors2.TableModelEditor"> 292 | <Table columnCount="6" rowCount="17"> 293 | <Column editable="false" title="ID" type="java.lang.String"/> 294 | <Column editable="true" title="Nombre" type="java.lang.String"/> 295 | <Column editable="true" title="Apellido P." type="java.lang.String"/> 296 | <Column editable="true" title="Apellido M." type="java.lang.String"/> 297 | <Column editable="true" title="Domicilio" type="java.lang.String"/> 298 | <Column editable="true" title="Teléfono" type="java.lang.String"/> 299 | </Table> 300 | </Property> 301 | <Property name="columnModel" type="javax.swing.table.TableColumnModel" editor="org.netbeans.modules.form.editors2.TableColumnModelEditor"> 302 | <TableColumnModel selectionModel="0"> 303 | <Column maxWidth="-1" minWidth="-1" prefWidth="10" resizable="true"> 304 | <Title/> 305 | <Editor/> 306 | <Renderer/> 307 | </Column> 308 | <Column maxWidth="-1" minWidth="-1" prefWidth="-1" resizable="true"> 309 | <Title/> 310 | <Editor/> 311 | <Renderer/> 312 | </Column> 313 | <Column maxWidth="-1" minWidth="-1" prefWidth="-1" resizable="true"> 314 | <Title/> 315 | <Editor/> 316 | <Renderer/> 317 | </Column> 318 | <Column maxWidth="-1" minWidth="-1" prefWidth="-1" resizable="true"> 319 | <Title/> 320 | <Editor/> 321 | <Renderer/> 322 | </Column> 323 | <Column maxWidth="-1" minWidth="-1" prefWidth="-1" resizable="true"> 324 | <Title/> 325 | <Editor/> 326 | <Renderer/> 327 | </Column> 328 | <Column maxWidth="-1" minWidth="-1" prefWidth="-1" resizable="true"> 329 | <Title/> 330 | <Editor/> 331 | <Renderer/> 332 | </Column> 333 | </TableColumnModel> 334 | </Property> 335 | <Property name="tableHeader" type="javax.swing.table.JTableHeader" editor="org.netbeans.modules.form.editors2.JTableHeaderEditor"> 336 | <TableHeader reorderingAllowed="false" resizingAllowed="true"/> 337 | </Property> 338 | </Properties> 339 | <Events> 340 | <EventHandler event="mousePressed" listener="java.awt.event.MouseListener" parameters="java.awt.event.MouseEvent" handler="jTable1MousePressed"/> 341 | </Events> 342 | </Component> 343 | </SubComponents> 344 | </Container> 345 | </SubComponents> 346 | </Form> 347 | -------------------------------------------------------------------------------- /src/itp_library/images/336799ebb339821f342bc5a13386aff2.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AnthonyZabs/ITPLibrary/43a8443c28c34946c1274c4a9ff58640fe7fcf62/src/itp_library/images/336799ebb339821f342bc5a13386aff2.jpg -------------------------------------------------------------------------------- /src/itp_library/images/account-multiple.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AnthonyZabs/ITPLibrary/43a8443c28c34946c1274c4a9ff58640fe7fcf62/src/itp_library/images/account-multiple.png -------------------------------------------------------------------------------- /src/itp_library/images/book-open-page-variant.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AnthonyZabs/ITPLibrary/43a8443c28c34946c1274c4a9ff58640fe7fcf62/src/itp_library/images/book-open-page-variant.png -------------------------------------------------------------------------------- /src/itp_library/images/calendar-multiple-check.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AnthonyZabs/ITPLibrary/43a8443c28c34946c1274c4a9ff58640fe7fcf62/src/itp_library/images/calendar-multiple-check.png -------------------------------------------------------------------------------- /src/itp_library/images/calendar-plus.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AnthonyZabs/ITPLibrary/43a8443c28c34946c1274c4a9ff58640fe7fcf62/src/itp_library/images/calendar-plus.png -------------------------------------------------------------------------------- /src/itp_library/images/file-chart.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AnthonyZabs/ITPLibrary/43a8443c28c34946c1274c4a9ff58640fe7fcf62/src/itp_library/images/file-chart.png -------------------------------------------------------------------------------- /src/itp_library/images/home-outline.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AnthonyZabs/ITPLibrary/43a8443c28c34946c1274c4a9ff58640fe7fcf62/src/itp_library/images/home-outline.png -------------------------------------------------------------------------------- /src/itp_library/images/iStock.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AnthonyZabs/ITPLibrary/43a8443c28c34946c1274c4a9ff58640fe7fcf62/src/itp_library/images/iStock.jpg -------------------------------------------------------------------------------- /src/itp_library/images/prestamo.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AnthonyZabs/ITPLibrary/43a8443c28c34946c1274c4a9ff58640fe7fcf62/src/itp_library/images/prestamo.gif --------------------------------------------------------------------------------