Mejoras de estilo y otros
This commit is contained in:
		
							parent
							
								
									0ade46bde2
								
							
						
					
					
						commit
						667182d76e
					
				
							
								
								
									
										1
									
								
								bin/.gitignore
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										1
									
								
								bin/.gitignore
									
									
									
									
										vendored
									
									
								
							| @ -1,2 +1,3 @@ | ||||
| /VistaControlador/ | ||||
| /Logica/ | ||||
| /IniciarSesion/ | ||||
|  | ||||
										
											Binary file not shown.
										
									
								
							
							
								
								
									
										27
									
								
								src/IniciarSesion/Usuario.java
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										27
									
								
								src/IniciarSesion/Usuario.java
									
									
									
									
									
										Normal 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; | ||||
| 	} | ||||
| 	 | ||||
| } | ||||
							
								
								
									
										8
									
								
								src/IniciarSesion/Validacion.java
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										8
									
								
								src/IniciarSesion/Validacion.java
									
									
									
									
									
										Normal file
									
								
							| @ -0,0 +1,8 @@ | ||||
| package IniciarSesion; | ||||
| 
 | ||||
| import java.io.File; | ||||
| 
 | ||||
| public class Validacion { | ||||
| 	File fichero; | ||||
| 	 | ||||
| } | ||||
| @ -35,9 +35,6 @@ private ArrayList<Mes> meses; | ||||
| 		return this.meses.get(this.mesActual).getGestiones(); | ||||
| 	} | ||||
| 	 | ||||
| 	 | ||||
| 	 | ||||
| 
 | ||||
| } | ||||
| 
 | ||||
| class Mes{ | ||||
|  | ||||
| @ -39,11 +39,6 @@ public class Transaccion { | ||||
| 	} | ||||
| 	 | ||||
| 	public float getDinero() { | ||||
| 		/*if(positivo) { | ||||
| 			return this.dinero; | ||||
| 		}else { | ||||
| 			return -this.dinero; | ||||
| 		}*/ | ||||
| 		return this.dinero; | ||||
| 	} | ||||
| 	 | ||||
|  | ||||
| @ -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())){ | ||||
| 			 | ||||
| 		//} | ||||
| 		 | ||||
| 	} | ||||
| 	 | ||||
|  | ||||
| @ -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); | ||||
| 	} | ||||
| 	 | ||||
| 	 | ||||
| 	 | ||||
| } | ||||
|  | ||||
| @ -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); | ||||
|  | ||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user