Mejoras de estilo y otros

This commit is contained in:
roche 2019-11-14 12:05:58 +01:00
parent 0ade46bde2
commit 667182d76e
13 changed files with 126 additions and 109 deletions

1
bin/.gitignore vendored
View File

@ -1,2 +1,3 @@
/VistaControlador/
/Logica/
/IniciarSesion/

Binary file not shown.

View File

@ -0,0 +1,27 @@
package IniciarSesion;
import java.io.Serializable;
public class Usuario implements Serializable{
String nombre;
String contrasenia;
boolean admin;
public Usuario(String nombre, String contrasenia, boolean admin) {
this.admin = admin;
this.nombre = nombre;
this.contrasenia = contrasenia;
}
public boolean comprobar(String contrasenia) {
if(this.contrasenia.equals(contrasenia)) {
return true;
}
return false;
}
public String getUsuario() {
return this.nombre;
}
}

View File

@ -0,0 +1,8 @@
package IniciarSesion;
import java.io.File;
public class Validacion {
File fichero;
}

View File

@ -35,9 +35,6 @@ private ArrayList<Mes> meses;
return this.meses.get(this.mesActual).getGestiones();
}
}
class Mes{

View File

@ -39,11 +39,6 @@ public class Transaccion {
}
public float getDinero() {
/*if(positivo) {
return this.dinero;
}else {
return -this.dinero;
}*/
return this.dinero;
}

View File

@ -43,9 +43,6 @@ public class ControladorPanelLateral implements ActionListener, DateChangeListen
frame.setVisible(true);
frame.setSize(700,500);
}
//}else if(e.getActionCommand().equals(this.vista.elegirMes.getActionCommand())){
//}
}

View File

@ -48,11 +48,6 @@ public class Menu extends JFrame{
ControladorAniadirVisualizar controlador = new ControladorAniadirVisualizar(this.ingresos);
ControladorAniadirVisualizar controlador2 = new ControladorAniadirVisualizar(this.gastos);
ControladorPanelLateral controlador3 = new ControladorPanelLateral(this.panel);
/*constrain.fill=GridBagConstraints.HORIZONTAL;
constrain.gridx=1;
constrain.gridy=0;
constrain.weightx=1;
constrain.weighty=2;*/
this.panel.actualizarDatos(datosIngresos);
this.pestania.addChangeListener((ChangeListener)->{
if(this.pestania.getSelectedIndex() == 0) {
@ -64,6 +59,4 @@ public class Menu extends JFrame{
this.add(this.panel);
}
}

View File

@ -29,7 +29,6 @@ public class VistaAniadirVisualizar extends JPanel{
this.menu = menu;
this.x = 100;
this.boton = new JButton("aniadir");
//this.gestiones=new Gestion();
this.add(boton);
this.cuadro = new JPanel();
this.panel = new JScrollPane(cuadro);