diff --git a/bin/control/ControlAdmin.class b/bin/control/ControlAdmin.class index 910e91f..2c91ad0 100644 Binary files a/bin/control/ControlAdmin.class and b/bin/control/ControlAdmin.class differ diff --git a/bin/control/ControlLogin.class b/bin/control/ControlLogin.class index 549da67..365d297 100644 Binary files a/bin/control/ControlLogin.class and b/bin/control/ControlLogin.class differ diff --git a/bin/control/ControlPrincipal.class b/bin/control/ControlPrincipal.class index c0b86bd..3b1361f 100644 Binary files a/bin/control/ControlPrincipal.class and b/bin/control/ControlPrincipal.class differ diff --git a/bin/main/Main.class b/bin/main/Main.class index 1f192a4..1154df9 100644 Binary files a/bin/main/Main.class and b/bin/main/Main.class differ diff --git a/bin/utiles/Archivo.class b/bin/utiles/Archivo.class index fb8c621..0e49aaf 100644 Binary files a/bin/utiles/Archivo.class and b/bin/utiles/Archivo.class differ diff --git a/bin/utiles/Cifrador.class b/bin/utiles/Cifrador.class index c01c5c1..39b1027 100644 Binary files a/bin/utiles/Cifrador.class and b/bin/utiles/Cifrador.class differ diff --git a/bin/utiles/Validador.class b/bin/utiles/Validador.class index 85405fe..c1b0402 100644 Binary files a/bin/utiles/Validador.class and b/bin/utiles/Validador.class differ diff --git a/bin/visual/frame/FrameAdministrador$1.class b/bin/visual/frame/FrameAdministrador$1.class new file mode 100644 index 0000000..2ba6fbd Binary files /dev/null and b/bin/visual/frame/FrameAdministrador$1.class differ diff --git a/bin/visual/frame/FrameAdministrador$2.class b/bin/visual/frame/FrameAdministrador$2.class new file mode 100644 index 0000000..56eda65 Binary files /dev/null and b/bin/visual/frame/FrameAdministrador$2.class differ diff --git a/bin/visual/frame/FrameAdministrador$3.class b/bin/visual/frame/FrameAdministrador$3.class new file mode 100644 index 0000000..3e3269e Binary files /dev/null and b/bin/visual/frame/FrameAdministrador$3.class differ diff --git a/bin/visual/frame/FrameAdministrador$4.class b/bin/visual/frame/FrameAdministrador$4.class new file mode 100644 index 0000000..7df8252 Binary files /dev/null and b/bin/visual/frame/FrameAdministrador$4.class differ diff --git a/bin/visualV2/FrameAdministrador.class b/bin/visual/frame/FrameAdministrador.class similarity index 76% rename from bin/visualV2/FrameAdministrador.class rename to bin/visual/frame/FrameAdministrador.class index 93af99f..ae205b6 100644 Binary files a/bin/visualV2/FrameAdministrador.class and b/bin/visual/frame/FrameAdministrador.class differ diff --git a/bin/visual/frame/FrameCrear$1.class b/bin/visual/frame/FrameCrear$1.class new file mode 100644 index 0000000..94b1ea4 Binary files /dev/null and b/bin/visual/frame/FrameCrear$1.class differ diff --git a/bin/visual/frame/FrameCrear$2.class b/bin/visual/frame/FrameCrear$2.class new file mode 100644 index 0000000..b950187 Binary files /dev/null and b/bin/visual/frame/FrameCrear$2.class differ diff --git a/bin/visual/frame/FrameCrear.class b/bin/visual/frame/FrameCrear.class new file mode 100644 index 0000000..1646a71 Binary files /dev/null and b/bin/visual/frame/FrameCrear.class differ diff --git a/bin/visual/frame/FrameLogin$1.class b/bin/visual/frame/FrameLogin$1.class new file mode 100644 index 0000000..ccd1c26 Binary files /dev/null and b/bin/visual/frame/FrameLogin$1.class differ diff --git a/bin/visual/frame/FrameLogin$2.class b/bin/visual/frame/FrameLogin$2.class new file mode 100644 index 0000000..fd92e45 Binary files /dev/null and b/bin/visual/frame/FrameLogin$2.class differ diff --git a/bin/visual/frame/FrameLogin$3.class b/bin/visual/frame/FrameLogin$3.class new file mode 100644 index 0000000..71b6d15 Binary files /dev/null and b/bin/visual/frame/FrameLogin$3.class differ diff --git a/bin/visual/frame/FrameLogin$4.class b/bin/visual/frame/FrameLogin$4.class new file mode 100644 index 0000000..d81f78e Binary files /dev/null and b/bin/visual/frame/FrameLogin$4.class differ diff --git a/bin/visualV2/FrameLogin.class b/bin/visual/frame/FrameLogin.class similarity index 74% rename from bin/visualV2/FrameLogin.class rename to bin/visual/frame/FrameLogin.class index 2eb41aa..4fa0b91 100644 Binary files a/bin/visualV2/FrameLogin.class and b/bin/visual/frame/FrameLogin.class differ diff --git a/bin/visual/frame/FrameModificar$1.class b/bin/visual/frame/FrameModificar$1.class new file mode 100644 index 0000000..874ed09 Binary files /dev/null and b/bin/visual/frame/FrameModificar$1.class differ diff --git a/bin/visual/frame/FrameModificar$2.class b/bin/visual/frame/FrameModificar$2.class new file mode 100644 index 0000000..b248375 Binary files /dev/null and b/bin/visual/frame/FrameModificar$2.class differ diff --git a/bin/visual/frame/FrameModificar$3.class b/bin/visual/frame/FrameModificar$3.class new file mode 100644 index 0000000..40a9202 Binary files /dev/null and b/bin/visual/frame/FrameModificar$3.class differ diff --git a/bin/visualV2/FrameModificar.class b/bin/visual/frame/FrameModificar.class similarity index 79% rename from bin/visualV2/FrameModificar.class rename to bin/visual/frame/FrameModificar.class index 66b7301..e7e7211 100644 Binary files a/bin/visualV2/FrameModificar.class and b/bin/visual/frame/FrameModificar.class differ diff --git a/bin/visual/frame/FramePrincipal$1.class b/bin/visual/frame/FramePrincipal$1.class new file mode 100644 index 0000000..bc6bc8a Binary files /dev/null and b/bin/visual/frame/FramePrincipal$1.class differ diff --git a/bin/visual/frame/FramePrincipal.class b/bin/visual/frame/FramePrincipal.class new file mode 100644 index 0000000..c1c8bc1 Binary files /dev/null and b/bin/visual/frame/FramePrincipal.class differ diff --git a/bin/visual/frame/FrameRegistro$1.class b/bin/visual/frame/FrameRegistro$1.class new file mode 100644 index 0000000..fb8407a Binary files /dev/null and b/bin/visual/frame/FrameRegistro$1.class differ diff --git a/bin/visual/frame/FrameRegistro$2.class b/bin/visual/frame/FrameRegistro$2.class new file mode 100644 index 0000000..8b3f32b Binary files /dev/null and b/bin/visual/frame/FrameRegistro$2.class differ diff --git a/bin/visualV2/FrameRegistro.class b/bin/visual/frame/FrameRegistro.class similarity index 76% rename from bin/visualV2/FrameRegistro.class rename to bin/visual/frame/FrameRegistro.class index 8bfa452..2a56009 100644 Binary files a/bin/visualV2/FrameRegistro.class and b/bin/visual/frame/FrameRegistro.class differ diff --git a/bin/visual/otros/JTableTable$1.class b/bin/visual/otros/JTableTable$1.class new file mode 100644 index 0000000..ae0444e Binary files /dev/null and b/bin/visual/otros/JTableTable$1.class differ diff --git a/bin/visualV2/JTableTable.class b/bin/visual/otros/JTableTable.class similarity index 64% rename from bin/visualV2/JTableTable.class rename to bin/visual/otros/JTableTable.class index 985132f..726f851 100644 Binary files a/bin/visualV2/JTableTable.class and b/bin/visual/otros/JTableTable.class differ diff --git a/bin/visualV2/P.A.M.v2/catola.png b/bin/visual/panel/P.A.M.v2/catola.png similarity index 100% rename from bin/visualV2/P.A.M.v2/catola.png rename to bin/visual/panel/P.A.M.v2/catola.png diff --git a/bin/visualV2/P.A.M.v2/logo.png b/bin/visual/panel/P.A.M.v2/logo.png similarity index 100% rename from bin/visualV2/P.A.M.v2/logo.png rename to bin/visual/panel/P.A.M.v2/logo.png diff --git a/bin/visualV2/P.A.M.v2/resumen.png b/bin/visual/panel/P.A.M.v2/resumen.png similarity index 100% rename from bin/visualV2/P.A.M.v2/resumen.png rename to bin/visual/panel/P.A.M.v2/resumen.png diff --git a/bin/visual/panel/PanelCartola$1.class b/bin/visual/panel/PanelCartola$1.class new file mode 100644 index 0000000..f8424c3 Binary files /dev/null and b/bin/visual/panel/PanelCartola$1.class differ diff --git a/bin/visual/panel/PanelCartola$2.class b/bin/visual/panel/PanelCartola$2.class new file mode 100644 index 0000000..2f48c52 Binary files /dev/null and b/bin/visual/panel/PanelCartola$2.class differ diff --git a/bin/visual/panel/PanelCartola$3.class b/bin/visual/panel/PanelCartola$3.class new file mode 100644 index 0000000..b5f5c97 Binary files /dev/null and b/bin/visual/panel/PanelCartola$3.class differ diff --git a/bin/visualV2/PanelCartola.class b/bin/visual/panel/PanelCartola.class similarity index 78% rename from bin/visualV2/PanelCartola.class rename to bin/visual/panel/PanelCartola.class index dbbc4ef..8308e47 100644 Binary files a/bin/visualV2/PanelCartola.class and b/bin/visual/panel/PanelCartola.class differ diff --git a/bin/visual/panel/PanelResumen$1.class b/bin/visual/panel/PanelResumen$1.class new file mode 100644 index 0000000..8e795f1 Binary files /dev/null and b/bin/visual/panel/PanelResumen$1.class differ diff --git a/bin/visualV2/PanelResumen.class b/bin/visual/panel/PanelResumen.class similarity index 62% rename from bin/visualV2/PanelResumen.class rename to bin/visual/panel/PanelResumen.class index f9d6b27..0cfe3c7 100644 Binary files a/bin/visualV2/PanelResumen.class and b/bin/visual/panel/PanelResumen.class differ diff --git a/bin/visual/panel/PanelSuperior$1.class b/bin/visual/panel/PanelSuperior$1.class new file mode 100644 index 0000000..ad82046 Binary files /dev/null and b/bin/visual/panel/PanelSuperior$1.class differ diff --git a/bin/visual/panel/PanelSuperior$2.class b/bin/visual/panel/PanelSuperior$2.class new file mode 100644 index 0000000..e6d7c0c Binary files /dev/null and b/bin/visual/panel/PanelSuperior$2.class differ diff --git a/bin/visualV2/PanelSuperior.class b/bin/visual/panel/PanelSuperior.class similarity index 76% rename from bin/visualV2/PanelSuperior.class rename to bin/visual/panel/PanelSuperior.class index d85c186..c46af49 100644 Binary files a/bin/visualV2/PanelSuperior.class and b/bin/visual/panel/PanelSuperior.class differ diff --git a/bin/visualV2/FrameAdministrador$1.class b/bin/visualV2/FrameAdministrador$1.class deleted file mode 100644 index 267ed44..0000000 Binary files a/bin/visualV2/FrameAdministrador$1.class and /dev/null differ diff --git a/bin/visualV2/FrameAdministrador$2.class b/bin/visualV2/FrameAdministrador$2.class deleted file mode 100644 index 99ccbe5..0000000 Binary files a/bin/visualV2/FrameAdministrador$2.class and /dev/null differ diff --git a/bin/visualV2/FrameAdministrador$3.class b/bin/visualV2/FrameAdministrador$3.class deleted file mode 100644 index c438b63..0000000 Binary files a/bin/visualV2/FrameAdministrador$3.class and /dev/null differ diff --git a/bin/visualV2/FrameAdministrador$4.class b/bin/visualV2/FrameAdministrador$4.class deleted file mode 100644 index 6d4b788..0000000 Binary files a/bin/visualV2/FrameAdministrador$4.class and /dev/null differ diff --git a/bin/visualV2/FrameCrear$1.class b/bin/visualV2/FrameCrear$1.class deleted file mode 100644 index 2d50e57..0000000 Binary files a/bin/visualV2/FrameCrear$1.class and /dev/null differ diff --git a/bin/visualV2/FrameCrear.class b/bin/visualV2/FrameCrear.class deleted file mode 100644 index 3a70818..0000000 Binary files a/bin/visualV2/FrameCrear.class and /dev/null differ diff --git a/bin/visualV2/FrameLogin$1.class b/bin/visualV2/FrameLogin$1.class deleted file mode 100644 index d9b7924..0000000 Binary files a/bin/visualV2/FrameLogin$1.class and /dev/null differ diff --git a/bin/visualV2/FrameLogin$2.class b/bin/visualV2/FrameLogin$2.class deleted file mode 100644 index b0fa6b5..0000000 Binary files a/bin/visualV2/FrameLogin$2.class and /dev/null differ diff --git a/bin/visualV2/FrameLogin$3.class b/bin/visualV2/FrameLogin$3.class deleted file mode 100644 index 08d7bac..0000000 Binary files a/bin/visualV2/FrameLogin$3.class and /dev/null differ diff --git a/bin/visualV2/FrameLogin$4.class b/bin/visualV2/FrameLogin$4.class deleted file mode 100644 index eee8eca..0000000 Binary files a/bin/visualV2/FrameLogin$4.class and /dev/null differ diff --git a/bin/visualV2/FrameModificar$1.class b/bin/visualV2/FrameModificar$1.class deleted file mode 100644 index 3854792..0000000 Binary files a/bin/visualV2/FrameModificar$1.class and /dev/null differ diff --git a/bin/visualV2/FrameModificar$2.class b/bin/visualV2/FrameModificar$2.class deleted file mode 100644 index 7f50689..0000000 Binary files a/bin/visualV2/FrameModificar$2.class and /dev/null differ diff --git a/bin/visualV2/FrameModificar$3.class b/bin/visualV2/FrameModificar$3.class deleted file mode 100644 index 25e0b71..0000000 Binary files a/bin/visualV2/FrameModificar$3.class and /dev/null differ diff --git a/bin/visualV2/FramePrincipal.class b/bin/visualV2/FramePrincipal.class deleted file mode 100644 index 1fcdcc2..0000000 Binary files a/bin/visualV2/FramePrincipal.class and /dev/null differ diff --git a/bin/visualV2/FrameRegistro$1.class b/bin/visualV2/FrameRegistro$1.class deleted file mode 100644 index 27ac858..0000000 Binary files a/bin/visualV2/FrameRegistro$1.class and /dev/null differ diff --git a/bin/visualV2/FrameRegistro$2.class b/bin/visualV2/FrameRegistro$2.class deleted file mode 100644 index b2b0ce7..0000000 Binary files a/bin/visualV2/FrameRegistro$2.class and /dev/null differ diff --git a/bin/visualV2/JTableTable$1.class b/bin/visualV2/JTableTable$1.class deleted file mode 100644 index 8f982ae..0000000 Binary files a/bin/visualV2/JTableTable$1.class and /dev/null differ diff --git a/bin/visualV2/PanelCartola$1.class b/bin/visualV2/PanelCartola$1.class deleted file mode 100644 index c7617b5..0000000 Binary files a/bin/visualV2/PanelCartola$1.class and /dev/null differ diff --git a/bin/visualV2/PanelCartola$2.class b/bin/visualV2/PanelCartola$2.class deleted file mode 100644 index 8a15e1e..0000000 Binary files a/bin/visualV2/PanelCartola$2.class and /dev/null differ diff --git a/bin/visualV2/PanelCartola$3.class b/bin/visualV2/PanelCartola$3.class deleted file mode 100644 index bd2f2c0..0000000 Binary files a/bin/visualV2/PanelCartola$3.class and /dev/null differ diff --git a/bin/visualV2/PanelResumen$1.class b/bin/visualV2/PanelResumen$1.class deleted file mode 100644 index e9c4fb4..0000000 Binary files a/bin/visualV2/PanelResumen$1.class and /dev/null differ diff --git a/bin/visualV2/PanelSuperior$1.class b/bin/visualV2/PanelSuperior$1.class deleted file mode 100644 index 41e005b..0000000 Binary files a/bin/visualV2/PanelSuperior$1.class and /dev/null differ diff --git a/bin/visualV2/PanelSuperior$2.class b/bin/visualV2/PanelSuperior$2.class deleted file mode 100644 index 55076a1..0000000 Binary files a/bin/visualV2/PanelSuperior$2.class and /dev/null differ diff --git a/doc/allclasses-frame.html b/doc/allclasses-frame.html new file mode 100644 index 0000000..6798a6a --- /dev/null +++ b/doc/allclasses-frame.html @@ -0,0 +1,33 @@ + + + +
+ +public class ControlAdmin
+extends java.lang.Object
+| Constructor and Description | +
|---|
ControlAdmin()
+Constructor que inicia la clase archivo para ser utilizada por
+ ControlAdmin
+ |
+
| Modifier and Type | +Method and Description | +
|---|---|
boolean |
+añadirUsuario(java.lang.String user,
+ java.lang.String pass)
+Añade un usuario al archivo comprobando antes si cumple con las
+ condiciones esperadas
+ |
+
java.lang.String[] |
+getRow(int id)
+Entrega la fila correspondiente al id que se le proporciona
+ |
+
int |
+getRowCount()
+Cantidad de filas que posee el archivo
+ |
+
boolean |
+isUser(java.lang.String user)
+Busca un usuario en el archivo e indica si existe o no
+ |
+
boolean |
+modificarUser(java.lang.String original,
+ java.lang.String user,
+ java.lang.String pass)
+Modifica los datos de un usuario
+ |
+
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitpublic ControlAdmin()+
public int getRowCount()+
public java.lang.String[] getRow(int id)+
id - Numero de la fila que se quierepublic boolean añadirUsuario(java.lang.String user, + java.lang.String pass)+
user - Nombre de usuariopass - Contraseñapublic boolean isUser(java.lang.String user)+
user - Usuario a buscarpublic boolean modificarUser(java.lang.String original, + java.lang.String user, + java.lang.String pass)+
original - Linea que contiene el usuario y la contraseña de la siguiente
+ manera "user;pass"user - Nombre de usuario nuevopass - Contraseña nueva para el usuariopublic class ControlLogin
+extends java.lang.Object
+| Constructor and Description | +
|---|
ControlLogin()
+Inicia el objeto y crea un objeto archivo para ser utilizado por los
+ metodos
+ |
+
| Modifier and Type | +Method and Description | +
|---|---|
boolean |
+añadirUsuario(java.lang.String user,
+ java.lang.String pass,
+ java.lang.String pass2)
+Realiza las comprobaciones necesarias para que los parametros entregados
+ correspondan con el formato de usuario y contraseña esperado y los añade
+ al archivo
+ |
+
boolean |
+isUser(java.lang.String user)
+Busca un usuario en el archivo
+ |
+
boolean |
+isUserPass(java.lang.String user,
+ java.lang.String pass)
+Busca un par usuario contraseña en el archivo
+ |
+
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitpublic ControlLogin()+
public boolean añadirUsuario(java.lang.String user, + java.lang.String pass, + java.lang.String pass2)+
user - Usuario el cual debe tener un largo superior a 4 caracteres y
+ no debe estar guardado en el archivo previamentepass - Contraseña la cual debe tener un largo mayor a 6 caracterespass2 - Contraseña que debe ser igual a la anteriorpublic boolean isUser(java.lang.String user)+
user - Usuario a buscarpublic boolean isUserPass(java.lang.String user, + java.lang.String pass)+
user - Usuario a buscarpass - Contraseña correspondiente a ese usuariopublic class ControlPrincipal
+extends java.lang.Object
+| Constructor and Description | +
|---|
ControlPrincipal(java.lang.String usuario)
+Constructor de la clase el cual inicia una clase archivo y llama a los
+ metodos ordenar, actId y actSaldos
+ |
+
| Modifier and Type | +Method and Description | +
|---|---|
void |
+actId()
+Actualiza los id de las filas del archivo esto para que despues de
+ cualquier reordenamiento se mantenga el orden en los ids
+ |
+
void |
+actSaldos()
+Actualiza todos los saldos dentro del archivo para que sean
+ correspondientes.
+ |
+
void |
+añadir(java.lang.String fecha,
+ java.lang.String documento,
+ java.lang.String fd,
+ java.lang.String desc,
+ java.lang.String ing,
+ java.lang.String egr)
+Genera el id para la nueva linea, calcula el saldo y añade la linea
+ generada al archivo
+ |
+
void |
+eliminarFila(java.lang.String id)
+Elimina la fila que contenga el id entregado
+ |
+
java.lang.String[] |
+getLastRow() |
+
java.lang.String[] |
+getRow(int id)
+Entrega la fila correspondiente al id
+ |
+
int |
+getRowCount() |
+
boolean |
+isFiled()
+Comprueba si el archivo tiene contenido, se considera eso como verdadero
+ cuando el archivo contiene mas de 5 caracteres
+ |
+
void |
+modificarFila(java.lang.String id,
+ java.lang.String fecha,
+ java.lang.String documento,
+ java.lang.String fd,
+ java.lang.String desc,
+ java.lang.String ing,
+ java.lang.String egr)
+Modifica una fila que contenga el id entregado
+ |
+
void |
+ordenar()
+Ordena las filas del archivo respecto a sus fechas
+ |
+
int[] |
+resumenDoc()
+Genera un resumen de los datos en el archivo respecto a el tipo de documento.
+ |
+
java.lang.String[][] |
+resumenMes()
+Genera un String[][] con un resumen por mes de cada archivo, teniendo en
+ siendo el primer indice correspondiente a fecha/saldo/ingresos/egresos y
+ el segundo indice correspondiente a cada mes contenido en el archivo
+ |
+
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitpublic ControlPrincipal(java.lang.String usuario)+
usuario - Usuario al que corresponde el archivo que se abrirapublic void añadir(java.lang.String fecha, + java.lang.String documento, + java.lang.String fd, + java.lang.String desc, + java.lang.String ing, + java.lang.String egr)+
fecha - Fecha con formato dd/mm/yyyydocumento - Forma de pagofd - Fuente o destinodesc - Descripcioning - Ingreso, debe corresponder al formato de un integr - Egreso, debe corresponder al formato de un intpublic void modificarFila(java.lang.String id, + java.lang.String fecha, + java.lang.String documento, + java.lang.String fd, + java.lang.String desc, + java.lang.String ing, + java.lang.String egr)+
id - Identificador de la fila a modificarfecha - Fecha con formato dd/mm/yyyydocumento - Forma de pagofd - Fuente o destinodesc - Descripcioning - Ingreso, debe corresponder al formato de un integr - Egreso, debe corresponder al formato de un intpublic void eliminarFila(java.lang.String id)+
id - Identificador de la fila a eliminarpublic void ordenar()+
public void actSaldos()+
public void actId()+
public java.lang.String[] getLastRow()+
public java.lang.String[] getRow(int id)+
id - Identificador de la filapublic int getRowCount()+
public boolean isFiled()+
public java.lang.String[][] resumenMes()+
public int[] resumenDoc()+
| Class | +Description | +
|---|---|
| ControlAdmin | +
+ Clase que se dedica a controlar los procesos en las ventanas de
+ administrador, crear y modificar
+ |
+
| ControlLogin | +
+ Esta clase es utilizada en las ventanas Login y Registro para sus
+ operaciones, conteniendo metodos que permiten añadir usuarios y comprobar la
+ existencia de un usuario o un usuario y su contraseña
+ |
+
| ControlPrincipal | +
+ Esta clase se dedica al control de la ventana Principal y sus distintos
+ paneles
+ |
+
The Overview page is the front page of this API document and provides a list of all packages with a summary for each. This page can also contain an overall description of the set of packages.
+Each package has a page that contains a list of its classes and interfaces, with a summary for each. This page can contain six categories:
+Each class, interface, nested class and nested interface has its own separate page. Each of these pages has three sections consisting of a class/interface description, summary tables, and detailed member descriptions:
+Each summary entry contains the first sentence from the detailed description for that item. The summary entries are alphabetical, while the detailed descriptions are in the order they appear in the source code. This preserves the logical groupings established by the programmer.
+Each annotation type has its own separate page with the following sections:
+Each enum has its own separate page with the following sections:
+Each documented package, class and interface has its own Use page. This page describes what packages, classes, methods, constructors and fields use any part of the given class or package. Given a class or interface A, its Use page includes subclasses of A, fields declared as A, methods that return A, and methods and constructors with parameters of type A. You can access this page by first going to the package, class or interface, then clicking on the "Use" link in the navigation bar.
+There is a Class Hierarchy page for all packages, plus a hierarchy for each package. Each hierarchy page contains a list of classes and a list of interfaces. The classes are organized by inheritance structure starting with java.lang.Object. The interfaces do not inherit from java.lang.Object.
The Deprecated API page lists all of the API that have been deprecated. A deprecated API is not recommended for use, generally due to improvements, and a replacement API is usually given. Deprecated APIs may be removed in future implementations.
+The Index contains an alphabetic list of all classes, interfaces, constructors, methods, and fields.
+These links take you to the next or previous class, interface, package, or related page.
+These links show and hide the HTML frames. All pages are available with or without frames.
+The All Classes link shows all classes and interfaces except non-static nested types.
+Each serializable or externalizable class has a description of its serialization fields and methods. This information is of interest to re-implementors, not to developers using the API. While there is no link in the navigation bar, you can get to this information by going to any serialized class and clicking "Serialized Form" in the "See also" section of the class description.
+The Constant Field Values page lists the static final fields and their values.
++ + diff --git a/doc/overview-summary.html b/doc/overview-summary.html new file mode 100644 index 0000000..2f26766 --- /dev/null +++ b/doc/overview-summary.html @@ -0,0 +1,151 @@ + + + + + +
| Package | +Description | +
|---|---|
| control | ++ |
| utiles | ++ |
| visual.frame | ++ |
| visual.otros | ++ |
| visual.panel | ++ |
javax.swing.JButton bCrear+
javax.swing.JButton bModificar+
javax.swing.JScrollPane jScrollPane1+
javax.swing.JPanel panel+
javax.swing.JTable tabla+
javax.swing.JButton bCrear+
javax.swing.JTextField fContraseña+
javax.swing.JTextField fUsuario+
javax.swing.JLabel lContraseña+
javax.swing.JLabel lUsuario+
javax.swing.JPanel panel+
javax.swing.JButton bIngresar+
javax.swing.JButton bRegistrar+
javax.swing.JButton bSalir+
javax.swing.JPanel bar+
javax.swing.JLabel bienvenido+
javax.swing.JPasswordField fContraseña1+
javax.swing.JTextField fUsuario+
javax.swing.JLabel lContraseña+
javax.swing.JLabel lUsuario+
javax.swing.JLabel pam+
javax.swing.JPanel panel+
javax.swing.JMenuBar menubar+
javax.swing.JMenu menu+
javax.swing.JButton bModificar+
javax.swing.JComboBox<E> boxUsuario+
javax.swing.JTextField fContraseña+
javax.swing.JTextField fUsuario+
javax.swing.JLabel lContraseña+
javax.swing.JLabel lSelectUsuario+
javax.swing.JLabel lUsuario+
javax.swing.JPanel panel+
javax.swing.JPanel panelCard+
PanelCartola panelCartola+
PanelResumen panelResumen+
PanelSuperior panelSuperior+
javax.swing.JPanel separador+
java.lang.String usuario+
javax.swing.JButton bRegistrarse+
javax.swing.JButton bSalir+
javax.swing.JPanel bar+
javax.swing.JLabel bienvenido+
javax.swing.JPasswordField fContraseña+
javax.swing.JTextField fUsuario+
javax.swing.JPasswordField fVerificar+
javax.swing.JLabel lContraseña+
javax.swing.JLabel lUsuario+
javax.swing.JLabel lVerificiar+
javax.swing.JLabel pam+
javax.swing.JPanel panel+
java.lang.String usuario+
javax.swing.JButton bAñadir+
javax.swing.JButton bEliminar+
javax.swing.JButton bModificar+
javax.swing.JComboBox<E> boxDocumento1+
javax.swing.JComboBox<E> boxDocumento2+
org.jdesktop.swingx.JXDatePicker dateFecha1+
org.jdesktop.swingx.JXDatePicker dateFecha2+
javax.swing.JTextField fDesc1+
javax.swing.JTextField fDesc2+
javax.swing.JTextField fEgr1+
javax.swing.JTextField fEgr2+
javax.swing.JTextField fFD1+
javax.swing.JTextField fFD2+
javax.swing.JTextField fIng1+
javax.swing.JTextField fIng2+
javax.swing.JTextField fNumero+
javax.swing.JScrollPane jScrollPane1+
javax.swing.JLabel lDesc1+
javax.swing.JLabel lDesc2+
javax.swing.JLabel lDocumento1+
javax.swing.JLabel lDocumento2+
javax.swing.JLabel lEgr1+
javax.swing.JLabel lEgr2+
javax.swing.JLabel lFD1+
javax.swing.JLabel lFD2+
javax.swing.JLabel lFecha1+
javax.swing.JLabel lFecha2+
javax.swing.JLabel lIng1+
javax.swing.JLabel lIng2+
javax.swing.JLabel lNumero+
JTableTable tabla+
java.lang.String usuario+
javax.swing.JLabel balance+
javax.swing.JComboBox<E> boxGraph+
java.util.ArrayList<E> egresos+
java.util.ArrayList<E> ingresos+
java.util.ArrayList<E> saldos+
java.util.ArrayList<E> meses+
org.jfree.chart.ChartPanel graphDocumento+
org.jfree.chart.ChartPanel graphMes+
javax.swing.JLabel lEgr+
javax.swing.JLabel lIng+
javax.swing.JLabel lSaldo+
javax.swing.JPanel panelGraphs+
javax.swing.JLabel selectGraph+
javax.swing.border.Border borde+
java.lang.String usuario+
org.jfree.data.category.DefaultCategoryDataset dataSetMes+
org.jfree.data.category.DefaultCategoryDataset dataSetDoc+
javax.swing.JButton bCartola+
javax.swing.JButton bResumen+
javax.swing.JTextField fFecha+
javax.swing.JTextField fUsuario+
javax.swing.JLabel lFecha+
javax.swing.JLabel lUsuario+
javax.swing.JLabel logo+
java.lang.String usuario+
public class Archivo
+extends java.lang.Object
+| Constructor and Description | +
|---|
Archivo(java.lang.String archivo)
+Constructor para la clase archivo, recibiendo el nombre del archivo que
+ debera manejar, y creandolo si es que no existia previamente
+ |
+
| Modifier and Type | +Method and Description | +
|---|---|
void |
+actArchivo(java.lang.String[] texto)
+Remplaza el contenido del archivo por el String[] entregado
+ |
+
void |
+borrarLinea(java.lang.String id)
+Borra una linea respecto al id entregado
+ |
+
static void |
+changeName(java.lang.String nuevo,
+ java.lang.String old)
+Actualiza el nombre de un archivo
+ |
+
void |
+clearFile()
+Elimina todo el contenido del archivo
+ |
+
java.lang.String[] |
+entregarProcesado()
+Toma el contenido del archivo y lo divide en los saltos de linea, los
+ cuales son representados por *!
+ |
+
void |
+escribirArchivo(java.lang.String texto)
+Añade el String entregado al final del archivo
+ |
+
static java.lang.String |
+getRuta(java.lang.String archivo)
+Este metodo asigna una ruta al archivo dependiendo del sistema operativo.
+ |
+
java.lang.String |
+leerArchivo()
+Lee el contenido del archivo y une todas sus lineas en un solo string
+ para ser procesado mas tarde
+ |
+
void |
+modificarLinea(java.lang.String linea,
+ java.lang.String nueva)
+Cambia una linea del archivo
+ |
+
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitpublic Archivo(java.lang.String archivo)+
archivo - String con el nombre del archivo al que se desea acceder/crearpublic static void changeName(java.lang.String nuevo, + java.lang.String old)+
nuevo - Nuevo nombre para el archivoold - El nombre que tiene actualmente el archivopublic static java.lang.String getRuta(java.lang.String archivo)+
+ Si es Windows lo asignara a la ruta C:\P.A.M\ +
++ Si es Linux lo asignara al directorio de usuario en la carpeta /P.A.M/ +
archivo - Nombre del archivo al que se le asignara la rutapublic java.lang.String leerArchivo()+
public void escribirArchivo(java.lang.String texto)+
texto - Texto a añadirpublic java.lang.String[] entregarProcesado()+
public void borrarLinea(java.lang.String id)+
id - Texto el cual esta en el primer espacio en la lina a borrarpublic void actArchivo(java.lang.String[] texto)+
texto - Texto con el que se remplazara el archivopublic void clearFile()+
public void modificarLinea(java.lang.String linea, + java.lang.String nueva)+
linea - Linea original a cambiarnueva - Linea que remplaza a la originalpublic class Validador
+extends java.lang.Object
+| Modifier and Type | +Method and Description | +
|---|---|
static boolean |
+isNumber(java.lang.String num)
+Comprueba si el string recibido corresponde con el formato de un int
+ |
+
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitpublic static boolean isNumber(java.lang.String num)+
num - String que deberia contener un numeropublic class FrameAdministrador
+extends javax.swing.JFrame
+java.awt.Window.Typejava.awt.Component.BaselineResizeBehaviorEXIT_ON_CLOSECROSSHAIR_CURSOR, DEFAULT_CURSOR, E_RESIZE_CURSOR, HAND_CURSOR, ICONIFIED, MAXIMIZED_BOTH, MAXIMIZED_HORIZ, MAXIMIZED_VERT, MOVE_CURSOR, N_RESIZE_CURSOR, NE_RESIZE_CURSOR, NORMAL, NW_RESIZE_CURSOR, S_RESIZE_CURSOR, SE_RESIZE_CURSOR, SW_RESIZE_CURSOR, TEXT_CURSOR, W_RESIZE_CURSOR, WAIT_CURSORBOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENTDISPOSE_ON_CLOSE, DO_NOTHING_ON_CLOSE, HIDE_ON_CLOSEABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH| Constructor and Description | +
|---|
FrameAdministrador()
+Constructor que inicia la ventana y todos sus componentes
+ |
+
| Modifier and Type | +Method and Description | +
|---|---|
void |
+actTabla()
+Llena la tabla de usuarios
+ |
+
getAccessibleContext, getContentPane, getDefaultCloseOperation, getGlassPane, getGraphics, getJMenuBar, getLayeredPane, getRootPane, getTransferHandler, isDefaultLookAndFeelDecorated, remove, repaint, setContentPane, setDefaultCloseOperation, setDefaultLookAndFeelDecorated, setGlassPane, setIconImage, setJMenuBar, setLayeredPane, setLayout, setTransferHandler, updateaddNotify, getCursorType, getExtendedState, getFrames, getIconImage, getMaximizedBounds, getMenuBar, getState, getTitle, isResizable, isUndecorated, remove, removeNotify, setBackground, setCursor, setExtendedState, setMaximizedBounds, setMenuBar, setOpacity, setResizable, setShape, setState, setTitle, setUndecoratedaddPropertyChangeListener, addPropertyChangeListener, addWindowFocusListener, addWindowListener, addWindowStateListener, applyResourceBundle, applyResourceBundle, createBufferStrategy, createBufferStrategy, dispose, getBackground, getBufferStrategy, getFocusableWindowState, getFocusCycleRootAncestor, getFocusOwner, getFocusTraversalKeys, getIconImages, getInputContext, getListeners, getLocale, getModalExclusionType, getMostRecentFocusOwner, getOpacity, getOwnedWindows, getOwner, getOwnerlessWindows, getShape, getToolkit, getType, getWarningString, getWindowFocusListeners, getWindowListeners, getWindows, getWindowStateListeners, hide, isActive, isAlwaysOnTop, isAlwaysOnTopSupported, isAutoRequestFocus, isFocusableWindow, isFocusCycleRoot, isFocused, isLocationByPlatform, isOpaque, isShowing, isValidateRoot, pack, paint, postEvent, removeWindowFocusListener, removeWindowListener, removeWindowStateListener, reshape, setAlwaysOnTop, setAutoRequestFocus, setBounds, setBounds, setCursor, setFocusableWindowState, setFocusCycleRoot, setIconImages, setLocation, setLocation, setLocationByPlatform, setLocationRelativeTo, setMinimumSize, setModalExclusionType, setSize, setSize, setType, setVisible, show, toBack, toFrontadd, add, add, add, add, addContainerListener, applyComponentOrientation, areFocusTraversalKeysSet, countComponents, deliverEvent, doLayout, findComponentAt, findComponentAt, getAlignmentX, getAlignmentY, getComponent, getComponentAt, getComponentAt, getComponentCount, getComponents, getComponentZOrder, getContainerListeners, getFocusTraversalPolicy, getInsets, getLayout, getMaximumSize, getMinimumSize, getMousePosition, getPreferredSize, insets, invalidate, isAncestorOf, isFocusCycleRoot, isFocusTraversalPolicyProvider, isFocusTraversalPolicySet, layout, list, list, locate, minimumSize, paintComponents, preferredSize, print, printComponents, remove, removeAll, removeContainerListener, setComponentZOrder, setFocusTraversalKeys, setFocusTraversalPolicy, setFocusTraversalPolicyProvider, setFont, transferFocusDownCycle, validateaction, add, addComponentListener, addFocusListener, addHierarchyBoundsListener, addHierarchyListener, addInputMethodListener, addKeyListener, addMouseListener, addMouseMotionListener, addMouseWheelListener, bounds, checkImage, checkImage, contains, contains, createImage, createImage, createVolatileImage, createVolatileImage, disable, dispatchEvent, enable, enable, enableInputMethods, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, getBaseline, getBaselineResizeBehavior, getBounds, getBounds, getColorModel, getComponentListeners, getComponentOrientation, getCursor, getDropTarget, getFocusListeners, getFocusTraversalKeysEnabled, getFont, getFontMetrics, getForeground, getGraphicsConfiguration, getHeight, getHierarchyBoundsListeners, getHierarchyListeners, getIgnoreRepaint, getInputMethodListeners, getInputMethodRequests, getKeyListeners, getLocation, getLocation, getLocationOnScreen, getMouseListeners, getMouseMotionListeners, getMousePosition, getMouseWheelListeners, getName, getParent, getPeer, getPropertyChangeListeners, getPropertyChangeListeners, getSize, getSize, getTreeLock, getWidth, getX, getY, gotFocus, handleEvent, hasFocus, imageUpdate, inside, isBackgroundSet, isCursorSet, isDisplayable, isDoubleBuffered, isEnabled, isFocusable, isFocusOwner, isFocusTraversable, isFontSet, isForegroundSet, isLightweight, isMaximumSizeSet, isMinimumSizeSet, isPreferredSizeSet, isValid, isVisible, keyDown, keyUp, list, list, list, location, lostFocus, mouseDown, mouseDrag, mouseEnter, mouseExit, mouseMove, mouseUp, move, nextFocus, paintAll, prepareImage, prepareImage, printAll, removeComponentListener, removeFocusListener, removeHierarchyBoundsListener, removeHierarchyListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removeMouseWheelListener, removePropertyChangeListener, removePropertyChangeListener, repaint, repaint, repaint, requestFocus, requestFocusInWindow, resize, resize, revalidate, setComponentOrientation, setDropTarget, setEnabled, setFocusable, setFocusTraversalKeysEnabled, setForeground, setIgnoreRepaint, setLocale, setMaximumSize, setName, setPreferredSize, show, size, toString, transferFocus, transferFocusBackward, transferFocusUpCycleequals, getClass, hashCode, notify, notifyAll, wait, wait, waitgetFont, postEventpublic class FrameCrear
+extends javax.swing.JFrame
+java.awt.Window.Typejava.awt.Component.BaselineResizeBehaviorEXIT_ON_CLOSECROSSHAIR_CURSOR, DEFAULT_CURSOR, E_RESIZE_CURSOR, HAND_CURSOR, ICONIFIED, MAXIMIZED_BOTH, MAXIMIZED_HORIZ, MAXIMIZED_VERT, MOVE_CURSOR, N_RESIZE_CURSOR, NE_RESIZE_CURSOR, NORMAL, NW_RESIZE_CURSOR, S_RESIZE_CURSOR, SE_RESIZE_CURSOR, SW_RESIZE_CURSOR, TEXT_CURSOR, W_RESIZE_CURSOR, WAIT_CURSORBOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENTDISPOSE_ON_CLOSE, DO_NOTHING_ON_CLOSE, HIDE_ON_CLOSEABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH| Constructor and Description | +
|---|
FrameCrear()
+Constructor que inicia la ventana
+ |
+
getAccessibleContext, getContentPane, getDefaultCloseOperation, getGlassPane, getGraphics, getJMenuBar, getLayeredPane, getRootPane, getTransferHandler, isDefaultLookAndFeelDecorated, remove, repaint, setContentPane, setDefaultCloseOperation, setDefaultLookAndFeelDecorated, setGlassPane, setIconImage, setJMenuBar, setLayeredPane, setLayout, setTransferHandler, updateaddNotify, getCursorType, getExtendedState, getFrames, getIconImage, getMaximizedBounds, getMenuBar, getState, getTitle, isResizable, isUndecorated, remove, removeNotify, setBackground, setCursor, setExtendedState, setMaximizedBounds, setMenuBar, setOpacity, setResizable, setShape, setState, setTitle, setUndecoratedaddPropertyChangeListener, addPropertyChangeListener, addWindowFocusListener, addWindowListener, addWindowStateListener, applyResourceBundle, applyResourceBundle, createBufferStrategy, createBufferStrategy, dispose, getBackground, getBufferStrategy, getFocusableWindowState, getFocusCycleRootAncestor, getFocusOwner, getFocusTraversalKeys, getIconImages, getInputContext, getListeners, getLocale, getModalExclusionType, getMostRecentFocusOwner, getOpacity, getOwnedWindows, getOwner, getOwnerlessWindows, getShape, getToolkit, getType, getWarningString, getWindowFocusListeners, getWindowListeners, getWindows, getWindowStateListeners, hide, isActive, isAlwaysOnTop, isAlwaysOnTopSupported, isAutoRequestFocus, isFocusableWindow, isFocusCycleRoot, isFocused, isLocationByPlatform, isOpaque, isShowing, isValidateRoot, pack, paint, postEvent, removeWindowFocusListener, removeWindowListener, removeWindowStateListener, reshape, setAlwaysOnTop, setAutoRequestFocus, setBounds, setBounds, setCursor, setFocusableWindowState, setFocusCycleRoot, setIconImages, setLocation, setLocation, setLocationByPlatform, setLocationRelativeTo, setMinimumSize, setModalExclusionType, setSize, setSize, setType, setVisible, show, toBack, toFrontadd, add, add, add, add, addContainerListener, applyComponentOrientation, areFocusTraversalKeysSet, countComponents, deliverEvent, doLayout, findComponentAt, findComponentAt, getAlignmentX, getAlignmentY, getComponent, getComponentAt, getComponentAt, getComponentCount, getComponents, getComponentZOrder, getContainerListeners, getFocusTraversalPolicy, getInsets, getLayout, getMaximumSize, getMinimumSize, getMousePosition, getPreferredSize, insets, invalidate, isAncestorOf, isFocusCycleRoot, isFocusTraversalPolicyProvider, isFocusTraversalPolicySet, layout, list, list, locate, minimumSize, paintComponents, preferredSize, print, printComponents, remove, removeAll, removeContainerListener, setComponentZOrder, setFocusTraversalKeys, setFocusTraversalPolicy, setFocusTraversalPolicyProvider, setFont, transferFocusDownCycle, validateaction, add, addComponentListener, addFocusListener, addHierarchyBoundsListener, addHierarchyListener, addInputMethodListener, addKeyListener, addMouseListener, addMouseMotionListener, addMouseWheelListener, bounds, checkImage, checkImage, contains, contains, createImage, createImage, createVolatileImage, createVolatileImage, disable, dispatchEvent, enable, enable, enableInputMethods, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, getBaseline, getBaselineResizeBehavior, getBounds, getBounds, getColorModel, getComponentListeners, getComponentOrientation, getCursor, getDropTarget, getFocusListeners, getFocusTraversalKeysEnabled, getFont, getFontMetrics, getForeground, getGraphicsConfiguration, getHeight, getHierarchyBoundsListeners, getHierarchyListeners, getIgnoreRepaint, getInputMethodListeners, getInputMethodRequests, getKeyListeners, getLocation, getLocation, getLocationOnScreen, getMouseListeners, getMouseMotionListeners, getMousePosition, getMouseWheelListeners, getName, getParent, getPeer, getPropertyChangeListeners, getPropertyChangeListeners, getSize, getSize, getTreeLock, getWidth, getX, getY, gotFocus, handleEvent, hasFocus, imageUpdate, inside, isBackgroundSet, isCursorSet, isDisplayable, isDoubleBuffered, isEnabled, isFocusable, isFocusOwner, isFocusTraversable, isFontSet, isForegroundSet, isLightweight, isMaximumSizeSet, isMinimumSizeSet, isPreferredSizeSet, isValid, isVisible, keyDown, keyUp, list, list, list, location, lostFocus, mouseDown, mouseDrag, mouseEnter, mouseExit, mouseMove, mouseUp, move, nextFocus, paintAll, prepareImage, prepareImage, printAll, removeComponentListener, removeFocusListener, removeHierarchyBoundsListener, removeHierarchyListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removeMouseWheelListener, removePropertyChangeListener, removePropertyChangeListener, repaint, repaint, repaint, requestFocus, requestFocusInWindow, resize, resize, revalidate, setComponentOrientation, setDropTarget, setEnabled, setFocusable, setFocusTraversalKeysEnabled, setForeground, setIgnoreRepaint, setLocale, setMaximumSize, setName, setPreferredSize, show, size, toString, transferFocus, transferFocusBackward, transferFocusUpCycleequals, getClass, hashCode, notify, notifyAll, wait, wait, waitgetFont, postEventpublic class FrameLogin
+extends javax.swing.JFrame
+java.awt.Window.Typejava.awt.Component.BaselineResizeBehaviorEXIT_ON_CLOSECROSSHAIR_CURSOR, DEFAULT_CURSOR, E_RESIZE_CURSOR, HAND_CURSOR, ICONIFIED, MAXIMIZED_BOTH, MAXIMIZED_HORIZ, MAXIMIZED_VERT, MOVE_CURSOR, N_RESIZE_CURSOR, NE_RESIZE_CURSOR, NORMAL, NW_RESIZE_CURSOR, S_RESIZE_CURSOR, SE_RESIZE_CURSOR, SW_RESIZE_CURSOR, TEXT_CURSOR, W_RESIZE_CURSOR, WAIT_CURSORBOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENTDISPOSE_ON_CLOSE, DO_NOTHING_ON_CLOSE, HIDE_ON_CLOSEABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH| Constructor and Description | +
|---|
FrameLogin()
+Constructor que inicia la ventana.
+ |
+
getAccessibleContext, getContentPane, getDefaultCloseOperation, getGlassPane, getGraphics, getJMenuBar, getLayeredPane, getRootPane, getTransferHandler, isDefaultLookAndFeelDecorated, remove, repaint, setContentPane, setDefaultCloseOperation, setDefaultLookAndFeelDecorated, setGlassPane, setIconImage, setJMenuBar, setLayeredPane, setLayout, setTransferHandler, updateaddNotify, getCursorType, getExtendedState, getFrames, getIconImage, getMaximizedBounds, getMenuBar, getState, getTitle, isResizable, isUndecorated, remove, removeNotify, setBackground, setCursor, setExtendedState, setMaximizedBounds, setMenuBar, setOpacity, setResizable, setShape, setState, setTitle, setUndecoratedaddPropertyChangeListener, addPropertyChangeListener, addWindowFocusListener, addWindowListener, addWindowStateListener, applyResourceBundle, applyResourceBundle, createBufferStrategy, createBufferStrategy, dispose, getBackground, getBufferStrategy, getFocusableWindowState, getFocusCycleRootAncestor, getFocusOwner, getFocusTraversalKeys, getIconImages, getInputContext, getListeners, getLocale, getModalExclusionType, getMostRecentFocusOwner, getOpacity, getOwnedWindows, getOwner, getOwnerlessWindows, getShape, getToolkit, getType, getWarningString, getWindowFocusListeners, getWindowListeners, getWindows, getWindowStateListeners, hide, isActive, isAlwaysOnTop, isAlwaysOnTopSupported, isAutoRequestFocus, isFocusableWindow, isFocusCycleRoot, isFocused, isLocationByPlatform, isOpaque, isShowing, isValidateRoot, pack, paint, postEvent, removeWindowFocusListener, removeWindowListener, removeWindowStateListener, reshape, setAlwaysOnTop, setAutoRequestFocus, setBounds, setBounds, setCursor, setFocusableWindowState, setFocusCycleRoot, setIconImages, setLocation, setLocation, setLocationByPlatform, setLocationRelativeTo, setMinimumSize, setModalExclusionType, setSize, setSize, setType, setVisible, show, toBack, toFrontadd, add, add, add, add, addContainerListener, applyComponentOrientation, areFocusTraversalKeysSet, countComponents, deliverEvent, doLayout, findComponentAt, findComponentAt, getAlignmentX, getAlignmentY, getComponent, getComponentAt, getComponentAt, getComponentCount, getComponents, getComponentZOrder, getContainerListeners, getFocusTraversalPolicy, getInsets, getLayout, getMaximumSize, getMinimumSize, getMousePosition, getPreferredSize, insets, invalidate, isAncestorOf, isFocusCycleRoot, isFocusTraversalPolicyProvider, isFocusTraversalPolicySet, layout, list, list, locate, minimumSize, paintComponents, preferredSize, print, printComponents, remove, removeAll, removeContainerListener, setComponentZOrder, setFocusTraversalKeys, setFocusTraversalPolicy, setFocusTraversalPolicyProvider, setFont, transferFocusDownCycle, validateaction, add, addComponentListener, addFocusListener, addHierarchyBoundsListener, addHierarchyListener, addInputMethodListener, addKeyListener, addMouseListener, addMouseMotionListener, addMouseWheelListener, bounds, checkImage, checkImage, contains, contains, createImage, createImage, createVolatileImage, createVolatileImage, disable, dispatchEvent, enable, enable, enableInputMethods, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, getBaseline, getBaselineResizeBehavior, getBounds, getBounds, getColorModel, getComponentListeners, getComponentOrientation, getCursor, getDropTarget, getFocusListeners, getFocusTraversalKeysEnabled, getFont, getFontMetrics, getForeground, getGraphicsConfiguration, getHeight, getHierarchyBoundsListeners, getHierarchyListeners, getIgnoreRepaint, getInputMethodListeners, getInputMethodRequests, getKeyListeners, getLocation, getLocation, getLocationOnScreen, getMouseListeners, getMouseMotionListeners, getMousePosition, getMouseWheelListeners, getName, getParent, getPeer, getPropertyChangeListeners, getPropertyChangeListeners, getSize, getSize, getTreeLock, getWidth, getX, getY, gotFocus, handleEvent, hasFocus, imageUpdate, inside, isBackgroundSet, isCursorSet, isDisplayable, isDoubleBuffered, isEnabled, isFocusable, isFocusOwner, isFocusTraversable, isFontSet, isForegroundSet, isLightweight, isMaximumSizeSet, isMinimumSizeSet, isPreferredSizeSet, isValid, isVisible, keyDown, keyUp, list, list, list, location, lostFocus, mouseDown, mouseDrag, mouseEnter, mouseExit, mouseMove, mouseUp, move, nextFocus, paintAll, prepareImage, prepareImage, printAll, removeComponentListener, removeFocusListener, removeHierarchyBoundsListener, removeHierarchyListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removeMouseWheelListener, removePropertyChangeListener, removePropertyChangeListener, repaint, repaint, repaint, requestFocus, requestFocusInWindow, resize, resize, revalidate, setComponentOrientation, setDropTarget, setEnabled, setFocusable, setFocusTraversalKeysEnabled, setForeground, setIgnoreRepaint, setLocale, setMaximumSize, setName, setPreferredSize, show, size, toString, transferFocus, transferFocusBackward, transferFocusUpCycleequals, getClass, hashCode, notify, notifyAll, wait, wait, waitgetFont, postEventpublic class FrameModificar
+extends javax.swing.JFrame
+java.awt.Window.Typejava.awt.Component.BaselineResizeBehaviorEXIT_ON_CLOSECROSSHAIR_CURSOR, DEFAULT_CURSOR, E_RESIZE_CURSOR, HAND_CURSOR, ICONIFIED, MAXIMIZED_BOTH, MAXIMIZED_HORIZ, MAXIMIZED_VERT, MOVE_CURSOR, N_RESIZE_CURSOR, NE_RESIZE_CURSOR, NORMAL, NW_RESIZE_CURSOR, S_RESIZE_CURSOR, SE_RESIZE_CURSOR, SW_RESIZE_CURSOR, TEXT_CURSOR, W_RESIZE_CURSOR, WAIT_CURSORBOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENTDISPOSE_ON_CLOSE, DO_NOTHING_ON_CLOSE, HIDE_ON_CLOSEABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH| Constructor and Description | +
|---|
FrameModificar()
+Constructor que inicia la ventana
+ |
+
getAccessibleContext, getContentPane, getDefaultCloseOperation, getGlassPane, getGraphics, getJMenuBar, getLayeredPane, getRootPane, getTransferHandler, isDefaultLookAndFeelDecorated, remove, repaint, setContentPane, setDefaultCloseOperation, setDefaultLookAndFeelDecorated, setGlassPane, setIconImage, setJMenuBar, setLayeredPane, setLayout, setTransferHandler, updateaddNotify, getCursorType, getExtendedState, getFrames, getIconImage, getMaximizedBounds, getMenuBar, getState, getTitle, isResizable, isUndecorated, remove, removeNotify, setBackground, setCursor, setExtendedState, setMaximizedBounds, setMenuBar, setOpacity, setResizable, setShape, setState, setTitle, setUndecoratedaddPropertyChangeListener, addPropertyChangeListener, addWindowFocusListener, addWindowListener, addWindowStateListener, applyResourceBundle, applyResourceBundle, createBufferStrategy, createBufferStrategy, dispose, getBackground, getBufferStrategy, getFocusableWindowState, getFocusCycleRootAncestor, getFocusOwner, getFocusTraversalKeys, getIconImages, getInputContext, getListeners, getLocale, getModalExclusionType, getMostRecentFocusOwner, getOpacity, getOwnedWindows, getOwner, getOwnerlessWindows, getShape, getToolkit, getType, getWarningString, getWindowFocusListeners, getWindowListeners, getWindows, getWindowStateListeners, hide, isActive, isAlwaysOnTop, isAlwaysOnTopSupported, isAutoRequestFocus, isFocusableWindow, isFocusCycleRoot, isFocused, isLocationByPlatform, isOpaque, isShowing, isValidateRoot, pack, paint, postEvent, removeWindowFocusListener, removeWindowListener, removeWindowStateListener, reshape, setAlwaysOnTop, setAutoRequestFocus, setBounds, setBounds, setCursor, setFocusableWindowState, setFocusCycleRoot, setIconImages, setLocation, setLocation, setLocationByPlatform, setLocationRelativeTo, setMinimumSize, setModalExclusionType, setSize, setSize, setType, setVisible, show, toBack, toFrontadd, add, add, add, add, addContainerListener, applyComponentOrientation, areFocusTraversalKeysSet, countComponents, deliverEvent, doLayout, findComponentAt, findComponentAt, getAlignmentX, getAlignmentY, getComponent, getComponentAt, getComponentAt, getComponentCount, getComponents, getComponentZOrder, getContainerListeners, getFocusTraversalPolicy, getInsets, getLayout, getMaximumSize, getMinimumSize, getMousePosition, getPreferredSize, insets, invalidate, isAncestorOf, isFocusCycleRoot, isFocusTraversalPolicyProvider, isFocusTraversalPolicySet, layout, list, list, locate, minimumSize, paintComponents, preferredSize, print, printComponents, remove, removeAll, removeContainerListener, setComponentZOrder, setFocusTraversalKeys, setFocusTraversalPolicy, setFocusTraversalPolicyProvider, setFont, transferFocusDownCycle, validateaction, add, addComponentListener, addFocusListener, addHierarchyBoundsListener, addHierarchyListener, addInputMethodListener, addKeyListener, addMouseListener, addMouseMotionListener, addMouseWheelListener, bounds, checkImage, checkImage, contains, contains, createImage, createImage, createVolatileImage, createVolatileImage, disable, dispatchEvent, enable, enable, enableInputMethods, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, getBaseline, getBaselineResizeBehavior, getBounds, getBounds, getColorModel, getComponentListeners, getComponentOrientation, getCursor, getDropTarget, getFocusListeners, getFocusTraversalKeysEnabled, getFont, getFontMetrics, getForeground, getGraphicsConfiguration, getHeight, getHierarchyBoundsListeners, getHierarchyListeners, getIgnoreRepaint, getInputMethodListeners, getInputMethodRequests, getKeyListeners, getLocation, getLocation, getLocationOnScreen, getMouseListeners, getMouseMotionListeners, getMousePosition, getMouseWheelListeners, getName, getParent, getPeer, getPropertyChangeListeners, getPropertyChangeListeners, getSize, getSize, getTreeLock, getWidth, getX, getY, gotFocus, handleEvent, hasFocus, imageUpdate, inside, isBackgroundSet, isCursorSet, isDisplayable, isDoubleBuffered, isEnabled, isFocusable, isFocusOwner, isFocusTraversable, isFontSet, isForegroundSet, isLightweight, isMaximumSizeSet, isMinimumSizeSet, isPreferredSizeSet, isValid, isVisible, keyDown, keyUp, list, list, list, location, lostFocus, mouseDown, mouseDrag, mouseEnter, mouseExit, mouseMove, mouseUp, move, nextFocus, paintAll, prepareImage, prepareImage, printAll, removeComponentListener, removeFocusListener, removeHierarchyBoundsListener, removeHierarchyListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removeMouseWheelListener, removePropertyChangeListener, removePropertyChangeListener, repaint, repaint, repaint, requestFocus, requestFocusInWindow, resize, resize, revalidate, setComponentOrientation, setDropTarget, setEnabled, setFocusable, setFocusTraversalKeysEnabled, setForeground, setIgnoreRepaint, setLocale, setMaximumSize, setName, setPreferredSize, show, size, toString, transferFocus, transferFocusBackward, transferFocusUpCycleequals, getClass, hashCode, notify, notifyAll, wait, wait, waitgetFont, postEventpublic class FramePrincipal
+extends javax.swing.JFrame
+java.awt.Window.Typejava.awt.Component.BaselineResizeBehaviorEXIT_ON_CLOSECROSSHAIR_CURSOR, DEFAULT_CURSOR, E_RESIZE_CURSOR, HAND_CURSOR, ICONIFIED, MAXIMIZED_BOTH, MAXIMIZED_HORIZ, MAXIMIZED_VERT, MOVE_CURSOR, N_RESIZE_CURSOR, NE_RESIZE_CURSOR, NORMAL, NW_RESIZE_CURSOR, S_RESIZE_CURSOR, SE_RESIZE_CURSOR, SW_RESIZE_CURSOR, TEXT_CURSOR, W_RESIZE_CURSOR, WAIT_CURSORBOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENTDISPOSE_ON_CLOSE, DO_NOTHING_ON_CLOSE, HIDE_ON_CLOSEABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH| Constructor and Description | +
|---|
FramePrincipal(java.lang.String usuario)
+Inicia la ventana de usuario
+ |
+
| Modifier and Type | +Method and Description | +
|---|---|
void |
+toCartola()
+Muestra el panel Cartola
+ |
+
void |
+toResumen()
+Muestra el panel Resumen
+ |
+
getAccessibleContext, getContentPane, getDefaultCloseOperation, getGlassPane, getGraphics, getJMenuBar, getLayeredPane, getRootPane, getTransferHandler, isDefaultLookAndFeelDecorated, remove, repaint, setContentPane, setDefaultCloseOperation, setDefaultLookAndFeelDecorated, setGlassPane, setIconImage, setJMenuBar, setLayeredPane, setLayout, setTransferHandler, updateaddNotify, getCursorType, getExtendedState, getFrames, getIconImage, getMaximizedBounds, getMenuBar, getState, getTitle, isResizable, isUndecorated, remove, removeNotify, setBackground, setCursor, setExtendedState, setMaximizedBounds, setMenuBar, setOpacity, setResizable, setShape, setState, setTitle, setUndecoratedaddPropertyChangeListener, addPropertyChangeListener, addWindowFocusListener, addWindowListener, addWindowStateListener, applyResourceBundle, applyResourceBundle, createBufferStrategy, createBufferStrategy, dispose, getBackground, getBufferStrategy, getFocusableWindowState, getFocusCycleRootAncestor, getFocusOwner, getFocusTraversalKeys, getIconImages, getInputContext, getListeners, getLocale, getModalExclusionType, getMostRecentFocusOwner, getOpacity, getOwnedWindows, getOwner, getOwnerlessWindows, getShape, getToolkit, getType, getWarningString, getWindowFocusListeners, getWindowListeners, getWindows, getWindowStateListeners, hide, isActive, isAlwaysOnTop, isAlwaysOnTopSupported, isAutoRequestFocus, isFocusableWindow, isFocusCycleRoot, isFocused, isLocationByPlatform, isOpaque, isShowing, isValidateRoot, pack, paint, postEvent, removeWindowFocusListener, removeWindowListener, removeWindowStateListener, reshape, setAlwaysOnTop, setAutoRequestFocus, setBounds, setBounds, setCursor, setFocusableWindowState, setFocusCycleRoot, setIconImages, setLocation, setLocation, setLocationByPlatform, setLocationRelativeTo, setMinimumSize, setModalExclusionType, setSize, setSize, setType, setVisible, show, toBack, toFrontadd, add, add, add, add, addContainerListener, applyComponentOrientation, areFocusTraversalKeysSet, countComponents, deliverEvent, doLayout, findComponentAt, findComponentAt, getAlignmentX, getAlignmentY, getComponent, getComponentAt, getComponentAt, getComponentCount, getComponents, getComponentZOrder, getContainerListeners, getFocusTraversalPolicy, getInsets, getLayout, getMaximumSize, getMinimumSize, getMousePosition, getPreferredSize, insets, invalidate, isAncestorOf, isFocusCycleRoot, isFocusTraversalPolicyProvider, isFocusTraversalPolicySet, layout, list, list, locate, minimumSize, paintComponents, preferredSize, print, printComponents, remove, removeAll, removeContainerListener, setComponentZOrder, setFocusTraversalKeys, setFocusTraversalPolicy, setFocusTraversalPolicyProvider, setFont, transferFocusDownCycle, validateaction, add, addComponentListener, addFocusListener, addHierarchyBoundsListener, addHierarchyListener, addInputMethodListener, addKeyListener, addMouseListener, addMouseMotionListener, addMouseWheelListener, bounds, checkImage, checkImage, contains, contains, createImage, createImage, createVolatileImage, createVolatileImage, disable, dispatchEvent, enable, enable, enableInputMethods, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, getBaseline, getBaselineResizeBehavior, getBounds, getBounds, getColorModel, getComponentListeners, getComponentOrientation, getCursor, getDropTarget, getFocusListeners, getFocusTraversalKeysEnabled, getFont, getFontMetrics, getForeground, getGraphicsConfiguration, getHeight, getHierarchyBoundsListeners, getHierarchyListeners, getIgnoreRepaint, getInputMethodListeners, getInputMethodRequests, getKeyListeners, getLocation, getLocation, getLocationOnScreen, getMouseListeners, getMouseMotionListeners, getMousePosition, getMouseWheelListeners, getName, getParent, getPeer, getPropertyChangeListeners, getPropertyChangeListeners, getSize, getSize, getTreeLock, getWidth, getX, getY, gotFocus, handleEvent, hasFocus, imageUpdate, inside, isBackgroundSet, isCursorSet, isDisplayable, isDoubleBuffered, isEnabled, isFocusable, isFocusOwner, isFocusTraversable, isFontSet, isForegroundSet, isLightweight, isMaximumSizeSet, isMinimumSizeSet, isPreferredSizeSet, isValid, isVisible, keyDown, keyUp, list, list, list, location, lostFocus, mouseDown, mouseDrag, mouseEnter, mouseExit, mouseMove, mouseUp, move, nextFocus, paintAll, prepareImage, prepareImage, printAll, removeComponentListener, removeFocusListener, removeHierarchyBoundsListener, removeHierarchyListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removeMouseWheelListener, removePropertyChangeListener, removePropertyChangeListener, repaint, repaint, repaint, requestFocus, requestFocusInWindow, resize, resize, revalidate, setComponentOrientation, setDropTarget, setEnabled, setFocusable, setFocusTraversalKeysEnabled, setForeground, setIgnoreRepaint, setLocale, setMaximumSize, setName, setPreferredSize, show, size, toString, transferFocus, transferFocusBackward, transferFocusUpCycleequals, getClass, hashCode, notify, notifyAll, wait, wait, waitgetFont, postEventpublic class FrameRegistro
+extends javax.swing.JFrame
+java.awt.Window.Typejava.awt.Component.BaselineResizeBehaviorEXIT_ON_CLOSECROSSHAIR_CURSOR, DEFAULT_CURSOR, E_RESIZE_CURSOR, HAND_CURSOR, ICONIFIED, MAXIMIZED_BOTH, MAXIMIZED_HORIZ, MAXIMIZED_VERT, MOVE_CURSOR, N_RESIZE_CURSOR, NE_RESIZE_CURSOR, NORMAL, NW_RESIZE_CURSOR, S_RESIZE_CURSOR, SE_RESIZE_CURSOR, SW_RESIZE_CURSOR, TEXT_CURSOR, W_RESIZE_CURSOR, WAIT_CURSORBOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENTDISPOSE_ON_CLOSE, DO_NOTHING_ON_CLOSE, HIDE_ON_CLOSEABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH| Constructor and Description | +
|---|
FrameRegistro()
+Constructor que inicia la ventana
+ |
+
getAccessibleContext, getContentPane, getDefaultCloseOperation, getGlassPane, getGraphics, getJMenuBar, getLayeredPane, getRootPane, getTransferHandler, isDefaultLookAndFeelDecorated, remove, repaint, setContentPane, setDefaultCloseOperation, setDefaultLookAndFeelDecorated, setGlassPane, setIconImage, setJMenuBar, setLayeredPane, setLayout, setTransferHandler, updateaddNotify, getCursorType, getExtendedState, getFrames, getIconImage, getMaximizedBounds, getMenuBar, getState, getTitle, isResizable, isUndecorated, remove, removeNotify, setBackground, setCursor, setExtendedState, setMaximizedBounds, setMenuBar, setOpacity, setResizable, setShape, setState, setTitle, setUndecoratedaddPropertyChangeListener, addPropertyChangeListener, addWindowFocusListener, addWindowListener, addWindowStateListener, applyResourceBundle, applyResourceBundle, createBufferStrategy, createBufferStrategy, dispose, getBackground, getBufferStrategy, getFocusableWindowState, getFocusCycleRootAncestor, getFocusOwner, getFocusTraversalKeys, getIconImages, getInputContext, getListeners, getLocale, getModalExclusionType, getMostRecentFocusOwner, getOpacity, getOwnedWindows, getOwner, getOwnerlessWindows, getShape, getToolkit, getType, getWarningString, getWindowFocusListeners, getWindowListeners, getWindows, getWindowStateListeners, hide, isActive, isAlwaysOnTop, isAlwaysOnTopSupported, isAutoRequestFocus, isFocusableWindow, isFocusCycleRoot, isFocused, isLocationByPlatform, isOpaque, isShowing, isValidateRoot, pack, paint, postEvent, removeWindowFocusListener, removeWindowListener, removeWindowStateListener, reshape, setAlwaysOnTop, setAutoRequestFocus, setBounds, setBounds, setCursor, setFocusableWindowState, setFocusCycleRoot, setIconImages, setLocation, setLocation, setLocationByPlatform, setLocationRelativeTo, setMinimumSize, setModalExclusionType, setSize, setSize, setType, setVisible, show, toBack, toFrontadd, add, add, add, add, addContainerListener, applyComponentOrientation, areFocusTraversalKeysSet, countComponents, deliverEvent, doLayout, findComponentAt, findComponentAt, getAlignmentX, getAlignmentY, getComponent, getComponentAt, getComponentAt, getComponentCount, getComponents, getComponentZOrder, getContainerListeners, getFocusTraversalPolicy, getInsets, getLayout, getMaximumSize, getMinimumSize, getMousePosition, getPreferredSize, insets, invalidate, isAncestorOf, isFocusCycleRoot, isFocusTraversalPolicyProvider, isFocusTraversalPolicySet, layout, list, list, locate, minimumSize, paintComponents, preferredSize, print, printComponents, remove, removeAll, removeContainerListener, setComponentZOrder, setFocusTraversalKeys, setFocusTraversalPolicy, setFocusTraversalPolicyProvider, setFont, transferFocusDownCycle, validateaction, add, addComponentListener, addFocusListener, addHierarchyBoundsListener, addHierarchyListener, addInputMethodListener, addKeyListener, addMouseListener, addMouseMotionListener, addMouseWheelListener, bounds, checkImage, checkImage, contains, contains, createImage, createImage, createVolatileImage, createVolatileImage, disable, dispatchEvent, enable, enable, enableInputMethods, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, getBaseline, getBaselineResizeBehavior, getBounds, getBounds, getColorModel, getComponentListeners, getComponentOrientation, getCursor, getDropTarget, getFocusListeners, getFocusTraversalKeysEnabled, getFont, getFontMetrics, getForeground, getGraphicsConfiguration, getHeight, getHierarchyBoundsListeners, getHierarchyListeners, getIgnoreRepaint, getInputMethodListeners, getInputMethodRequests, getKeyListeners, getLocation, getLocation, getLocationOnScreen, getMouseListeners, getMouseMotionListeners, getMousePosition, getMouseWheelListeners, getName, getParent, getPeer, getPropertyChangeListeners, getPropertyChangeListeners, getSize, getSize, getTreeLock, getWidth, getX, getY, gotFocus, handleEvent, hasFocus, imageUpdate, inside, isBackgroundSet, isCursorSet, isDisplayable, isDoubleBuffered, isEnabled, isFocusable, isFocusOwner, isFocusTraversable, isFontSet, isForegroundSet, isLightweight, isMaximumSizeSet, isMinimumSizeSet, isPreferredSizeSet, isValid, isVisible, keyDown, keyUp, list, list, list, location, lostFocus, mouseDown, mouseDrag, mouseEnter, mouseExit, mouseMove, mouseUp, move, nextFocus, paintAll, prepareImage, prepareImage, printAll, removeComponentListener, removeFocusListener, removeHierarchyBoundsListener, removeHierarchyListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removeMouseWheelListener, removePropertyChangeListener, removePropertyChangeListener, repaint, repaint, repaint, requestFocus, requestFocusInWindow, resize, resize, revalidate, setComponentOrientation, setDropTarget, setEnabled, setFocusable, setFocusTraversalKeysEnabled, setForeground, setIgnoreRepaint, setLocale, setMaximumSize, setName, setPreferredSize, show, size, toString, transferFocus, transferFocusBackward, transferFocusUpCycleequals, getClass, hashCode, notify, notifyAll, wait, wait, waitgetFont, postEvent| Class | +Description | +
|---|---|
| FrameAdministrador | +
+ Ventana del modo administrador la cual permite la modificacion y creacion de
+ usuarios por parte de un administrador con la clave
+ |
+
| FrameCrear | +
+ Ventana destinada a la creacion de usuarios por parte de un administrador
+ |
+
| FrameLogin | +
+ Ventana destinada a el logeo de un usuario en el sistema.
+ |
+
| FrameModificar | +
+ Ventana destinada a la modificacion de usuarios
+ |
+
| FramePrincipal | +
+ Frame que contiene los Paneles cartola, resumen y superior
+ |
+
| FrameRegistro | +
+ Ventana en la cual se realiza el registro de usuarios.
+ |
+
public class JTableTable
+extends javax.swing.JTable
+javax.swing.JTable.DropLocation, javax.swing.JTable.PrintModejavax.swing.JComponent.AccessibleJComponentjava.awt.Component.BaselineResizeBehaviorAUTO_RESIZE_ALL_COLUMNS, AUTO_RESIZE_LAST_COLUMN, AUTO_RESIZE_NEXT_COLUMN, AUTO_RESIZE_OFF, AUTO_RESIZE_SUBSEQUENT_COLUMNSTOOL_TIP_TEXT_KEY, UNDEFINED_CONDITION, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_FOCUSED, WHEN_IN_FOCUSED_WINDOWBOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENTABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH| Constructor and Description | +
|---|
JTableTable(java.lang.String usuario)
+Constructor que inicia la tabla, asigandole el usuario del cual se obtienen sus datos
+ |
+
| Modifier and Type | +Method and Description | +
|---|---|
void |
+actTabla()
+Llena con datos la tabla, los cuales son otorgados por la clase ControlPrincipal
+ |
+
addColumn, addColumnSelectionInterval, addNotify, addRowSelectionInterval, changeSelection, clearSelection, columnAdded, columnAtPoint, columnMarginChanged, columnMoved, columnRemoved, columnSelectionChanged, convertColumnIndexToModel, convertColumnIndexToView, convertRowIndexToModel, convertRowIndexToView, createDefaultColumnsFromModel, createScrollPaneForTable, doLayout, editCellAt, editCellAt, editingCanceled, editingStopped, getAccessibleContext, getAutoCreateColumnsFromModel, getAutoCreateRowSorter, getAutoResizeMode, getCellEditor, getCellEditor, getCellRect, getCellRenderer, getCellSelectionEnabled, getColumn, getColumnClass, getColumnCount, getColumnModel, getColumnName, getColumnSelectionAllowed, getDefaultEditor, getDefaultRenderer, getDragEnabled, getDropLocation, getDropMode, getEditingColumn, getEditingRow, getEditorComponent, getFillsViewportHeight, getGridColor, getIntercellSpacing, getModel, getPreferredScrollableViewportSize, getPrintable, getRowCount, getRowHeight, getRowHeight, getRowMargin, getRowSelectionAllowed, getRowSorter, getScrollableBlockIncrement, getScrollableTracksViewportHeight, getScrollableTracksViewportWidth, getScrollableUnitIncrement, getSelectedColumn, getSelectedColumnCount, getSelectedColumns, getSelectedRow, getSelectedRowCount, getSelectedRows, getSelectionBackground, getSelectionForeground, getSelectionModel, getShowHorizontalLines, getShowVerticalLines, getSurrendersFocusOnKeystroke, getTableHeader, getToolTipText, getUI, getUIClassID, getUpdateSelectionOnSort, getValueAt, isCellEditable, isCellSelected, isColumnSelected, isEditing, isRowSelected, moveColumn, prepareEditor, prepareRenderer, print, print, print, print, print, removeColumn, removeColumnSelectionInterval, removeEditor, removeNotify, removeRowSelectionInterval, rowAtPoint, selectAll, setAutoCreateColumnsFromModel, setAutoCreateRowSorter, setAutoResizeMode, setCellEditor, setCellSelectionEnabled, setColumnModel, setColumnSelectionAllowed, setColumnSelectionInterval, setDefaultEditor, setDefaultRenderer, setDragEnabled, setDropMode, setEditingColumn, setEditingRow, setFillsViewportHeight, setGridColor, setIntercellSpacing, setModel, setPreferredScrollableViewportSize, setRowHeight, setRowHeight, setRowMargin, setRowSelectionAllowed, setRowSelectionInterval, setRowSorter, setSelectionBackground, setSelectionForeground, setSelectionMode, setSelectionModel, setShowGrid, setShowHorizontalLines, setShowVerticalLines, setSurrendersFocusOnKeystroke, setTableHeader, setUI, setUpdateSelectionOnSort, setValueAt, sizeColumnsToFit, sizeColumnsToFit, sorterChanged, tableChanged, updateUI, valueChangedaddAncestorListener, addVetoableChangeListener, computeVisibleRect, contains, createToolTip, disable, enable, firePropertyChange, firePropertyChange, firePropertyChange, getActionForKeyStroke, getActionMap, getAlignmentX, getAlignmentY, getAncestorListeners, getAutoscrolls, getBaseline, getBaselineResizeBehavior, getBorder, getBounds, getClientProperty, getComponentPopupMenu, getConditionForKeyStroke, getDebugGraphicsOptions, getDefaultLocale, getFontMetrics, getGraphics, getHeight, getInheritsPopupMenu, getInputMap, getInputMap, getInputVerifier, getInsets, getInsets, getListeners, getLocation, getMaximumSize, getMinimumSize, getNextFocusableComponent, getPopupLocation, getPreferredSize, getRegisteredKeyStrokes, getRootPane, getSize, getToolTipLocation, getToolTipText, getTopLevelAncestor, getTransferHandler, getVerifyInputWhenFocusTarget, getVetoableChangeListeners, getVisibleRect, getWidth, getX, getY, grabFocus, hide, isDoubleBuffered, isLightweightComponent, isManagingFocus, isOpaque, isOptimizedDrawingEnabled, isPaintingForPrint, isPaintingTile, isRequestFocusEnabled, isValidateRoot, paint, paintImmediately, paintImmediately, print, printAll, putClientProperty, registerKeyboardAction, registerKeyboardAction, removeAncestorListener, removeVetoableChangeListener, repaint, repaint, requestDefaultFocus, requestFocus, requestFocus, requestFocusInWindow, resetKeyboardActions, reshape, revalidate, scrollRectToVisible, setActionMap, setAlignmentX, setAlignmentY, setAutoscrolls, setBackground, setBorder, setComponentPopupMenu, setDebugGraphicsOptions, setDefaultLocale, setDoubleBuffered, setEnabled, setFocusTraversalKeys, setFont, setForeground, setInheritsPopupMenu, setInputMap, setInputVerifier, setMaximumSize, setMinimumSize, setNextFocusableComponent, setOpaque, setPreferredSize, setRequestFocusEnabled, setToolTipText, setTransferHandler, setVerifyInputWhenFocusTarget, setVisible, unregisterKeyboardAction, updateadd, add, add, add, add, addContainerListener, addPropertyChangeListener, addPropertyChangeListener, applyComponentOrientation, areFocusTraversalKeysSet, countComponents, deliverEvent, findComponentAt, findComponentAt, getComponent, getComponentAt, getComponentAt, getComponentCount, getComponents, getComponentZOrder, getContainerListeners, getFocusTraversalKeys, getFocusTraversalPolicy, getLayout, getMousePosition, insets, invalidate, isAncestorOf, isFocusCycleRoot, isFocusCycleRoot, isFocusTraversalPolicyProvider, isFocusTraversalPolicySet, layout, list, list, locate, minimumSize, paintComponents, preferredSize, printComponents, remove, remove, removeAll, removeContainerListener, setComponentZOrder, setFocusCycleRoot, setFocusTraversalPolicy, setFocusTraversalPolicyProvider, setLayout, transferFocusDownCycle, validateaction, add, addComponentListener, addFocusListener, addHierarchyBoundsListener, addHierarchyListener, addInputMethodListener, addKeyListener, addMouseListener, addMouseMotionListener, addMouseWheelListener, bounds, checkImage, checkImage, contains, createImage, createImage, createVolatileImage, createVolatileImage, dispatchEvent, enable, enableInputMethods, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, getBackground, getBounds, getColorModel, getComponentListeners, getComponentOrientation, getCursor, getDropTarget, getFocusCycleRootAncestor, getFocusListeners, getFocusTraversalKeysEnabled, getFont, getForeground, getGraphicsConfiguration, getHierarchyBoundsListeners, getHierarchyListeners, getIgnoreRepaint, getInputContext, getInputMethodListeners, getInputMethodRequests, getKeyListeners, getLocale, getLocation, getLocationOnScreen, getMouseListeners, getMouseMotionListeners, getMousePosition, getMouseWheelListeners, getName, getParent, getPeer, getPropertyChangeListeners, getPropertyChangeListeners, getSize, getToolkit, getTreeLock, gotFocus, handleEvent, hasFocus, imageUpdate, inside, isBackgroundSet, isCursorSet, isDisplayable, isEnabled, isFocusable, isFocusOwner, isFocusTraversable, isFontSet, isForegroundSet, isLightweight, isMaximumSizeSet, isMinimumSizeSet, isPreferredSizeSet, isShowing, isValid, isVisible, keyDown, keyUp, list, list, list, location, lostFocus, mouseDown, mouseDrag, mouseEnter, mouseExit, mouseMove, mouseUp, move, nextFocus, paintAll, postEvent, prepareImage, prepareImage, remove, removeComponentListener, removeFocusListener, removeHierarchyBoundsListener, removeHierarchyListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removeMouseWheelListener, removePropertyChangeListener, removePropertyChangeListener, repaint, repaint, repaint, resize, resize, setBounds, setBounds, setComponentOrientation, setCursor, setDropTarget, setFocusable, setFocusTraversalKeysEnabled, setIgnoreRepaint, setLocale, setLocation, setLocation, setName, setSize, setSize, show, show, size, toString, transferFocus, transferFocusBackward, transferFocusUpCycleequals, getClass, hashCode, notify, notifyAll, wait, wait, wait| Package | +Description | +
|---|---|
| visual.panel | ++ |
| Modifier and Type | +Method and Description | +
|---|---|
JTableTable |
+PanelCartola.getTabla()
+Getter que entrega la tabla de la cartola
+ |
+
| Class | +Description | +
|---|---|
| JTableTable | +
+ Tabla la cual es usada en el panelCartola.
+ |
+
| Package | +Description | +
|---|---|
| visual.panel | ++ |
| Class and Description | +
|---|
| JTableTable
+ Tabla la cual es usada en el panelCartola.
+ |
+
public class PanelCartola
+extends javax.swing.JPanel
+javax.swing.JComponent.AccessibleJComponentjava.awt.Component.BaselineResizeBehaviorTOOL_TIP_TEXT_KEY, UNDEFINED_CONDITION, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_FOCUSED, WHEN_IN_FOCUSED_WINDOWBOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENTABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH| Constructor and Description | +
|---|
PanelCartola(java.lang.String usuario)
+Inicia el panel, asignandose un usuario al panel para ser utilizado mas
+ tarde para obtener los datos del archivo correspondiente
+ |
+
| Modifier and Type | +Method and Description | +
|---|---|
JTableTable |
+getTabla()
+Getter que entrega la tabla de la cartola
+ |
+
getAccessibleContext, getUI, getUIClassID, setUI, updateUIaddAncestorListener, addNotify, addVetoableChangeListener, computeVisibleRect, contains, createToolTip, disable, enable, firePropertyChange, firePropertyChange, firePropertyChange, getActionForKeyStroke, getActionMap, getAlignmentX, getAlignmentY, getAncestorListeners, getAutoscrolls, getBaseline, getBaselineResizeBehavior, getBorder, getBounds, getClientProperty, getComponentPopupMenu, getConditionForKeyStroke, getDebugGraphicsOptions, getDefaultLocale, getFontMetrics, getGraphics, getHeight, getInheritsPopupMenu, getInputMap, getInputMap, getInputVerifier, getInsets, getInsets, getListeners, getLocation, getMaximumSize, getMinimumSize, getNextFocusableComponent, getPopupLocation, getPreferredSize, getRegisteredKeyStrokes, getRootPane, getSize, getToolTipLocation, getToolTipText, getToolTipText, getTopLevelAncestor, getTransferHandler, getVerifyInputWhenFocusTarget, getVetoableChangeListeners, getVisibleRect, getWidth, getX, getY, grabFocus, hide, isDoubleBuffered, isLightweightComponent, isManagingFocus, isOpaque, isOptimizedDrawingEnabled, isPaintingForPrint, isPaintingTile, isRequestFocusEnabled, isValidateRoot, paint, paintImmediately, paintImmediately, print, printAll, putClientProperty, registerKeyboardAction, registerKeyboardAction, removeAncestorListener, removeNotify, removeVetoableChangeListener, repaint, repaint, requestDefaultFocus, requestFocus, requestFocus, requestFocusInWindow, resetKeyboardActions, reshape, revalidate, scrollRectToVisible, setActionMap, setAlignmentX, setAlignmentY, setAutoscrolls, setBackground, setBorder, setComponentPopupMenu, setDebugGraphicsOptions, setDefaultLocale, setDoubleBuffered, setEnabled, setFocusTraversalKeys, setFont, setForeground, setInheritsPopupMenu, setInputMap, setInputVerifier, setMaximumSize, setMinimumSize, setNextFocusableComponent, setOpaque, setPreferredSize, setRequestFocusEnabled, setToolTipText, setTransferHandler, setVerifyInputWhenFocusTarget, setVisible, unregisterKeyboardAction, updateadd, add, add, add, add, addContainerListener, addPropertyChangeListener, addPropertyChangeListener, applyComponentOrientation, areFocusTraversalKeysSet, countComponents, deliverEvent, doLayout, findComponentAt, findComponentAt, getComponent, getComponentAt, getComponentAt, getComponentCount, getComponents, getComponentZOrder, getContainerListeners, getFocusTraversalKeys, getFocusTraversalPolicy, getLayout, getMousePosition, insets, invalidate, isAncestorOf, isFocusCycleRoot, isFocusCycleRoot, isFocusTraversalPolicyProvider, isFocusTraversalPolicySet, layout, list, list, locate, minimumSize, paintComponents, preferredSize, printComponents, remove, remove, removeAll, removeContainerListener, setComponentZOrder, setFocusCycleRoot, setFocusTraversalPolicy, setFocusTraversalPolicyProvider, setLayout, transferFocusDownCycle, validateaction, add, addComponentListener, addFocusListener, addHierarchyBoundsListener, addHierarchyListener, addInputMethodListener, addKeyListener, addMouseListener, addMouseMotionListener, addMouseWheelListener, bounds, checkImage, checkImage, contains, createImage, createImage, createVolatileImage, createVolatileImage, dispatchEvent, enable, enableInputMethods, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, getBackground, getBounds, getColorModel, getComponentListeners, getComponentOrientation, getCursor, getDropTarget, getFocusCycleRootAncestor, getFocusListeners, getFocusTraversalKeysEnabled, getFont, getForeground, getGraphicsConfiguration, getHierarchyBoundsListeners, getHierarchyListeners, getIgnoreRepaint, getInputContext, getInputMethodListeners, getInputMethodRequests, getKeyListeners, getLocale, getLocation, getLocationOnScreen, getMouseListeners, getMouseMotionListeners, getMousePosition, getMouseWheelListeners, getName, getParent, getPeer, getPropertyChangeListeners, getPropertyChangeListeners, getSize, getToolkit, getTreeLock, gotFocus, handleEvent, hasFocus, imageUpdate, inside, isBackgroundSet, isCursorSet, isDisplayable, isEnabled, isFocusable, isFocusOwner, isFocusTraversable, isFontSet, isForegroundSet, isLightweight, isMaximumSizeSet, isMinimumSizeSet, isPreferredSizeSet, isShowing, isValid, isVisible, keyDown, keyUp, list, list, list, location, lostFocus, mouseDown, mouseDrag, mouseEnter, mouseExit, mouseMove, mouseUp, move, nextFocus, paintAll, postEvent, prepareImage, prepareImage, remove, removeComponentListener, removeFocusListener, removeHierarchyBoundsListener, removeHierarchyListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removeMouseWheelListener, removePropertyChangeListener, removePropertyChangeListener, repaint, repaint, repaint, resize, resize, setBounds, setBounds, setComponentOrientation, setCursor, setDropTarget, setFocusable, setFocusTraversalKeysEnabled, setIgnoreRepaint, setLocale, setLocation, setLocation, setName, setSize, setSize, show, show, size, toString, transferFocus, transferFocusBackward, transferFocusUpCycleequals, getClass, hashCode, notify, notifyAll, wait, wait, waitpublic PanelCartola(java.lang.String usuario)+
usuario - Usuario del cual se obtienen los datos.public JTableTable getTabla()+
public class PanelResumen
+extends javax.swing.JPanel
+javax.swing.JComponent.AccessibleJComponentjava.awt.Component.BaselineResizeBehaviorTOOL_TIP_TEXT_KEY, UNDEFINED_CONDITION, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_FOCUSED, WHEN_IN_FOCUSED_WINDOWBOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENTABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH| Constructor and Description | +
|---|
PanelResumen(java.lang.String usuario)
+Inicia el panelResumen y le asigna el usuario de quien sacara los datos.
+ |
+
| Modifier and Type | +Method and Description | +
|---|---|
void |
+iniciarTextFieldYLabel()
+Inicia los TextFields y Labels en el panel asignandole todos los datos
+ esperables para mas tarde poder asignarle sus datos.
+ |
+
void |
+llenarResumen()
+Llena el de datos los componentes del panelResumen
+ |
+
getAccessibleContext, getUI, getUIClassID, setUI, updateUIaddAncestorListener, addNotify, addVetoableChangeListener, computeVisibleRect, contains, createToolTip, disable, enable, firePropertyChange, firePropertyChange, firePropertyChange, getActionForKeyStroke, getActionMap, getAlignmentX, getAlignmentY, getAncestorListeners, getAutoscrolls, getBaseline, getBaselineResizeBehavior, getBorder, getBounds, getClientProperty, getComponentPopupMenu, getConditionForKeyStroke, getDebugGraphicsOptions, getDefaultLocale, getFontMetrics, getGraphics, getHeight, getInheritsPopupMenu, getInputMap, getInputMap, getInputVerifier, getInsets, getInsets, getListeners, getLocation, getMaximumSize, getMinimumSize, getNextFocusableComponent, getPopupLocation, getPreferredSize, getRegisteredKeyStrokes, getRootPane, getSize, getToolTipLocation, getToolTipText, getToolTipText, getTopLevelAncestor, getTransferHandler, getVerifyInputWhenFocusTarget, getVetoableChangeListeners, getVisibleRect, getWidth, getX, getY, grabFocus, hide, isDoubleBuffered, isLightweightComponent, isManagingFocus, isOpaque, isOptimizedDrawingEnabled, isPaintingForPrint, isPaintingTile, isRequestFocusEnabled, isValidateRoot, paint, paintImmediately, paintImmediately, print, printAll, putClientProperty, registerKeyboardAction, registerKeyboardAction, removeAncestorListener, removeNotify, removeVetoableChangeListener, repaint, repaint, requestDefaultFocus, requestFocus, requestFocus, requestFocusInWindow, resetKeyboardActions, reshape, revalidate, scrollRectToVisible, setActionMap, setAlignmentX, setAlignmentY, setAutoscrolls, setBackground, setBorder, setComponentPopupMenu, setDebugGraphicsOptions, setDefaultLocale, setDoubleBuffered, setEnabled, setFocusTraversalKeys, setFont, setForeground, setInheritsPopupMenu, setInputMap, setInputVerifier, setMaximumSize, setMinimumSize, setNextFocusableComponent, setOpaque, setPreferredSize, setRequestFocusEnabled, setToolTipText, setTransferHandler, setVerifyInputWhenFocusTarget, setVisible, unregisterKeyboardAction, updateadd, add, add, add, add, addContainerListener, addPropertyChangeListener, addPropertyChangeListener, applyComponentOrientation, areFocusTraversalKeysSet, countComponents, deliverEvent, doLayout, findComponentAt, findComponentAt, getComponent, getComponentAt, getComponentAt, getComponentCount, getComponents, getComponentZOrder, getContainerListeners, getFocusTraversalKeys, getFocusTraversalPolicy, getLayout, getMousePosition, insets, invalidate, isAncestorOf, isFocusCycleRoot, isFocusCycleRoot, isFocusTraversalPolicyProvider, isFocusTraversalPolicySet, layout, list, list, locate, minimumSize, paintComponents, preferredSize, printComponents, remove, remove, removeAll, removeContainerListener, setComponentZOrder, setFocusCycleRoot, setFocusTraversalPolicy, setFocusTraversalPolicyProvider, setLayout, transferFocusDownCycle, validateaction, add, addComponentListener, addFocusListener, addHierarchyBoundsListener, addHierarchyListener, addInputMethodListener, addKeyListener, addMouseListener, addMouseMotionListener, addMouseWheelListener, bounds, checkImage, checkImage, contains, createImage, createImage, createVolatileImage, createVolatileImage, dispatchEvent, enable, enableInputMethods, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, getBackground, getBounds, getColorModel, getComponentListeners, getComponentOrientation, getCursor, getDropTarget, getFocusCycleRootAncestor, getFocusListeners, getFocusTraversalKeysEnabled, getFont, getForeground, getGraphicsConfiguration, getHierarchyBoundsListeners, getHierarchyListeners, getIgnoreRepaint, getInputContext, getInputMethodListeners, getInputMethodRequests, getKeyListeners, getLocale, getLocation, getLocationOnScreen, getMouseListeners, getMouseMotionListeners, getMousePosition, getMouseWheelListeners, getName, getParent, getPeer, getPropertyChangeListeners, getPropertyChangeListeners, getSize, getToolkit, getTreeLock, gotFocus, handleEvent, hasFocus, imageUpdate, inside, isBackgroundSet, isCursorSet, isDisplayable, isEnabled, isFocusable, isFocusOwner, isFocusTraversable, isFontSet, isForegroundSet, isLightweight, isMaximumSizeSet, isMinimumSizeSet, isPreferredSizeSet, isShowing, isValid, isVisible, keyDown, keyUp, list, list, list, location, lostFocus, mouseDown, mouseDrag, mouseEnter, mouseExit, mouseMove, mouseUp, move, nextFocus, paintAll, postEvent, prepareImage, prepareImage, remove, removeComponentListener, removeFocusListener, removeHierarchyBoundsListener, removeHierarchyListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removeMouseWheelListener, removePropertyChangeListener, removePropertyChangeListener, repaint, repaint, repaint, resize, resize, setBounds, setBounds, setComponentOrientation, setCursor, setDropTarget, setFocusable, setFocusTraversalKeysEnabled, setIgnoreRepaint, setLocale, setLocation, setLocation, setName, setSize, setSize, show, show, size, toString, transferFocus, transferFocusBackward, transferFocusUpCycleequals, getClass, hashCode, notify, notifyAll, wait, wait, waitpublic PanelResumen(java.lang.String usuario)+
usuario - Usuario al cual corresponden los datos que se mostraran.public void iniciarTextFieldYLabel()+
public void llenarResumen()+
public class PanelSuperior
+extends javax.swing.JPanel
+javax.swing.JComponent.AccessibleJComponentjava.awt.Component.BaselineResizeBehaviorTOOL_TIP_TEXT_KEY, UNDEFINED_CONDITION, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_FOCUSED, WHEN_IN_FOCUSED_WINDOWBOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENTABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH| Constructor and Description | +
|---|
PanelSuperior(java.lang.String usuario)
+Inicia el panelSuperior asignandole el String usuario para ser utilizado
+ por un componente mas tarde.
+ |
+
getAccessibleContext, getUI, getUIClassID, setUI, updateUIaddAncestorListener, addNotify, addVetoableChangeListener, computeVisibleRect, contains, createToolTip, disable, enable, firePropertyChange, firePropertyChange, firePropertyChange, getActionForKeyStroke, getActionMap, getAlignmentX, getAlignmentY, getAncestorListeners, getAutoscrolls, getBaseline, getBaselineResizeBehavior, getBorder, getBounds, getClientProperty, getComponentPopupMenu, getConditionForKeyStroke, getDebugGraphicsOptions, getDefaultLocale, getFontMetrics, getGraphics, getHeight, getInheritsPopupMenu, getInputMap, getInputMap, getInputVerifier, getInsets, getInsets, getListeners, getLocation, getMaximumSize, getMinimumSize, getNextFocusableComponent, getPopupLocation, getPreferredSize, getRegisteredKeyStrokes, getRootPane, getSize, getToolTipLocation, getToolTipText, getToolTipText, getTopLevelAncestor, getTransferHandler, getVerifyInputWhenFocusTarget, getVetoableChangeListeners, getVisibleRect, getWidth, getX, getY, grabFocus, hide, isDoubleBuffered, isLightweightComponent, isManagingFocus, isOpaque, isOptimizedDrawingEnabled, isPaintingForPrint, isPaintingTile, isRequestFocusEnabled, isValidateRoot, paint, paintImmediately, paintImmediately, print, printAll, putClientProperty, registerKeyboardAction, registerKeyboardAction, removeAncestorListener, removeNotify, removeVetoableChangeListener, repaint, repaint, requestDefaultFocus, requestFocus, requestFocus, requestFocusInWindow, resetKeyboardActions, reshape, revalidate, scrollRectToVisible, setActionMap, setAlignmentX, setAlignmentY, setAutoscrolls, setBackground, setBorder, setComponentPopupMenu, setDebugGraphicsOptions, setDefaultLocale, setDoubleBuffered, setEnabled, setFocusTraversalKeys, setFont, setForeground, setInheritsPopupMenu, setInputMap, setInputVerifier, setMaximumSize, setMinimumSize, setNextFocusableComponent, setOpaque, setPreferredSize, setRequestFocusEnabled, setToolTipText, setTransferHandler, setVerifyInputWhenFocusTarget, setVisible, unregisterKeyboardAction, updateadd, add, add, add, add, addContainerListener, addPropertyChangeListener, addPropertyChangeListener, applyComponentOrientation, areFocusTraversalKeysSet, countComponents, deliverEvent, doLayout, findComponentAt, findComponentAt, getComponent, getComponentAt, getComponentAt, getComponentCount, getComponents, getComponentZOrder, getContainerListeners, getFocusTraversalKeys, getFocusTraversalPolicy, getLayout, getMousePosition, insets, invalidate, isAncestorOf, isFocusCycleRoot, isFocusCycleRoot, isFocusTraversalPolicyProvider, isFocusTraversalPolicySet, layout, list, list, locate, minimumSize, paintComponents, preferredSize, printComponents, remove, remove, removeAll, removeContainerListener, setComponentZOrder, setFocusCycleRoot, setFocusTraversalPolicy, setFocusTraversalPolicyProvider, setLayout, transferFocusDownCycle, validateaction, add, addComponentListener, addFocusListener, addHierarchyBoundsListener, addHierarchyListener, addInputMethodListener, addKeyListener, addMouseListener, addMouseMotionListener, addMouseWheelListener, bounds, checkImage, checkImage, contains, createImage, createImage, createVolatileImage, createVolatileImage, dispatchEvent, enable, enableInputMethods, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, getBackground, getBounds, getColorModel, getComponentListeners, getComponentOrientation, getCursor, getDropTarget, getFocusCycleRootAncestor, getFocusListeners, getFocusTraversalKeysEnabled, getFont, getForeground, getGraphicsConfiguration, getHierarchyBoundsListeners, getHierarchyListeners, getIgnoreRepaint, getInputContext, getInputMethodListeners, getInputMethodRequests, getKeyListeners, getLocale, getLocation, getLocationOnScreen, getMouseListeners, getMouseMotionListeners, getMousePosition, getMouseWheelListeners, getName, getParent, getPeer, getPropertyChangeListeners, getPropertyChangeListeners, getSize, getToolkit, getTreeLock, gotFocus, handleEvent, hasFocus, imageUpdate, inside, isBackgroundSet, isCursorSet, isDisplayable, isEnabled, isFocusable, isFocusOwner, isFocusTraversable, isFontSet, isForegroundSet, isLightweight, isMaximumSizeSet, isMinimumSizeSet, isPreferredSizeSet, isShowing, isValid, isVisible, keyDown, keyUp, list, list, list, location, lostFocus, mouseDown, mouseDrag, mouseEnter, mouseExit, mouseMove, mouseUp, move, nextFocus, paintAll, postEvent, prepareImage, prepareImage, remove, removeComponentListener, removeFocusListener, removeHierarchyBoundsListener, removeHierarchyListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removeMouseWheelListener, removePropertyChangeListener, removePropertyChangeListener, repaint, repaint, repaint, resize, resize, setBounds, setBounds, setComponentOrientation, setCursor, setDropTarget, setFocusable, setFocusTraversalKeysEnabled, setIgnoreRepaint, setLocale, setLocation, setLocation, setName, setSize, setSize, show, show, size, toString, transferFocus, transferFocusBackward, transferFocusUpCycleequals, getClass, hashCode, notify, notifyAll, wait, wait, wait| Class | +Description | +
|---|---|
| PanelCartola | +
+ Panel que contiene la tabla con los datos de la cartola del usuario, aparte
+ de componentes utilizados para añadir datos a la tabla
+ |
+
| PanelResumen | +
+ Panel que contiene los resumenes de los datos del usuario.
+ |
+
| PanelSuperior | +
+ Panel que contiene los componentes en el cual principalmente, estan los
+ botones para intercambiar entre el panelCartola y el panelResumen
+ |
+
+ * Si es Windows lo asignara a la ruta C:\P.A.M\ + *
+ *+ * Si es Linux lo asignara al directorio de usuario en la carpeta /P.A.M/ + *
+ * + * @param archivo + * Nombre del archivo al que se le asignara la ruta + * @return La ruta completa que tendra el archivo + */ + public static String getRuta(String archivo) { - + String ruta = ""; String os = System.getProperty("os.name"); if (os.contains("Windows")) { @@ -52,8 +91,15 @@ public class Archivo { return ruta; } + /** + * Lee el contenido del archivo y une todas sus lineas en un solo string + * para ser procesado mas tarde + * + * @return Contenido del archivo en un solo String + */ + public String leerArchivo() { - + abrirLeer(); String cadena = ""; String cadenaFinal = ""; @@ -62,32 +108,51 @@ public class Archivo { cadenaFinal += cadena; } } catch (IOException e) { - + } cerrarLeer(); return cadenaFinal; } + /** + * Añade el String entregado al final del archivo + * + * @param texto + * Texto a añadir + */ + public void escribirArchivo(String texto) { - + abrirEscribir(); try { fw.append(texto + "*!"); } catch (IOException e) { - + } cerrarEscribir(); } + /** + * Toma el contenido del archivo y lo divide en los saltos de linea, los + * cuales son representados por *! + * + * @return contenido del archivo dividido en *! + */ + public String[] entregarProcesado() { - + String[] datos; datos = leerArchivo().split("\\*!"); return datos; } + /** + * Borra una linea respecto al id entregado + * @param id Texto el cual esta en el primer espacio en la lina a borrar + */ + public void borrarLinea(String id) { - + String[] arch = entregarProcesado(); if (arch.length > 1) { @@ -126,6 +191,11 @@ public class Archivo { } } + /** + * Remplaza el contenido del archivo por el String[] entregado + * @param texto Texto con el que se remplazara el archivo + */ + public void actArchivo(String[] texto) { clearFile(); abrirEscribir(); @@ -138,36 +208,47 @@ public class Archivo { cerrarEscribir(); } + /** + * Elimina todo el contenido del archivo + */ + public void clearFile() { try { fw = new FileWriter(archivo, false); fw.write(""); fw.close(); } catch (IOException e) { - + } } + - public void modificarLinea(String linea, String nueva){ - + /** + * Cambia una linea del archivo + * + * @param linea Linea original a cambiar + * @param nueva Linea que remplaza a la original + */ + public void modificarLinea(String linea, String nueva) { + abrirEscribir(); - String[] arch = entregarProcesado(); - for(int x = 0; x < arch.length; x++){ - if(arch[x].equals(linea)){ + String[] arch = entregarProcesado(); + for (int x = 0; x < arch.length; x++) { + if (arch[x].equals(linea)) { arch[x] = nueva; break; } } actArchivo(arch); cerrarEscribir(); - + } private void abrirLeer() { try { fr = new FileReader(archivo); } catch (FileNotFoundException e) { - + } br = new BufferedReader(fr); } @@ -176,12 +257,12 @@ public class Archivo { try { fr.close(); } catch (IOException e) { - + } try { br.close(); } catch (IOException e) { - + } } @@ -189,7 +270,7 @@ public class Archivo { try { fw = new FileWriter(archivo, true); } catch (IOException e) { - + } } @@ -198,7 +279,7 @@ public class Archivo { try { fw.close(); } catch (IOException e) { - + } } } diff --git a/src/utiles/Cifrador.java b/src/utiles/Cifrador.java index 114be03..d2160c9 100755 --- a/src/utiles/Cifrador.java +++ b/src/utiles/Cifrador.java @@ -8,7 +8,6 @@ import sun.misc.BASE64Decoder; import sun.misc.BASE64Encoder; /** - * * @author idelcano */ public class Cifrador { diff --git a/src/utiles/Validador.java b/src/utiles/Validador.java index 45d8701..6b412a2 100644 --- a/src/utiles/Validador.java +++ b/src/utiles/Validador.java @@ -1,7 +1,13 @@ package utiles; - +/** + * Clase en la que se encuentran metodos que realizan validaciones de datos + */ public class Validador { - + /** + * Comprueba si el string recibido corresponde con el formato de un int + * @param num String que deberia contener un numero + * @return Un booleano el cual dice si el String recibido es un numero + */ public static boolean isNumber(String num) { boolean isNumber = num.matches("^[1-9]?[0-9]+"); diff --git a/src/visualV2/FrameAdministrador.java b/src/visual/frame/FrameAdministrador.java similarity index 91% rename from src/visualV2/FrameAdministrador.java rename to src/visual/frame/FrameAdministrador.java index 21c1920..b19924c 100644 --- a/src/visualV2/FrameAdministrador.java +++ b/src/visual/frame/FrameAdministrador.java @@ -1,4 +1,4 @@ -package visualV2; +package visual.frame; import javax.swing.*; import javax.swing.table.*; @@ -8,6 +8,11 @@ import control.ControlAdmin; import java.awt.*; import java.awt.event.*; +/** + * Ventana del modo administrador la cual permite la modificacion y creacion de + * usuarios por parte de un administrador con la clave + */ + public class FrameAdministrador extends JFrame { private JButton bCrear; @@ -16,11 +21,19 @@ public class FrameAdministrador extends JFrame { private JPanel panel; private JTable tabla; + /** + * Constructor que inicia la ventana y todos sus componentes + */ + public FrameAdministrador() { initComponents(); actTabla(); } + /** + * Inicia los componentes de la ventana + */ + private void initComponents() { panel = new JPanel(); @@ -128,6 +141,10 @@ public class FrameAdministrador extends JFrame { setLocationRelativeTo(null); } + /** + * Inicia la ventana crear y cierra la actual + */ + protected void bCrearActionPerformed(ActionEvent evt) { new FrameCrear(); setVisible(false); @@ -135,6 +152,10 @@ public class FrameAdministrador extends JFrame { } + /** + * Inicia la ventana modificar y cierra la actual + */ + protected void bModificarActionPerformed(ActionEvent evt) { new FrameModificar(); setVisible(false); @@ -142,6 +163,10 @@ public class FrameAdministrador extends JFrame { } + /** + * Llena la tabla de usuarios + */ + public void actTabla() { ControlAdmin control = new ControlAdmin(); @@ -159,5 +184,4 @@ public class FrameAdministrador extends JFrame { } - } diff --git a/src/visualV2/FrameCrear.java b/src/visual/frame/FrameCrear.java similarity index 67% rename from src/visualV2/FrameCrear.java rename to src/visual/frame/FrameCrear.java index 15557f7..b80fce0 100644 --- a/src/visualV2/FrameCrear.java +++ b/src/visual/frame/FrameCrear.java @@ -1,4 +1,4 @@ -package visualV2; +package visual.frame; import javax.swing.*; @@ -7,6 +7,9 @@ import control.ControlAdmin; import java.awt.event.*; import java.awt.*; +/** + * Ventana destinada a la creacion de usuarios por parte de un administrador + */ public class FrameCrear extends JFrame { private JButton bCrear; @@ -15,11 +18,19 @@ public class FrameCrear extends JFrame { private JLabel lContraseña; private JLabel lUsuario; private JPanel panel; - + + /** + * Constructor que inicia la ventana + */ + public FrameCrear() { initComponents(); } + /** + * Inicia los componentes de la ventana + */ + private void initComponents() { panel = new JPanel(); @@ -28,8 +39,17 @@ public class FrameCrear extends JFrame { lContraseña = new JLabel(); fUsuario = new JTextField(); fContraseña = new JTextField(); + + setDefaultCloseOperation(WindowConstants.DO_NOTHING_ON_CLOSE); + addWindowListener(new WindowAdapter() { - setDefaultCloseOperation(WindowConstants.EXIT_ON_CLOSE); + @Override + public void windowClosing(WindowEvent e) { + new FrameAdministrador(); + setVisible(false); + dispose(); + } + }); panel.setBackground(new Color(0, 128, 128)); @@ -62,44 +82,53 @@ public class FrameCrear extends JFrame { panelLayout.setHorizontalGroup(panelLayout.createParallelGroup(GroupLayout.Alignment.LEADING) .addGroup(panelLayout.createSequentialGroup().addGap(29, 29, 29) .addGroup(panelLayout.createParallelGroup(GroupLayout.Alignment.LEADING) - .addComponent(lContraseña, GroupLayout.Alignment.TRAILING) - .addComponent(lUsuario, GroupLayout.Alignment.TRAILING)) + .addComponent(lContraseña, GroupLayout.Alignment.TRAILING).addComponent(lUsuario, + GroupLayout.Alignment.TRAILING)) .addPreferredGap(LayoutStyle.ComponentPlacement.UNRELATED) .addGroup(panelLayout.createParallelGroup(GroupLayout.Alignment.LEADING) - .addComponent(fContraseña, GroupLayout.DEFAULT_SIZE, 182, Short.MAX_VALUE) - .addComponent(fUsuario).addComponent(bCrear, GroupLayout.DEFAULT_SIZE, - GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)) + .addComponent(fContraseña, GroupLayout.DEFAULT_SIZE, 182, Short.MAX_VALUE).addComponent( + fUsuario) + .addComponent(bCrear, GroupLayout.DEFAULT_SIZE, GroupLayout.DEFAULT_SIZE, + Short.MAX_VALUE)) .addGap(48, 48, 48))); panelLayout.setVerticalGroup(panelLayout.createParallelGroup(GroupLayout.Alignment.LEADING) .addGroup(panelLayout.createSequentialGroup().addGap(21, 21, 21) - .addGroup(panelLayout.createParallelGroup(GroupLayout.Alignment.LEADING) - .addComponent(lUsuario).addComponent(fUsuario, GroupLayout.PREFERRED_SIZE, - GroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)) + .addGroup(panelLayout.createParallelGroup(GroupLayout.Alignment.LEADING).addComponent(lUsuario) + .addComponent(fUsuario, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE, + GroupLayout.PREFERRED_SIZE)) .addPreferredGap(LayoutStyle.ComponentPlacement.RELATED) .addGroup(panelLayout.createParallelGroup(GroupLayout.Alignment.BASELINE) - .addComponent(lContraseña).addComponent(fContraseña, - GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE, - GroupLayout.PREFERRED_SIZE)) + .addComponent(lContraseña).addComponent(fContraseña, GroupLayout.PREFERRED_SIZE, + GroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)) .addPreferredGap(LayoutStyle.ComponentPlacement.UNRELATED).addComponent(bCrear) .addContainerGap(18, Short.MAX_VALUE))); GroupLayout layout = new GroupLayout(getContentPane()); getContentPane().setLayout(layout); - layout.setHorizontalGroup(layout.createParallelGroup(GroupLayout.Alignment.LEADING).addComponent( - panel, GroupLayout.DEFAULT_SIZE, GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)); + layout.setHorizontalGroup(layout.createParallelGroup(GroupLayout.Alignment.LEADING).addComponent(panel, + GroupLayout.DEFAULT_SIZE, GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)); layout.setVerticalGroup(layout.createParallelGroup(GroupLayout.Alignment.LEADING) - .addGroup(layout.createSequentialGroup().addComponent(panel, GroupLayout.DEFAULT_SIZE, - GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE).addGap(0, 0, 0))); + .addGroup(layout.createSequentialGroup() + .addComponent(panel, GroupLayout.DEFAULT_SIZE, GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) + .addGap(0, 0, 0))); pack(); setVisible(true); setLocationRelativeTo(null); - + } + /** + * Metodo que controla la accion al presionar el boton Crear + *+ * Si cumple las condiciones esperadas añade los datos ingresados en los + * JTextFields al archivo de usuario + *
+ */ + private void bCrearActionPerformed(ActionEvent evt) { ControlAdmin control = new ControlAdmin(); - if(control.añadirUsuario(fUsuario.getText(), fContraseña.getText())){ + if (control.añadirUsuario(fUsuario.getText(), fContraseña.getText())) { new FrameAdministrador(); setVisible(false); dispose(); diff --git a/src/visual/frame/FrameLogin.java b/src/visual/frame/FrameLogin.java new file mode 100644 index 0000000..15f204d --- /dev/null +++ b/src/visual/frame/FrameLogin.java @@ -0,0 +1,247 @@ +package visual.frame; + +import java.awt.event.*; +import javax.swing.*; +import javax.swing.event.MenuEvent; +import javax.swing.event.MenuListener; + +import control.ControlLogin; + +/** + * Ventana destinada a el logeo de un usuario en el sistema. + */ + +public class FrameLogin extends JFrame { + + private JButton bIngresar; + private JButton bRegistrar; + private JButton bSalir; + private JPanel bar; + private JLabel bienvenido; + private JPasswordField fContraseña1; + private JTextField fUsuario; + private JLabel lContraseña; + private JLabel lUsuario; + private JLabel pam; + private JPanel panel; + private JMenuBar menubar; + private JMenu menu; + + /** + * Constructor que inicia la ventana. + */ + + public FrameLogin() { + initComponents(); + } + + /** + * Metodo que inicia los elementos de la ventana + */ + + private void initComponents() { + + panel = new JPanel(); + pam = new JLabel(); + bienvenido = new JLabel(); + bar = new JPanel(); + lUsuario = new JLabel(); + fUsuario = new JTextField(); + lContraseña = new JLabel(); + fContraseña1 = new JPasswordField(); + bIngresar = new JButton(); + bRegistrar = new JButton(); + bSalir = new JButton(); + + setDefaultCloseOperation(WindowConstants.EXIT_ON_CLOSE); + setBackground(new java.awt.Color(21, 21, 21)); + + menubar = new JMenuBar(); + menu = new JMenu("Administrador"); + + menu.addMenuListener(new MenuListener() { + + @Override + public void menuSelected(MenuEvent e) { + + openAdmin(); + menu.setSelected(false); + } + + @Override + public void menuDeselected(MenuEvent e) { + } + + @Override + public void menuCanceled(MenuEvent e) { + + } + }); + menubar.add(menu); + setJMenuBar(menubar); + + panel.setBackground(new java.awt.Color(0, 128, 128)); + + pam.setFont(new java.awt.Font("Candara", 1, 60)); // NOI18N + pam.setForeground(new java.awt.Color(255, 255, 255)); + pam.setText("P.A.M"); + + bienvenido.setFont(new java.awt.Font("Candara", 1, 18)); // NOI18N + bienvenido.setForeground(new java.awt.Color(255, 255, 255)); + bienvenido.setText(" Bienvenido de nuevo "); + + bar.setBackground(new java.awt.Color(255, 255, 255)); + bar.setPreferredSize(new java.awt.Dimension(215, 2)); + + GroupLayout barLayout = new GroupLayout(bar); + bar.setLayout(barLayout); + barLayout.setHorizontalGroup( + barLayout.createParallelGroup(GroupLayout.Alignment.LEADING).addGap(0, 251, Short.MAX_VALUE)); + barLayout.setVerticalGroup( + barLayout.createParallelGroup(GroupLayout.Alignment.LEADING).addGap(0, 9, Short.MAX_VALUE)); + + lUsuario.setBackground(new java.awt.Color(0, 204, 204)); + lUsuario.setFont(new java.awt.Font("Candara", 1, 18)); // NOI18N + lUsuario.setForeground(new java.awt.Color(255, 255, 255)); + lUsuario.setText("Usuario"); + lContraseña.setBackground(new java.awt.Color(0, 204, 204)); + lContraseña.setFont(new java.awt.Font("Candara", 1, 18)); // NOI18N + lContraseña.setForeground(new java.awt.Color(255, 255, 255)); + lContraseña.setText("Contraseña"); + + bIngresar.setText("Ingresar"); + bIngresar.addActionListener(new java.awt.event.ActionListener() { + public void actionPerformed(java.awt.event.ActionEvent evt) { + bIngresarActionPerformed(evt); + } + }); + + bRegistrar.setText("Registrarse"); + bRegistrar.addActionListener(new java.awt.event.ActionListener() { + public void actionPerformed(java.awt.event.ActionEvent evt) { + bRegistrarActionPerformed(evt); + } + }); + + bSalir.setText("Salir"); + bSalir.addActionListener(new java.awt.event.ActionListener() { + public void actionPerformed(java.awt.event.ActionEvent evt) { + bSalirActionPerformed(evt); + } + }); + + GroupLayout panelLayout = new GroupLayout(panel); + panel.setLayout(panelLayout); + panelLayout.setHorizontalGroup(panelLayout.createParallelGroup(GroupLayout.Alignment.LEADING) + .addGroup(panelLayout.createSequentialGroup().addGap(95, 95, 95) + .addGroup(panelLayout.createParallelGroup(GroupLayout.Alignment.CENTER) + .addComponent(bar, GroupLayout.PREFERRED_SIZE, 251, GroupLayout.PREFERRED_SIZE) + .addComponent(pam).addComponent(bRegistrar).addComponent(bienvenido) + .addComponent(bIngresar, GroupLayout.PREFERRED_SIZE, 87, GroupLayout.PREFERRED_SIZE) + .addComponent(bSalir, GroupLayout.PREFERRED_SIZE, 65, GroupLayout.PREFERRED_SIZE) + .addComponent(fUsuario, GroupLayout.PREFERRED_SIZE, 161, GroupLayout.PREFERRED_SIZE) + .addComponent(lUsuario).addComponent(lContraseña).addComponent(fContraseña1, + GroupLayout.PREFERRED_SIZE, 161, GroupLayout.PREFERRED_SIZE)) + .addContainerGap(94, Short.MAX_VALUE))); + panelLayout.setVerticalGroup(panelLayout.createParallelGroup(GroupLayout.Alignment.LEADING) + .addGroup(panelLayout.createSequentialGroup().addGap(29, 29, 29) + .addComponent(pam, GroupLayout.PREFERRED_SIZE, 52, GroupLayout.PREFERRED_SIZE).addGap(1, 1, 1) + .addComponent(bienvenido, GroupLayout.PREFERRED_SIZE, 35, GroupLayout.PREFERRED_SIZE) + .addPreferredGap(LayoutStyle.ComponentPlacement.RELATED) + .addComponent(bar, GroupLayout.PREFERRED_SIZE, 9, GroupLayout.PREFERRED_SIZE).addGap(13, 13, 13) + .addComponent(lUsuario).addPreferredGap(LayoutStyle.ComponentPlacement.RELATED) + .addComponent(fUsuario, GroupLayout.PREFERRED_SIZE, 31, GroupLayout.PREFERRED_SIZE) + .addPreferredGap(LayoutStyle.ComponentPlacement.RELATED).addComponent(lContraseña) + .addPreferredGap(LayoutStyle.ComponentPlacement.RELATED) + .addComponent(fContraseña1, GroupLayout.PREFERRED_SIZE, 30, GroupLayout.PREFERRED_SIZE) + .addGap(18, 18, 18).addComponent(bIngresar) + .addPreferredGap(LayoutStyle.ComponentPlacement.RELATED).addComponent(bRegistrar) + .addPreferredGap(LayoutStyle.ComponentPlacement.RELATED).addComponent(bSalir) + .addContainerGap(17, Short.MAX_VALUE))); + + GroupLayout layout = new GroupLayout(getContentPane()); + getContentPane().setLayout(layout); + layout.setHorizontalGroup(layout.createParallelGroup(GroupLayout.Alignment.LEADING).addComponent(panel, + GroupLayout.DEFAULT_SIZE, GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)); + layout.setVerticalGroup(layout.createParallelGroup(GroupLayout.Alignment.LEADING).addComponent(panel, + GroupLayout.DEFAULT_SIZE, GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)); + + try { + UIManager.setLookAndFeel(UIManager.getSystemLookAndFeelClassName()); + } catch (ClassNotFoundException | InstantiationException | IllegalAccessException + | UnsupportedLookAndFeelException e) { + e.printStackTrace(); + } + + getRootPane().setDefaultButton(bIngresar); + setUndecorated(true); + pack(); + setVisible(true); + setLocationRelativeTo(null); + + } + + /** + * Accion que se realiza al presionar el boton Ingresar + *+ * llama a control login y lo utiliza para comprobar si el par usuario + * contraseña es correcto + *
+ */ + + private void bIngresarActionPerformed(ActionEvent evt) { + + ControlLogin control = new ControlLogin(); + + if (control.isUserPass(fUsuario.getText(), String.valueOf(fContraseña1.getPassword()))) { + + FramePrincipal principal = new FramePrincipal(fUsuario.getText()); + + dispose(); + + } else { + + JOptionPane.showMessageDialog(null, "Usuario o contraseña incorrectas", null, JOptionPane.ERROR_MESSAGE); + + } + + } + + /** + * Cierra el programa al presionarse el boton Salir + */ + private void bSalirActionPerformed(ActionEvent evt) { + + System.exit(0); + + } + + /** + * Abre la ventana Registro al presionarse el boton Registrar + */ + + private void bRegistrarActionPerformed(ActionEvent evt) { + + FrameRegistro registro = new FrameRegistro(); + dispose(); + } + + /** + * Abre la ventana Administrador al presionarse el boton en el menu superior. + * Esto solo si el codigo ingresado es el correcto, el cual es 7419. + */ + + private void openAdmin() { + String opcion = JOptionPane.showInputDialog("Ingrese codigo de administrador"); + if (opcion != null) { + if (opcion.equals("7419")) { + new FrameAdministrador(); + setVisible(false); + dispose(); + } else { + JOptionPane.showMessageDialog(null, "Codigo incorrecto"); + } + } + } + +} diff --git a/src/visualV2/FrameModificar.java b/src/visual/frame/FrameModificar.java similarity index 83% rename from src/visualV2/FrameModificar.java rename to src/visual/frame/FrameModificar.java index a88c1bc..a16651f 100644 --- a/src/visualV2/FrameModificar.java +++ b/src/visual/frame/FrameModificar.java @@ -1,4 +1,4 @@ -package visualV2; +package visual.frame; import javax.swing.*; @@ -7,6 +7,10 @@ import control.ControlAdmin; import java.awt.event.*; import java.awt.*; +/** + * Ventana destinada a la modificacion de usuarios + */ + public class FrameModificar extends JFrame { private JButton bModificar; @@ -18,10 +22,18 @@ public class FrameModificar extends JFrame { private JLabel lUsuario; private JPanel panel; + /** + * Constructor que inicia la ventana + */ + public FrameModificar() { initComponents(); } + /** + * Inicia los componentes de la ventana y su comportamiento + */ + private void initComponents() { panel = new JPanel(); @@ -35,13 +47,13 @@ public class FrameModificar extends JFrame { setDefaultCloseOperation(WindowConstants.DO_NOTHING_ON_CLOSE); addWindowListener(new WindowAdapter() { - - @Override - public void windowClosing(WindowEvent e) { - new FrameAdministrador(); - setVisible(false); - dispose(); - } + + @Override + public void windowClosing(WindowEvent e) { + new FrameAdministrador(); + setVisible(false); + dispose(); + } }); panel.setBackground(new Color(0, 128, 128)); @@ -127,33 +139,51 @@ public class FrameModificar extends JFrame { setLocationRelativeTo(null); } + /** + * Accion que realiza el JComboBox al seleccionar un item, llena los + * JTextField con los datos correspondientes al usuario. + */ + protected void boxUsuarioActionPerformed(ActionEvent evt) { ControlAdmin control = new ControlAdmin(); - for(int x = 0; x < control.getRowCount(); x++){ - if(control.getRow(x)[0].equals(boxUsuario.getSelectedItem())){ + for (int x = 0; x < control.getRowCount(); x++) { + if (control.getRow(x)[0].equals(boxUsuario.getSelectedItem())) { fContraseña.setText(control.getRow(x)[1]); fUsuario.setText(control.getRow(x)[0]); } } } + /** + * Accion que se realiza al presionar el boton Modificar + *+ * Toma los datos ingresados y modifica los datos del usuario seleccionado + * en el JComboBox + *
+ */ + protected void bModificarActionPerformed(ActionEvent evt) { ControlAdmin control = new ControlAdmin(); - String original = control.getRow(boxUsuario.getSelectedIndex())[0]+";"+control.getRow(boxUsuario.getSelectedIndex())[1]; - if(control.modificarUser(original, fUsuario.getText(), fContraseña.getText())){ + String original = control.getRow(boxUsuario.getSelectedIndex())[0] + ";" + + control.getRow(boxUsuario.getSelectedIndex())[1]; + if (control.modificarUser(original, fUsuario.getText(), fContraseña.getText())) { new FrameAdministrador(); setVisible(false); dispose(); } } - - private void llenarBox(){ - + + /** + * Llena el ComboBox con los nombres de usuario + */ + + private void llenarBox() { + ControlAdmin control = new ControlAdmin(); boxUsuario.removeAllItems(); - for(int x = 0 ; x < control.getRowCount(); x++){ + for (int x = 0; x < control.getRowCount(); x++) { boxUsuario.addItem(control.getRow(x)[0]); } - + } } diff --git a/src/visualV2/FramePrincipal.java b/src/visual/frame/FramePrincipal.java similarity index 75% rename from src/visualV2/FramePrincipal.java rename to src/visual/frame/FramePrincipal.java index 97ec0ac..99c8939 100644 --- a/src/visualV2/FramePrincipal.java +++ b/src/visual/frame/FramePrincipal.java @@ -1,8 +1,18 @@ -package visualV2; +package visual.frame; import javax.swing.*; + +import visual.panel.PanelCartola; +import visual.panel.PanelResumen; +import visual.panel.PanelSuperior; + import java.awt.*; -import java.awt.event.ActionEvent; +import java.awt.event.WindowAdapter; +import java.awt.event.WindowEvent; + +/** + * Frame que contiene los Paneles cartola, resumen y superior + */ public class FramePrincipal extends JFrame { @@ -13,12 +23,24 @@ public class FramePrincipal extends JFrame { private JPanel separador; private String usuario; + /** + * Inicia la ventana de usuario + * + * @param usuario + * Usuario el cual indicara a quien corresponde el archivo con + * sus datos. + */ + public FramePrincipal(String usuario) { this.usuario = usuario; initComponents(); } + /** + * Inicia los componentes del frame + */ + private void initComponents() { panelSuperior = new PanelSuperior(usuario); @@ -26,8 +48,16 @@ public class FramePrincipal extends JFrame { panelCartola = new PanelCartola(usuario); panelResumen = new PanelResumen(usuario); separador = new JPanel(); - - + + setDefaultCloseOperation(WindowConstants.DO_NOTHING_ON_CLOSE); + addWindowListener(new WindowAdapter() { + + @Override + public void windowClosing(WindowEvent e) { + salir(); + } + }); + separador.setBackground(new Color(255, 255, 255)); panelCard.setLayout(new CardLayout()); @@ -70,24 +100,30 @@ public class FramePrincipal extends JFrame { | UnsupportedLookAndFeelException e) { e.printStackTrace(); } - + pack(); setResizable(false); setVisible(true); - setLocationRelativeTo(null); + setLocationRelativeTo(null); } - protected void salir(ActionEvent evt) { - Object[] opciones = {"Si","No"}; - if(JOptionPane.showOptionDialog( - null,"¿Esta seguro?", "Salir", JOptionPane.OK_CANCEL_OPTION, - JOptionPane.INFORMATION_MESSAGE, null,opciones,"Si") - == 0){ + /** + * Accion que se realiza al presionar el boton salir de la ventana + */ + + protected void salir() { + Object[] opciones = { "Si", "No" }; + if (JOptionPane.showOptionDialog(null, "¿Esta seguro?", "Salir", JOptionPane.OK_CANCEL_OPTION, + JOptionPane.INFORMATION_MESSAGE, null, opciones, "Si") == 0) { System.exit(0); } - + } + /** + * Muestra el panel Cartola + */ + public void toCartola() { panelCartola.getTabla().actTabla(); @@ -95,6 +131,10 @@ public class FramePrincipal extends JFrame { cardLayout.show(panelCard, "cartola"); } + /** + * Muestra el panel Resumen + */ + public void toResumen() { panelResumen.llenarResumen(); CardLayout cardLayout = (CardLayout) panelCard.getLayout(); diff --git a/src/visual/frame/FrameRegistro.java b/src/visual/frame/FrameRegistro.java new file mode 100644 index 0000000..224a0ae --- /dev/null +++ b/src/visual/frame/FrameRegistro.java @@ -0,0 +1,196 @@ +package visual.frame; + +import java.awt.event.*; +import javax.swing.*; +import java.awt.*; + +import control.ControlLogin; + +/** + * Ventana en la cual se realiza el registro de usuarios. + */ +public class FrameRegistro extends JFrame { + + private JButton bRegistrarse; + private JButton bSalir; + private JPanel bar; + private JLabel bienvenido; + private JPasswordField fContraseña; + private JTextField fUsuario; + private JPasswordField fVerificar; + private JLabel lContraseña; + private JLabel lUsuario; + private JLabel lVerificiar; + private JLabel pam; + private JPanel panel; + + /** + * Constructor que inicia la ventana + */ + + public FrameRegistro() { + initComponents(); + } + + /** + * Metodo que inicia los componentes de la ventana + */ + + private void initComponents() { + + panel = new JPanel(); + pam = new JLabel(); + bienvenido = new JLabel(); + bar = new JPanel(); + lUsuario = new JLabel(); + fUsuario = new JTextField(); + lContraseña = new JLabel(); + fContraseña = new JPasswordField(); + bRegistrarse = new JButton(); + bSalir = new JButton(); + fVerificar = new JPasswordField(); + lVerificiar = new JLabel(); + + setDefaultCloseOperation(WindowConstants.EXIT_ON_CLOSE); + setBackground(new Color(21, 21, 21)); + setMinimumSize(null); + + panel.setBackground(new Color(0, 128, 128)); + + pam.setFont(new Font("Candara", 1, 60)); // NOI18N + pam.setForeground(new Color(255, 255, 255)); + pam.setText("P.A.M"); + + bienvenido.setFont(new Font("Candara", 1, 18)); // NOI18N + bienvenido.setForeground(new Color(255, 255, 255)); + bienvenido.setText(" Bienvenido de nuevo "); + + bar.setBackground(new Color(255, 255, 255)); + bar.setPreferredSize(new Dimension(215, 2)); + + GroupLayout barLayout = new GroupLayout(bar); + bar.setLayout(barLayout); + barLayout.setHorizontalGroup( + barLayout.createParallelGroup(GroupLayout.Alignment.LEADING).addGap(0, 251, Short.MAX_VALUE)); + barLayout.setVerticalGroup( + barLayout.createParallelGroup(GroupLayout.Alignment.LEADING).addGap(0, 9, Short.MAX_VALUE)); + + lUsuario.setBackground(new Color(0, 204, 204)); + lUsuario.setFont(new Font("Candara", 1, 18)); // NOI18N + lUsuario.setForeground(new Color(255, 255, 255)); + lUsuario.setText("Usuario"); + + lContraseña.setBackground(new Color(0, 204, 204)); + lContraseña.setFont(new Font("Candara", 1, 18)); // NOI18N + lContraseña.setForeground(new Color(255, 255, 255)); + lContraseña.setText("Contraseña"); + + bRegistrarse.setText("Registrarse"); + bRegistrarse.addActionListener(new ActionListener() { + public void actionPerformed(ActionEvent evt) { + bRegistrarseActionPerformed(evt); + } + }); + + bSalir.setText("Salir"); + bSalir.addActionListener(new ActionListener() { + public void actionPerformed(ActionEvent evt) { + bSalirActionPerformed(evt); + } + }); + + lVerificiar.setBackground(new Color(0, 204, 204)); + lVerificiar.setFont(new Font("Candara", 1, 18)); // NOI18N + lVerificiar.setForeground(new Color(255, 255, 255)); + lVerificiar.setText("Verificar Contraseña"); + + GroupLayout panelLayout = new GroupLayout(panel); + panel.setLayout(panelLayout); + panelLayout.setHorizontalGroup(panelLayout.createParallelGroup(GroupLayout.Alignment.LEADING) + .addGroup(GroupLayout.Alignment.TRAILING, panelLayout.createSequentialGroup().addGap(140, 140, 140) + .addGroup(panelLayout.createParallelGroup(GroupLayout.Alignment.CENTER) + .addComponent(bar, GroupLayout.PREFERRED_SIZE, 251, GroupLayout.PREFERRED_SIZE) + .addComponent(lUsuario) + .addComponent(fUsuario, GroupLayout.PREFERRED_SIZE, 161, GroupLayout.PREFERRED_SIZE) + .addComponent(lContraseña) + .addComponent(fContraseña, GroupLayout.PREFERRED_SIZE, 161, GroupLayout.PREFERRED_SIZE) + .addComponent(bRegistrarse, GroupLayout.PREFERRED_SIZE, 87, GroupLayout.PREFERRED_SIZE) + .addComponent(bSalir, GroupLayout.PREFERRED_SIZE, 65, GroupLayout.PREFERRED_SIZE) + .addComponent(fVerificar, GroupLayout.PREFERRED_SIZE, 161, GroupLayout.PREFERRED_SIZE) + .addComponent(pam).addComponent(lVerificiar).addComponent(bienvenido)) + .addGap(140, 140, 140))); + panelLayout.setVerticalGroup(panelLayout.createParallelGroup(GroupLayout.Alignment.LEADING).addGroup(panelLayout + .createSequentialGroup().addGap(27, 27, 27) + .addComponent(pam, GroupLayout.PREFERRED_SIZE, 52, GroupLayout.PREFERRED_SIZE).addGap(1, 1, 1) + .addComponent(bienvenido, GroupLayout.PREFERRED_SIZE, 35, GroupLayout.PREFERRED_SIZE) + .addPreferredGap(LayoutStyle.ComponentPlacement.RELATED) + .addComponent(bar, GroupLayout.PREFERRED_SIZE, 9, GroupLayout.PREFERRED_SIZE) + .addPreferredGap(LayoutStyle.ComponentPlacement.UNRELATED).addComponent(lUsuario) + .addPreferredGap(LayoutStyle.ComponentPlacement.RELATED) + .addComponent(fUsuario, GroupLayout.PREFERRED_SIZE, 31, GroupLayout.PREFERRED_SIZE) + .addPreferredGap(LayoutStyle.ComponentPlacement.RELATED).addComponent(lContraseña) + .addPreferredGap(LayoutStyle.ComponentPlacement.RELATED) + .addComponent(fContraseña, GroupLayout.PREFERRED_SIZE, 30, GroupLayout.PREFERRED_SIZE) + .addPreferredGap(LayoutStyle.ComponentPlacement.RELATED).addComponent(lVerificiar) + .addPreferredGap(LayoutStyle.ComponentPlacement.RELATED, GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) + .addComponent(fVerificar, GroupLayout.PREFERRED_SIZE, 30, GroupLayout.PREFERRED_SIZE).addGap(28, 28, 28) + .addComponent(bRegistrarse).addPreferredGap(LayoutStyle.ComponentPlacement.UNRELATED) + .addComponent(bSalir).addGap(31, 31, 31))); + + GroupLayout layout = new GroupLayout(getContentPane()); + getContentPane().setLayout(layout); + layout.setHorizontalGroup(layout.createParallelGroup(GroupLayout.Alignment.LEADING).addComponent(panel, + GroupLayout.DEFAULT_SIZE, GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)); + layout.setVerticalGroup(layout.createParallelGroup(GroupLayout.Alignment.LEADING).addComponent(panel, + GroupLayout.DEFAULT_SIZE, GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)); + + try { + UIManager.setLookAndFeel(UIManager.getSystemLookAndFeelClassName()); + } catch (ClassNotFoundException | InstantiationException | IllegalAccessException + | UnsupportedLookAndFeelException e) { + e.printStackTrace(); + } + + setUndecorated(true); + pack(); + getRootPane().setDefaultButton(bRegistrarse); + setVisible(true); + setLocationRelativeTo(null); + + } + + /** + * Accion que se realiza al presionarse el boton Registrarse + *+ * Usa a ControlLogin para añadir el usuario al archivo, si las + * comprobaciones salen correctas, cierra la ventana de registro y vuelve a + * la ventana login + *
+ */ + + protected void bRegistrarseActionPerformed(ActionEvent evt) { + + ControlLogin control = new ControlLogin(); + if (control.añadirUsuario(fUsuario.getText(), String.valueOf(fContraseña.getPassword()), + String.valueOf(fVerificar.getPassword()))) { + FrameLogin login = new FrameLogin(); + setVisible(false); + dispose(); + } + + } + + /** + * Accion que se realiza al presionar al boton Salir. + *+ * Vuelve a la ventana login y cierra la actual + *
+ */ + + private void bSalirActionPerformed(ActionEvent evt) { + + FrameLogin login = new FrameLogin(); + setVisible(false); + dispose(); + } +} diff --git a/src/visualV2/JTableTable.java b/src/visual/otros/JTableTable.java similarity index 77% rename from src/visualV2/JTableTable.java rename to src/visual/otros/JTableTable.java index 72f0e14..1854dbe 100644 --- a/src/visualV2/JTableTable.java +++ b/src/visual/otros/JTableTable.java @@ -1,4 +1,4 @@ -package visualV2; +package visual.otros; import java.awt.Color; import java.awt.Font; @@ -8,17 +8,29 @@ import javax.swing.ListSelectionModel; import javax.swing.table.DefaultTableModel; import control.ControlPrincipal; - +/** + * Tabla la cual es usada en el panelCartola. + * Contiene las columnas de Nº-Fecha-Documento-Fuente/Destino-Descripcion-Ingreso-Egreso-Saldo + */ public class JTableTable extends JTable{ String usuario; + /** + * Constructor que inicia la tabla, asigandole el usuario del cual se obtienen sus datos + * @param usuario Usuario del cual se obtienen los datos. + */ public JTableTable(String usuario){ this.usuario = usuario; iniciar(); } + + /** + * Inicia los componentes en la tabla + */ + private void iniciar(){ setSelectionMode(ListSelectionModel.SINGLE_SELECTION); @@ -46,7 +58,9 @@ public class JTableTable extends JTable{ setSelectionForeground(new Color(255, 255, 255)); actTabla(); } - + /** + * Llena con datos la tabla, los cuales son otorgados por la clase ControlPrincipal + */ public void actTabla() { ControlPrincipal control = new ControlPrincipal(usuario); diff --git a/src/visualV2/P.A.M.v2/catola.png b/src/visual/panel/P.A.M.v2/catola.png similarity index 100% rename from src/visualV2/P.A.M.v2/catola.png rename to src/visual/panel/P.A.M.v2/catola.png diff --git a/src/visualV2/P.A.M.v2/logo.png b/src/visual/panel/P.A.M.v2/logo.png similarity index 100% rename from src/visualV2/P.A.M.v2/logo.png rename to src/visual/panel/P.A.M.v2/logo.png diff --git a/src/visualV2/P.A.M.v2/resumen.png b/src/visual/panel/P.A.M.v2/resumen.png similarity index 100% rename from src/visualV2/P.A.M.v2/resumen.png rename to src/visual/panel/P.A.M.v2/resumen.png diff --git a/src/visualV2/PanelCartola.java b/src/visual/panel/PanelCartola.java similarity index 94% rename from src/visualV2/PanelCartola.java rename to src/visual/panel/PanelCartola.java index fc04a31..262ede8 100644 --- a/src/visualV2/PanelCartola.java +++ b/src/visual/panel/PanelCartola.java @@ -1,10 +1,11 @@ -package visualV2; +package visual.panel; import javax.swing.*; import org.jdesktop.swingx.*; import control.ControlPrincipal; import utiles.Validador; +import visual.otros.JTableTable; import java.awt.*; import java.awt.event.ActionEvent; @@ -12,6 +13,11 @@ import java.awt.event.ActionListener; import java.text.SimpleDateFormat; import java.util.Calendar; +/** + * Panel que contiene la tabla con los datos de la cartola del usuario, aparte + * de componentes utilizados para añadir datos a la tabla + */ + public class PanelCartola extends JPanel { private JButton bAñadir; @@ -47,11 +53,22 @@ public class PanelCartola extends JPanel { private JTableTable tabla; private String usuario; + /** + * Inicia el panel, asignandose un usuario al panel para ser utilizado mas + * tarde para obtener los datos del archivo correspondiente + * + * @param usuario + * Usuario del cual se obtienen los datos. + */ public PanelCartola(String usuario) { this.usuario = usuario; initComponents(); } + /** + * Inicia los componentes del panel. + */ + private void initComponents() { lFecha1 = new JLabel(); @@ -348,12 +365,26 @@ public class PanelCartola extends JPanel { } + /** + * Getter que entrega la tabla de la cartola + * + * @return JTableTable + */ + public JTableTable getTabla() { return tabla; } + /** + * Accion realizada al presionar el boton añadir. + *+ * Toma los datos ingresados en los fields correspondientes y los añade a el + * archivo del usuario a travez de la clase ControlPrincipal + *
+ */ + private void añadirActionPerformed(ActionEvent evt) { ControlPrincipal control = new ControlPrincipal(usuario); @@ -397,6 +428,11 @@ public class PanelCartola extends JPanel { } + /** + * Elimina la fila seleccionada en la tabla al ser presionada el boton + * Eliminar + */ + private void eliminarActionPerformed(ActionEvent evt) { ControlPrincipal control = new ControlPrincipal(usuario); @@ -411,6 +447,11 @@ public class PanelCartola extends JPanel { } + /** + * Modifica la linea ingresada en el jtextfield Nº. Esto atravez de los + * metodos en ControlPrincipal + */ + private void modificarActionPerformed(ActionEvent evt) { if (!fNumero.getText().equals("")) { diff --git a/src/visualV2/PanelResumen.java b/src/visual/panel/PanelResumen.java similarity index 91% rename from src/visualV2/PanelResumen.java rename to src/visual/panel/PanelResumen.java index 00a2a20..da40858 100644 --- a/src/visualV2/PanelResumen.java +++ b/src/visual/panel/PanelResumen.java @@ -1,4 +1,4 @@ -package visualV2; +package visual.panel; import javax.swing.*; import javax.swing.border.Border; @@ -21,6 +21,11 @@ import java.awt.event.ActionEvent; import java.awt.event.ActionListener; import java.util.ArrayList; +/** + * Panel que contiene los resumenes de los datos del usuario. Esto a travez de + * Jfreecharts principalmente + */ + public class PanelResumen extends JPanel { private JLabel balance; @@ -42,11 +47,22 @@ public class PanelResumen extends JPanel { private DefaultCategoryDataset dataSetMes; private DefaultCategoryDataset dataSetDoc; + /** + * Inicia el panelResumen y le asigna el usuario de quien sacara los datos. + * + * @param usuario + * Usuario al cual corresponden los datos que se mostraran. + */ + public PanelResumen(String usuario) { this.usuario = usuario; initComponents(); } + /** + * Inicia los componentes del panel + */ + private void initComponents() { iniciarTextFieldYLabel(); @@ -312,6 +328,11 @@ public class PanelResumen extends JPanel { } + /** + * Accion que se realiza al seleccionar un item en el JComboBox. Cambiando + * el grafico respecto a lo que se seleccione. + */ + private void comboActionPerformed(ActionEvent evt) { CardLayout cardLayout = (CardLayout) panelGraphs.getLayout(); @@ -319,6 +340,11 @@ public class PanelResumen extends JPanel { } + /** + * Inicia los TextFields y Labels en el panel asignandole todos los datos + * esperables para mas tarde poder asignarle sus datos. + */ + public void iniciarTextFieldYLabel() { ingresos = new ArrayList+ * Muestra el panel Resumen + *
+ */ + + private void bResumenActionPerformed(ActionEvent evt) { + + FramePrincipal parent = (FramePrincipal) SwingUtilities.getWindowAncestor(this); + parent.toResumen(); + + } + + /** + * Accion que se realiza al presionar el boton Cartola. + *+ * Muestra el panel Cartola + *
+ */ + + private void bCartolaActionPerformed(ActionEvent evt) { + + FramePrincipal parent = (FramePrincipal) SwingUtilities.getWindowAncestor(this); + parent.toCartola(); + + } +} diff --git a/src/visualV2/FrameLogin.java b/src/visualV2/FrameLogin.java deleted file mode 100644 index 7460dd9..0000000 --- a/src/visualV2/FrameLogin.java +++ /dev/null @@ -1,242 +0,0 @@ -package visualV2; - -import java.awt.event.*; -import javax.swing.*; -import javax.swing.event.MenuEvent; -import javax.swing.event.MenuListener; - -import control.ControlLogin; - -public class FrameLogin extends JFrame { - - private JButton bIngresar; - private JButton bRegistrar; - private JButton bSalir; - private JPanel bar; - private JLabel bienvenido; - private JPasswordField fContraseña1; - private JTextField fUsuario; - private JLabel lContraseña; - private JLabel lUsuario; - private JLabel pam; - private JPanel panel; - private JMenuBar menubar; - private JMenu menu; - - public FrameLogin() { - initComponents(); - } - - private void initComponents() { - - panel = new JPanel(); - pam = new JLabel(); - bienvenido = new JLabel(); - bar = new JPanel(); - lUsuario = new JLabel(); - fUsuario = new JTextField(); - lContraseña = new JLabel(); - fContraseña1 = new JPasswordField(); - bIngresar = new JButton(); - bRegistrar = new JButton(); - bSalir = new JButton(); - - setDefaultCloseOperation(WindowConstants.EXIT_ON_CLOSE); - setBackground(new java.awt.Color(21, 21, 21)); - - menubar = new JMenuBar(); - menu = new JMenu("Administrador"); - - menu.addMenuListener(new MenuListener() { - - @Override - public void menuSelected(MenuEvent e) { - - openAdmin(); - menu.setSelected(false); - } - - @Override - public void menuDeselected(MenuEvent e) { - } - - @Override - public void menuCanceled(MenuEvent e) { - - } - }); - menubar.add(menu); - setJMenuBar(menubar); - - panel.setBackground(new java.awt.Color(0, 128, 128)); - - pam.setFont(new java.awt.Font("Candara", 1, 60)); // NOI18N - pam.setForeground(new java.awt.Color(255, 255, 255)); - pam.setText("P.A.M"); - - bienvenido.setFont(new java.awt.Font("Candara", 1, 18)); // NOI18N - bienvenido.setForeground(new java.awt.Color(255, 255, 255)); - bienvenido.setText(" Bienvenido de nuevo "); - - bar.setBackground(new java.awt.Color(255, 255, 255)); - bar.setPreferredSize(new java.awt.Dimension(215, 2)); - - GroupLayout barLayout = new GroupLayout(bar); - bar.setLayout(barLayout); - barLayout.setHorizontalGroup( - barLayout.createParallelGroup(GroupLayout.Alignment.LEADING) - .addGap(0, 251, Short.MAX_VALUE) - ); - barLayout.setVerticalGroup( - barLayout.createParallelGroup(GroupLayout.Alignment.LEADING) - .addGap(0, 9, Short.MAX_VALUE) - ); - - lUsuario.setBackground(new java.awt.Color(0, 204, 204)); - lUsuario.setFont(new java.awt.Font("Candara", 1, 18)); // NOI18N - lUsuario.setForeground(new java.awt.Color(255, 255, 255)); - lUsuario.setText("Usuario"); - lContraseña.setBackground(new java.awt.Color(0, 204, 204)); - lContraseña.setFont(new java.awt.Font("Candara", 1, 18)); // NOI18N - lContraseña.setForeground(new java.awt.Color(255, 255, 255)); - lContraseña.setText("Contraseña"); - - bIngresar.setText("Ingresar"); - bIngresar.addActionListener(new java.awt.event.ActionListener() { - public void actionPerformed(java.awt.event.ActionEvent evt) { - bIngresarActionPerformed(evt); - } - }); - - bRegistrar.setText("Registrarse"); - bRegistrar.addActionListener(new java.awt.event.ActionListener() { - public void actionPerformed(java.awt.event.ActionEvent evt) { - bRegistrarActionPerformed(evt); - } - }); - - bSalir.setText("Salir"); - bSalir.addActionListener(new java.awt.event.ActionListener() { - public void actionPerformed(java.awt.event.ActionEvent evt) { - bSalirActionPerformed(evt); - } - }); - - - GroupLayout panelLayout = new GroupLayout(panel); - panel.setLayout(panelLayout); - panelLayout.setHorizontalGroup( - panelLayout.createParallelGroup(GroupLayout.Alignment.LEADING) - .addGroup(panelLayout.createSequentialGroup() - .addGap(95, 95, 95) - .addGroup(panelLayout.createParallelGroup(GroupLayout.Alignment.CENTER) - .addComponent(bar, GroupLayout.PREFERRED_SIZE, 251, GroupLayout.PREFERRED_SIZE) - .addComponent(pam) - .addComponent(bRegistrar) - .addComponent(bienvenido) - .addComponent(bIngresar, GroupLayout.PREFERRED_SIZE, 87, GroupLayout.PREFERRED_SIZE) - .addComponent(bSalir, GroupLayout.PREFERRED_SIZE, 65, GroupLayout.PREFERRED_SIZE) - .addComponent(fUsuario, GroupLayout.PREFERRED_SIZE, 161, GroupLayout.PREFERRED_SIZE) - .addComponent(lUsuario) - .addComponent(lContraseña) - .addComponent(fContraseña1, GroupLayout.PREFERRED_SIZE, 161, GroupLayout.PREFERRED_SIZE)) - .addContainerGap(94, Short.MAX_VALUE)) - ); - panelLayout.setVerticalGroup( - panelLayout.createParallelGroup(GroupLayout.Alignment.LEADING) - .addGroup(panelLayout.createSequentialGroup() - .addGap(29, 29, 29) - .addComponent(pam, GroupLayout.PREFERRED_SIZE, 52, GroupLayout.PREFERRED_SIZE) - .addGap(1, 1, 1) - .addComponent(bienvenido, GroupLayout.PREFERRED_SIZE, 35, GroupLayout.PREFERRED_SIZE) - .addPreferredGap(LayoutStyle.ComponentPlacement.RELATED) - .addComponent(bar, GroupLayout.PREFERRED_SIZE, 9, GroupLayout.PREFERRED_SIZE) - .addGap(13, 13, 13) - .addComponent(lUsuario) - .addPreferredGap(LayoutStyle.ComponentPlacement.RELATED) - .addComponent(fUsuario, GroupLayout.PREFERRED_SIZE, 31, GroupLayout.PREFERRED_SIZE) - .addPreferredGap(LayoutStyle.ComponentPlacement.RELATED) - .addComponent(lContraseña) - .addPreferredGap(LayoutStyle.ComponentPlacement.RELATED) - .addComponent(fContraseña1, GroupLayout.PREFERRED_SIZE, 30, GroupLayout.PREFERRED_SIZE) - .addGap(18, 18, 18) - .addComponent(bIngresar) - .addPreferredGap(LayoutStyle.ComponentPlacement.RELATED) - .addComponent(bRegistrar) - .addPreferredGap(LayoutStyle.ComponentPlacement.RELATED) - .addComponent(bSalir) - .addContainerGap(17, Short.MAX_VALUE)) - ); - - GroupLayout layout = new GroupLayout(getContentPane()); - getContentPane().setLayout(layout); - layout.setHorizontalGroup( - layout.createParallelGroup(GroupLayout.Alignment.LEADING) - .addComponent(panel, GroupLayout.DEFAULT_SIZE, GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) - ); - layout.setVerticalGroup( - layout.createParallelGroup(GroupLayout.Alignment.LEADING) - .addComponent(panel, GroupLayout.DEFAULT_SIZE, GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) - ); - - try { - UIManager.setLookAndFeel(UIManager.getSystemLookAndFeelClassName()); - } catch (ClassNotFoundException | InstantiationException | IllegalAccessException - | UnsupportedLookAndFeelException e) { - e.printStackTrace(); - } - - getRootPane().setDefaultButton(bIngresar); - setUndecorated(true); - pack(); - setVisible(true); - setLocationRelativeTo(null); - - } - - private void bIngresarActionPerformed(ActionEvent evt) { - - - ControlLogin control = new ControlLogin(); - - if (control.isUserPass(fUsuario.getText(), String.valueOf(fContraseña1.getPassword()))) { - - FramePrincipal principal = new FramePrincipal(fUsuario.getText()); - - dispose(); - - } else { - - JOptionPane.showMessageDialog(null, "Usuario o contraseña incorrectas", null, JOptionPane.ERROR_MESSAGE); - - } - - } - - private void bSalirActionPerformed(ActionEvent evt) { - - System.exit(0); - - } - - private void bRegistrarActionPerformed(ActionEvent evt) { - - FrameRegistro registro = new FrameRegistro(); - dispose(); - } - - private void openAdmin(){ - String opcion = JOptionPane.showInputDialog("Ingrese codigo de administrador"); - if(opcion!=null){ - if(opcion.equals("7419")){ - new FrameAdministrador(); - setVisible(false); - dispose(); - }else{ - JOptionPane.showMessageDialog(null, "Codigo incorrecto"); - } - } - } - - -} diff --git a/src/visualV2/FrameRegistro.java b/src/visualV2/FrameRegistro.java deleted file mode 100644 index 5f31cf4..0000000 --- a/src/visualV2/FrameRegistro.java +++ /dev/null @@ -1,188 +0,0 @@ -package visualV2; - -import java.awt.event.*; -import javax.swing.*; - -import control.ControlLogin; - -public class FrameRegistro extends JFrame { - - private javax.swing.JButton bRegistrarse; - private javax.swing.JButton bSalir; - private javax.swing.JPanel bar; - private javax.swing.JLabel bienvenido; - private javax.swing.JPasswordField fContraseña; - private javax.swing.JTextField fUsuario; - private javax.swing.JPasswordField fVerificar; - private javax.swing.JLabel lContraseña; - private javax.swing.JLabel lUsuario; - private javax.swing.JLabel lVerificiar; - private javax.swing.JLabel pam; - private javax.swing.JPanel panel; - - public FrameRegistro() { - initComponents(); - } - - private void initComponents() { - - panel = new javax.swing.JPanel(); - pam = new javax.swing.JLabel(); - bienvenido = new javax.swing.JLabel(); - bar = new javax.swing.JPanel(); - lUsuario = new javax.swing.JLabel(); - fUsuario = new javax.swing.JTextField(); - lContraseña = new javax.swing.JLabel(); - fContraseña = new javax.swing.JPasswordField(); - bRegistrarse = new javax.swing.JButton(); - bSalir = new javax.swing.JButton(); - fVerificar = new javax.swing.JPasswordField(); - lVerificiar = new javax.swing.JLabel(); - - setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE); - setBackground(new java.awt.Color(21, 21, 21)); - setMinimumSize(null); - - panel.setBackground(new java.awt.Color(0, 128, 128)); - - pam.setFont(new java.awt.Font("Candara", 1, 60)); // NOI18N - pam.setForeground(new java.awt.Color(255, 255, 255)); - pam.setText("P.A.M"); - - bienvenido.setFont(new java.awt.Font("Candara", 1, 18)); // NOI18N - bienvenido.setForeground(new java.awt.Color(255, 255, 255)); - bienvenido.setText(" Bienvenido de nuevo "); - - bar.setBackground(new java.awt.Color(255, 255, 255)); - bar.setPreferredSize(new java.awt.Dimension(215, 2)); - - javax.swing.GroupLayout barLayout = new javax.swing.GroupLayout(bar); - bar.setLayout(barLayout); - barLayout.setHorizontalGroup(barLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING).addGap(0, - 251, Short.MAX_VALUE)); - barLayout.setVerticalGroup( - barLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING).addGap(0, 9, Short.MAX_VALUE)); - - lUsuario.setBackground(new java.awt.Color(0, 204, 204)); - lUsuario.setFont(new java.awt.Font("Candara", 1, 18)); // NOI18N - lUsuario.setForeground(new java.awt.Color(255, 255, 255)); - lUsuario.setText("Usuario"); - - lContraseña.setBackground(new java.awt.Color(0, 204, 204)); - lContraseña.setFont(new java.awt.Font("Candara", 1, 18)); // NOI18N - lContraseña.setForeground(new java.awt.Color(255, 255, 255)); - lContraseña.setText("Contraseña"); - - bRegistrarse.setText("Registrarse"); - bRegistrarse.addActionListener(new java.awt.event.ActionListener() { - public void actionPerformed(java.awt.event.ActionEvent evt) { - bRegistrarseActionPerformed(evt); - } - }); - - bSalir.setText("Salir"); - bSalir.addActionListener(new java.awt.event.ActionListener() { - public void actionPerformed(java.awt.event.ActionEvent evt) { - bSalirActionPerformed(evt); - } - }); - - lVerificiar.setBackground(new java.awt.Color(0, 204, 204)); - lVerificiar.setFont(new java.awt.Font("Candara", 1, 18)); // NOI18N - lVerificiar.setForeground(new java.awt.Color(255, 255, 255)); - lVerificiar.setText("Verificar Contraseña"); - - javax.swing.GroupLayout panelLayout = new javax.swing.GroupLayout(panel); - panel.setLayout(panelLayout); - panelLayout.setHorizontalGroup(panelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) - .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, - panelLayout.createSequentialGroup().addGap(140, 140, 140) - .addGroup(panelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.CENTER) - .addComponent(bar, javax.swing.GroupLayout.PREFERRED_SIZE, 251, - javax.swing.GroupLayout.PREFERRED_SIZE) - .addComponent(lUsuario) - .addComponent(fUsuario, javax.swing.GroupLayout.PREFERRED_SIZE, 161, - javax.swing.GroupLayout.PREFERRED_SIZE) - .addComponent(lContraseña) - .addComponent(fContraseña, javax.swing.GroupLayout.PREFERRED_SIZE, 161, - javax.swing.GroupLayout.PREFERRED_SIZE) - .addComponent(bRegistrarse, javax.swing.GroupLayout.PREFERRED_SIZE, 87, - javax.swing.GroupLayout.PREFERRED_SIZE) - .addComponent(bSalir, javax.swing.GroupLayout.PREFERRED_SIZE, 65, - javax.swing.GroupLayout.PREFERRED_SIZE) - .addComponent(fVerificar, javax.swing.GroupLayout.PREFERRED_SIZE, 161, - javax.swing.GroupLayout.PREFERRED_SIZE) - .addComponent(pam).addComponent(lVerificiar).addComponent(bienvenido)) - .addGap(140, 140, 140))); - panelLayout.setVerticalGroup(panelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) - .addGroup(panelLayout.createSequentialGroup().addGap(27, 27, 27) - .addComponent(pam, javax.swing.GroupLayout.PREFERRED_SIZE, 52, - javax.swing.GroupLayout.PREFERRED_SIZE) - .addGap(1, 1, 1) - .addComponent(bienvenido, javax.swing.GroupLayout.PREFERRED_SIZE, 35, - javax.swing.GroupLayout.PREFERRED_SIZE) - .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) - .addComponent(bar, javax.swing.GroupLayout.PREFERRED_SIZE, 9, - javax.swing.GroupLayout.PREFERRED_SIZE) - .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED).addComponent(lUsuario) - .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) - .addComponent(fUsuario, javax.swing.GroupLayout.PREFERRED_SIZE, 31, - javax.swing.GroupLayout.PREFERRED_SIZE) - .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED).addComponent(lContraseña) - .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) - .addComponent(fContraseña, javax.swing.GroupLayout.PREFERRED_SIZE, 30, - javax.swing.GroupLayout.PREFERRED_SIZE) - .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED).addComponent(lVerificiar) - .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, - javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) - .addComponent(fVerificar, javax.swing.GroupLayout.PREFERRED_SIZE, 30, - javax.swing.GroupLayout.PREFERRED_SIZE) - .addGap(28, 28, 28).addComponent(bRegistrarse) - .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED).addComponent(bSalir) - .addGap(31, 31, 31))); - - javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane()); - getContentPane().setLayout(layout); - layout.setHorizontalGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING).addComponent( - panel, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)); - layout.setVerticalGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING).addComponent( - panel, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)); - - try { - UIManager.setLookAndFeel(UIManager.getSystemLookAndFeelClassName()); - } catch (ClassNotFoundException | InstantiationException | IllegalAccessException - | UnsupportedLookAndFeelException e) { - // TODO Auto-generated catch block - e.printStackTrace(); - } - - setUndecorated(true); - pack(); - getRootPane().setDefaultButton(bRegistrarse); - setVisible(true); - setLocationRelativeTo(null); - - } - - protected void bRegistrarseActionPerformed(ActionEvent evt) { - - - - ControlLogin control = new ControlLogin(); - if (control.añadirUsuario(fUsuario.getText(), String.valueOf(fContraseña.getPassword()), - String.valueOf(fVerificar.getPassword()))) { - FrameLogin login = new FrameLogin(); - - dispose(); - }else{ - } - - } - - private void bSalirActionPerformed(ActionEvent evt) { - - FrameLogin login = new FrameLogin(); - - dispose(); - } -} diff --git a/src/visualV2/PanelSuperior.java b/src/visualV2/PanelSuperior.java deleted file mode 100644 index e09533c..0000000 --- a/src/visualV2/PanelSuperior.java +++ /dev/null @@ -1,150 +0,0 @@ -package visualV2; - -import javax.swing.*; - -import java.awt.event.*; -import java.util.Calendar; -import java.awt.*; - -public class PanelSuperior extends JPanel { - - private JButton bCartola; - private JButton bResumen; - - private JTextField fFecha; - private JTextField fUsuario; - - private JLabel lFecha; - private JLabel lUsuario; - private JLabel logo; - - private String usuario; - - public PanelSuperior(String usuario) { - - this.usuario = usuario; - initComponents(); - } - - private void initComponents() { - - - logo = new JLabel(); - lUsuario = new JLabel(); - fUsuario = new JTextField(); - lFecha = new JLabel(); - fFecha = new JTextField(); - bResumen = new JButton(); - bCartola = new JButton(); - - setBackground(new Color(0, 128, 128)); - - logo.setIcon(new ImageIcon(getClass().getResource("P.A.M.v2/logo.png"))); // NOI18N - - lUsuario.setFont(new Font("Candara", 1, 14)); // NOI18N - lUsuario.setForeground(new Color(255, 255, 255)); - lUsuario.setText("Usuario:"); - - fUsuario.setBackground(new Color(178, 223, 219)); - fUsuario.setEnabled(false); - fUsuario.setText(usuario); - - lFecha.setFont(new Font("Candara", 1, 14)); // NOI18N - lFecha.setForeground(new Color(255, 255, 255)); - lFecha.setText("Fecha:"); - - Calendar hoy = Calendar.getInstance(); - fFecha.setBackground(new Color(178, 223, 219)); - fFecha.setEnabled(false); - fFecha.setText((String.valueOf(hoy.get(Calendar.DATE)) + "/" + String.valueOf(hoy.get(Calendar.MONTH)+1) + "/" - + String.valueOf(hoy.get(Calendar.YEAR)))); - - bResumen.setBackground(new Color(0, 188, 212)); - bResumen.setText("Resumen"); - bResumen.setBorder(BorderFactory.createTitledBorder("")); - bResumen.setContentAreaFilled(false); - bResumen.setOpaque(true); - bResumen.addActionListener(new ActionListener() { - public void actionPerformed(ActionEvent evt) { - bResumenActionPerformed(evt); - } - }); - - bCartola.setBackground(new Color(0, 188, 212)); - bCartola.setText("Cartola"); - bCartola.setBorder(BorderFactory.createTitledBorder("")); - bCartola.setContentAreaFilled(false); - bCartola.setOpaque(true); - bCartola.addActionListener(new ActionListener() { - public void actionPerformed(ActionEvent evt) { - bCartolaActionPerformed(evt); - } - }); - - GroupLayout layout = new GroupLayout(this); - this.setLayout(layout); - layout.setHorizontalGroup( - layout.createParallelGroup(GroupLayout.Alignment.LEADING) - .addGroup(layout.createSequentialGroup() - .addContainerGap() - .addComponent(logo) - .addGroup(layout.createParallelGroup(GroupLayout.Alignment.LEADING) - .addGroup(layout.createSequentialGroup() - .addPreferredGap(LayoutStyle.ComponentPlacement.RELATED, GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) - .addGroup(layout.createParallelGroup(GroupLayout.Alignment.LEADING) - .addGroup(GroupLayout.Alignment.TRAILING, layout.createSequentialGroup() - .addComponent(lUsuario) - .addPreferredGap(LayoutStyle.ComponentPlacement.RELATED) - .addComponent(fUsuario, GroupLayout.PREFERRED_SIZE, 100, GroupLayout.PREFERRED_SIZE)) - .addGroup(GroupLayout.Alignment.TRAILING, layout.createSequentialGroup() - .addComponent(lFecha) - .addPreferredGap(LayoutStyle.ComponentPlacement.RELATED) - .addComponent(fFecha, GroupLayout.PREFERRED_SIZE, 100, GroupLayout.PREFERRED_SIZE))) - .addContainerGap()) - .addGroup(layout.createSequentialGroup() - .addGap(333, 333, 333) - .addComponent(bCartola, GroupLayout.PREFERRED_SIZE, 117, GroupLayout.PREFERRED_SIZE) - .addPreferredGap(LayoutStyle.ComponentPlacement.RELATED) - .addComponent(bResumen, GroupLayout.PREFERRED_SIZE, 117, GroupLayout.PREFERRED_SIZE) - .addContainerGap(473, Short.MAX_VALUE)))) - ); - layout.setVerticalGroup( - layout.createParallelGroup(GroupLayout.Alignment.LEADING) - .addGroup(layout.createSequentialGroup() - .addContainerGap() - .addGroup(layout.createParallelGroup(GroupLayout.Alignment.BASELINE) - .addComponent(fUsuario, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE) - .addComponent(lUsuario)) - .addPreferredGap(LayoutStyle.ComponentPlacement.RELATED) - .addGroup(layout.createParallelGroup(GroupLayout.Alignment.BASELINE) - .addComponent(lFecha) - .addComponent(fFecha, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)) - .addGap(9, 9, 9) - .addGroup(layout.createParallelGroup(GroupLayout.Alignment.BASELINE) - .addComponent(bResumen, GroupLayout.PREFERRED_SIZE, 25, GroupLayout.PREFERRED_SIZE) - .addComponent(bCartola, GroupLayout.PREFERRED_SIZE, 25, GroupLayout.PREFERRED_SIZE)) - .addContainerGap(GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)) - .addComponent(logo, GroupLayout.Alignment.TRAILING, GroupLayout.DEFAULT_SIZE, 110, Short.MAX_VALUE) - ); - - - } - - private void bResumenActionPerformed(ActionEvent evt) { - - - - FramePrincipal parent = (FramePrincipal) SwingUtilities.getWindowAncestor(this); - parent.toResumen(); - - } - - private void bCartolaActionPerformed(ActionEvent evt) { - - - - FramePrincipal parent = (FramePrincipal) SwingUtilities.getWindowAncestor(this); - parent.toCartola(); - - } -}