Skip to content
Snippets Groups Projects
Commit 368b8de2 authored by pablo's avatar pablo
Browse files

Creo que esta todo

parent f2d66d64
Branches
No related tags found
No related merge requests found
......@@ -25,7 +25,7 @@ public class ControladorCajero {
public void saldo(Cuenta cuenta){
vistaCajero.setSaldo(""+cuenta.getSaldo());
vistaCajero.setSaldo(cuenta.getSaldo()+"€");
}
public void retirar(Cuenta cuenta){
......@@ -35,7 +35,7 @@ public class ControladorCajero {
if(dineroRetirar<=cuenta.getSaldo() && dineroRetirar>0){
if(!noMultiploDeDiez(dineroRetirarText)){
cuenta.retirarDineroCajero(cuenta,dineroRetirar);
vistaCajero.setSaldoRetirar(cuenta.getSaldo()+"");
vistaCajero.setSaldoRetirar(cuenta.getSaldo()+"");
}else{
vistaCajero.setSaldoRetirar("EL DINERO DESEADO NO ES MULTIPLO DE 10");
}
......
......@@ -227,8 +227,6 @@ public class VistaCajero extends javax.swing.JFrame {
private void checkBotonActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_checkBotonActionPerformed
checkPane.setVisible(true);
for(int i = 0;i<cuenta.getlistaRetirarDinero().size();i++){
String textoActual = checkPane.getText();
checkPane.setText(textoActual+cuenta.getlistaRetirarDinero().get(i)+"\n");
......
......@@ -18,90 +18,74 @@
<AuxValue name="FormSettings_listenerGenerationStyle" type="java.lang.Integer" value="0"/>
<AuxValue name="FormSettings_variablesLocal" type="java.lang.Boolean" value="false"/>
<AuxValue name="FormSettings_variablesModifier" type="java.lang.Integer" value="2"/>
<AuxValue name="designerSize" type="java.awt.Dimension" value="-84,-19,0,5,115,114,0,18,106,97,118,97,46,97,119,116,46,68,105,109,101,110,115,105,111,110,65,-114,-39,-41,-84,95,68,20,2,0,2,73,0,6,104,101,105,103,104,116,73,0,5,119,105,100,116,104,120,112,0,0,1,-39,0,0,1,-73"/>
</AuxValues>
<Layout class="org.netbeans.modules.form.compat2.layouts.DesignBoxLayout">
<Property name="axis" type="int" value="1"/>
</Layout>
<SubComponents>
<Container class="javax.swing.JPanel" name="jPanel1">
<Layout>
<DimensionLayout dim="0">
<Group type="103" groupAlignment="0" attributes="0">
<Group type="102" attributes="0">
<EmptySpace min="-2" pref="155" max="-2" attributes="0"/>
<Component id="aceptarBoton" min="-2" pref="128" max="-2" attributes="0"/>
<EmptySpace min="0" pref="156" max="32767" attributes="0"/>
</Group>
<Group type="102" alignment="1" attributes="0">
<Group type="103" groupAlignment="0" attributes="0">
<Group type="102" attributes="0">
<EmptySpace min="-2" pref="32" max="-2" attributes="0"/>
<Group type="103" groupAlignment="1" attributes="0">
<EmptySpace min="0" pref="0" max="32767" attributes="0"/>
<Component id="jLabel3" min="-2" max="-2" attributes="0"/>
<Component id="jLabel4" min="-2" max="-2" attributes="0"/>
<Component id="jLabel2" alignment="1" min="-2" max="-2" attributes="0"/>
<EmptySpace min="-2" pref="4" max="-2" attributes="0"/>
</Group>
<EmptySpace max="-2" attributes="0"/>
<Group type="103" groupAlignment="0" max="-2" attributes="0">
<Component id="textoMensaje" alignment="0" max="32767" attributes="0"/>
<Component id="textoPIN" min="-2" pref="157" max="-2" attributes="0"/>
<Component id="textoIntentos" pref="159" max="32767" attributes="0"/>
<Component id="jLabel1" alignment="0" min="-2" pref="141" max="-2" attributes="0"/>
</Group>
</Group>
<Group type="102" alignment="0" attributes="0">
<EmptySpace min="-2" pref="24" max="-2" attributes="0"/>
<Group type="102" alignment="1" attributes="0">
<EmptySpace max="32767" attributes="0"/>
<Group type="103" groupAlignment="0" attributes="0">
<Group type="102" attributes="0">
<EmptySpace min="-2" pref="110" max="-2" attributes="0"/>
<Component id="aceptarBoton" min="-2" pref="128" max="-2" attributes="0"/>
</Group>
<Group type="103" alignment="0" groupAlignment="1" attributes="0">
<Group type="102" alignment="0" attributes="0">
<Component id="botonCajeroNormal" min="-2" max="-2" attributes="0"/>
<EmptySpace min="-2" pref="35" max="-2" attributes="0"/>
<Component id="botonCambiarPin" min="-2" max="-2" attributes="0"/>
<EmptySpace type="separate" max="-2" attributes="0"/>
<Component id="botonTransaccion" min="-2" max="-2" attributes="0"/>
</Group>
<Component id="SeparacionLabel" min="-2" pref="427" max="-2" attributes="0"/>
<Component id="jLabel2" alignment="1" min="-2" max="-2" attributes="0"/>
<Component id="jLabel4" alignment="1" min="-2" max="-2" attributes="0"/>
</Group>
<EmptySpace type="unrelated" max="-2" attributes="0"/>
</Group>
</Group>
<Group type="103" groupAlignment="0" attributes="0">
<Component id="jLabel1" min="-2" pref="141" max="-2" attributes="0"/>
<Group type="103" groupAlignment="0" max="-2" attributes="0">
<Component id="textoPIN" alignment="1" pref="289" max="32767" attributes="0"/>
<Component id="textoIntentos" alignment="1" max="32767" attributes="0"/>
<Component id="textoMensaje" max="32767" attributes="0"/>
</Group>
<EmptySpace pref="25" max="32767" attributes="0"/>
</Group>
<Group type="102" alignment="1" attributes="0">
<EmptySpace min="0" pref="0" max="32767" attributes="0"/>
<Component id="opcionLabel" min="-2" pref="185" max="-2" attributes="0"/>
<EmptySpace min="-2" pref="141" max="-2" attributes="0"/>
<EmptySpace min="-2" pref="20" max="-2" attributes="0"/>
</Group>
</Group>
</DimensionLayout>
<DimensionLayout dim="1">
<Group type="103" groupAlignment="0" attributes="0">
<Group type="102" alignment="0" attributes="0">
<EmptySpace min="-2" pref="23" max="-2" attributes="0"/>
<EmptySpace min="-2" pref="39" max="-2" attributes="0"/>
<Component id="jLabel1" min="-2" pref="26" max="-2" attributes="0"/>
<EmptySpace type="separate" max="-2" attributes="0"/>
<EmptySpace min="-2" pref="26" max="-2" attributes="0"/>
<Group type="103" groupAlignment="3" attributes="0">
<Component id="textoPIN" alignment="3" min="-2" max="-2" attributes="0"/>
<Component id="jLabel2" alignment="3" min="-2" max="-2" attributes="0"/>
</Group>
<EmptySpace type="unrelated" max="-2" attributes="0"/>
<Group type="103" groupAlignment="0" attributes="0">
<Component id="jLabel3" min="-2" max="-2" attributes="0"/>
<Component id="textoIntentos" min="-2" max="-2" attributes="0"/>
</Group>
<EmptySpace type="unrelated" max="-2" attributes="0"/>
<EmptySpace type="separate" max="-2" attributes="0"/>
<Group type="103" groupAlignment="3" attributes="0">
<Component id="jLabel4" alignment="3" min="-2" pref="22" max="-2" attributes="0"/>
<Component id="textoMensaje" alignment="3" min="-2" max="-2" attributes="0"/>
<Component id="textoIntentos" alignment="3" min="-2" max="-2" attributes="0"/>
<Component id="jLabel3" alignment="3" min="-2" max="-2" attributes="0"/>
</Group>
<EmptySpace min="-2" pref="35" max="-2" attributes="0"/>
<Component id="aceptarBoton" min="-2" max="-2" attributes="0"/>
<EmptySpace min="-2" pref="7" max="-2" attributes="0"/>
<Component id="SeparacionLabel" min="-2" max="-2" attributes="0"/>
<EmptySpace min="-2" pref="5" max="-2" attributes="0"/>
<Component id="opcionLabel" min="-2" max="-2" attributes="0"/>
<EmptySpace type="separate" max="-2" attributes="0"/>
<Group type="103" groupAlignment="3" attributes="0">
<Component id="botonCambiarPin" alignment="3" min="-2" max="-2" attributes="0"/>
<Component id="botonCajeroNormal" alignment="3" min="-2" max="-2" attributes="0"/>
<Component id="botonTransaccion" alignment="3" min="-2" max="-2" attributes="0"/>
<Component id="textoMensaje" alignment="3" min="-2" max="-2" attributes="0"/>
<Component id="jLabel4" alignment="3" min="-2" pref="22" max="-2" attributes="0"/>
</Group>
<EmptySpace pref="43" max="32767" attributes="0"/>
<EmptySpace type="separate" max="-2" attributes="0"/>
<Component id="aceptarBoton" min="-2" max="-2" attributes="0"/>
<EmptySpace pref="26" max="32767" attributes="0"/>
</Group>
</Group>
</DimensionLayout>
......@@ -112,6 +96,8 @@
<Property name="text" type="java.lang.String" value="Introduzca el PIN"/>
</Properties>
</Component>
<Component class="javax.swing.JTextField" name="textoPIN">
</Component>
<Component class="javax.swing.JLabel" name="jLabel2">
<Properties>
<Property name="text" type="java.lang.String" value="PIN:"/>
......@@ -122,17 +108,15 @@
<Property name="text" type="java.lang.String" value="Intentos restantes:"/>
</Properties>
</Component>
<Component class="javax.swing.JTextField" name="textoIntentos">
</Component>
<Component class="javax.swing.JTextField" name="textoMensaje">
</Component>
<Component class="javax.swing.JLabel" name="jLabel4">
<Properties>
<Property name="text" type="java.lang.String" value="Mensaje:"/>
</Properties>
</Component>
<Component class="javax.swing.JTextField" name="textoPIN">
</Component>
<Component class="javax.swing.JTextField" name="textoMensaje">
</Component>
<Component class="javax.swing.JTextField" name="textoIntentos">
</Component>
<Component class="javax.swing.JButton" name="aceptarBoton">
<Properties>
<Property name="text" type="java.lang.String" value="Aceptar"/>
......@@ -141,6 +125,63 @@
<EventHandler event="actionPerformed" listener="java.awt.event.ActionListener" parameters="java.awt.event.ActionEvent" handler="aceptarBotonActionPerformed"/>
</Events>
</Component>
</SubComponents>
</Container>
<Container class="javax.swing.JPanel" name="jPanel2">
<Layout>
<DimensionLayout dim="0">
<Group type="103" groupAlignment="0" attributes="0">
<Group type="102" attributes="0">
<EmptySpace max="32767" attributes="0"/>
<Group type="103" groupAlignment="0" attributes="0">
<Group type="102" alignment="1" attributes="0">
<Component id="botonCajeroNormal" min="-2" max="-2" attributes="0"/>
<EmptySpace type="separate" max="-2" attributes="0"/>
<Component id="botonCambiarPin" min="-2" max="-2" attributes="0"/>
<EmptySpace type="separate" max="-2" attributes="0"/>
<Component id="botonTransaccion" min="-2" max="-2" attributes="0"/>
<EmptySpace min="-2" pref="13" max="-2" attributes="0"/>
</Group>
<Group type="102" alignment="1" attributes="0">
<Component id="opcionLabel" min="-2" pref="185" max="-2" attributes="0"/>
<EmptySpace min="-2" pref="119" max="-2" attributes="0"/>
</Group>
<Group type="102" alignment="1" attributes="0">
<Component id="SeparacionLabel" min="-2" pref="427" max="-2" attributes="0"/>
<EmptySpace max="-2" attributes="0"/>
</Group>
</Group>
</Group>
</Group>
</DimensionLayout>
<DimensionLayout dim="1">
<Group type="103" groupAlignment="0" attributes="0">
<Group type="102" alignment="1" attributes="0">
<EmptySpace max="-2" attributes="0"/>
<Component id="SeparacionLabel" min="-2" max="-2" attributes="0"/>
<EmptySpace pref="54" max="32767" attributes="0"/>
<Component id="opcionLabel" min="-2" max="-2" attributes="0"/>
<EmptySpace min="-2" pref="35" max="-2" attributes="0"/>
<Group type="103" groupAlignment="3" attributes="0">
<Component id="botonTransaccion" alignment="3" min="-2" max="-2" attributes="0"/>
<Component id="botonCambiarPin" alignment="3" min="-2" max="-2" attributes="0"/>
<Component id="botonCajeroNormal" alignment="3" min="-2" max="-2" attributes="0"/>
</Group>
<EmptySpace min="-2" pref="55" max="-2" attributes="0"/>
</Group>
</Group>
</DimensionLayout>
</Layout>
<SubComponents>
<Component class="javax.swing.JButton" name="botonCambiarPin">
<Properties>
<Property name="text" type="java.lang.String" value="Cambiar Pin"/>
</Properties>
<Events>
<EventHandler event="actionPerformed" listener="java.awt.event.ActionListener" parameters="java.awt.event.ActionEvent" handler="botonCambiarPinActionPerformed"/>
</Events>
</Component>
<Component class="javax.swing.JButton" name="botonTransaccion">
<Properties>
<Property name="text" type="java.lang.String" value="Hacer una transaccion"/>
......@@ -165,18 +206,12 @@
<Property name="text" type="java.lang.String" value="Elige una opcion"/>
</Properties>
</Component>
<Component class="javax.swing.JButton" name="botonCambiarPin">
<Properties>
<Property name="text" type="java.lang.String" value="Cambiar Pin"/>
</Properties>
<Events>
<EventHandler event="actionPerformed" listener="java.awt.event.ActionListener" parameters="java.awt.event.ActionEvent" handler="botonCambiarPinActionPerformed"/>
</Events>
</Component>
<Component class="javax.swing.JLabel" name="SeparacionLabel">
<Properties>
<Property name="text" type="java.lang.String" value="-------------------------------------------------------------------------------------"/>
</Properties>
</Component>
</SubComponents>
</Container>
</SubComponents>
</Form>
......@@ -84,21 +84,24 @@ public class VistaLogin extends javax.swing.JFrame {
// <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
private void initComponents() {
jPanel1 = new javax.swing.JPanel();
jLabel1 = new javax.swing.JLabel();
textoPIN = new javax.swing.JTextField();
jLabel2 = new javax.swing.JLabel();
jLabel3 = new javax.swing.JLabel();
jLabel4 = new javax.swing.JLabel();
textoPIN = new javax.swing.JTextField();
textoMensaje = new javax.swing.JTextField();
textoIntentos = new javax.swing.JTextField();
textoMensaje = new javax.swing.JTextField();
jLabel4 = new javax.swing.JLabel();
aceptarBoton = new javax.swing.JButton();
jPanel2 = new javax.swing.JPanel();
botonCambiarPin = new javax.swing.JButton();
botonTransaccion = new javax.swing.JButton();
botonCajeroNormal = new javax.swing.JButton();
opcionLabel = new javax.swing.JLabel();
botonCambiarPin = new javax.swing.JButton();
SeparacionLabel = new javax.swing.JLabel();
setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);
getContentPane().setLayout(new javax.swing.BoxLayout(getContentPane(), javax.swing.BoxLayout.Y_AXIS));
jLabel1.setText("Introduzca el PIN");
......@@ -115,6 +118,65 @@ public class VistaLogin extends javax.swing.JFrame {
}
});
javax.swing.GroupLayout jPanel1Layout = new javax.swing.GroupLayout(jPanel1);
jPanel1.setLayout(jPanel1Layout);
jPanel1Layout.setHorizontalGroup(
jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(jPanel1Layout.createSequentialGroup()
.addGap(155, 155, 155)
.addComponent(aceptarBoton, javax.swing.GroupLayout.PREFERRED_SIZE, 128, javax.swing.GroupLayout.PREFERRED_SIZE)
.addGap(0, 156, Short.MAX_VALUE))
.addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel1Layout.createSequentialGroup()
.addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(jPanel1Layout.createSequentialGroup()
.addGap(0, 0, Short.MAX_VALUE)
.addComponent(jLabel3)
.addGap(4, 4, 4))
.addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel1Layout.createSequentialGroup()
.addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
.addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addComponent(jLabel2, javax.swing.GroupLayout.Alignment.TRAILING)
.addComponent(jLabel4, javax.swing.GroupLayout.Alignment.TRAILING))
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)))
.addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addComponent(jLabel1, javax.swing.GroupLayout.PREFERRED_SIZE, 141, javax.swing.GroupLayout.PREFERRED_SIZE)
.addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
.addComponent(textoPIN, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.DEFAULT_SIZE, 289, Short.MAX_VALUE)
.addComponent(textoIntentos, javax.swing.GroupLayout.Alignment.TRAILING)
.addComponent(textoMensaje)))
.addGap(20, 20, 20))
);
jPanel1Layout.setVerticalGroup(
jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(jPanel1Layout.createSequentialGroup()
.addGap(39, 39, 39)
.addComponent(jLabel1, javax.swing.GroupLayout.PREFERRED_SIZE, 26, javax.swing.GroupLayout.PREFERRED_SIZE)
.addGap(26, 26, 26)
.addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
.addComponent(textoPIN, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
.addComponent(jLabel2))
.addGap(18, 18, 18)
.addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
.addComponent(textoIntentos, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
.addComponent(jLabel3))
.addGap(18, 18, 18)
.addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
.addComponent(textoMensaje, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
.addComponent(jLabel4, javax.swing.GroupLayout.PREFERRED_SIZE, 22, javax.swing.GroupLayout.PREFERRED_SIZE))
.addGap(18, 18, 18)
.addComponent(aceptarBoton)
.addContainerGap(26, Short.MAX_VALUE))
);
getContentPane().add(jPanel1);
botonCambiarPin.setText("Cambiar Pin");
botonCambiarPin.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
botonCambiarPinActionPerformed(evt);
}
});
botonTransaccion.setText("Hacer una transaccion");
botonTransaccion.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
......@@ -132,104 +194,66 @@ public class VistaLogin extends javax.swing.JFrame {
opcionLabel.setFont(new java.awt.Font("Segoe UI", 0, 18)); // NOI18N
opcionLabel.setText("Elige una opcion");
botonCambiarPin.setText("Cambiar Pin");
botonCambiarPin.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
botonCambiarPinActionPerformed(evt);
}
});
SeparacionLabel.setText("-------------------------------------------------------------------------------------");
javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());
getContentPane().setLayout(layout);
layout.setHorizontalGroup(
layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(layout.createSequentialGroup()
.addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(layout.createSequentialGroup()
.addGap(32, 32, 32)
.addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
.addComponent(jLabel3)
.addComponent(jLabel4)
.addComponent(jLabel2))
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
.addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
.addComponent(textoMensaje)
.addComponent(textoPIN, javax.swing.GroupLayout.PREFERRED_SIZE, 157, javax.swing.GroupLayout.PREFERRED_SIZE)
.addComponent(textoIntentos, javax.swing.GroupLayout.DEFAULT_SIZE, 159, Short.MAX_VALUE)
.addComponent(jLabel1, javax.swing.GroupLayout.PREFERRED_SIZE, 141, javax.swing.GroupLayout.PREFERRED_SIZE)))
.addGroup(layout.createSequentialGroup()
.addGap(24, 24, 24)
.addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(layout.createSequentialGroup()
.addGap(110, 110, 110)
.addComponent(aceptarBoton, javax.swing.GroupLayout.PREFERRED_SIZE, 128, javax.swing.GroupLayout.PREFERRED_SIZE))
.addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
.addGroup(javax.swing.GroupLayout.Alignment.LEADING, layout.createSequentialGroup()
javax.swing.GroupLayout jPanel2Layout = new javax.swing.GroupLayout(jPanel2);
jPanel2.setLayout(jPanel2Layout);
jPanel2Layout.setHorizontalGroup(
jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(jPanel2Layout.createSequentialGroup()
.addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
.addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel2Layout.createSequentialGroup()
.addComponent(botonCajeroNormal)
.addGap(35, 35, 35)
.addGap(18, 18, 18)
.addComponent(botonCambiarPin)
.addGap(18, 18, 18)
.addComponent(botonTransaccion))
.addComponent(SeparacionLabel, javax.swing.GroupLayout.PREFERRED_SIZE, 427, javax.swing.GroupLayout.PREFERRED_SIZE)))))
.addContainerGap(25, Short.MAX_VALUE))
.addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup()
.addGap(0, 0, Short.MAX_VALUE)
.addComponent(botonTransaccion)
.addGap(13, 13, 13))
.addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel2Layout.createSequentialGroup()
.addComponent(opcionLabel, javax.swing.GroupLayout.PREFERRED_SIZE, 185, javax.swing.GroupLayout.PREFERRED_SIZE)
.addGap(141, 141, 141))
.addGap(119, 119, 119))
.addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel2Layout.createSequentialGroup()
.addComponent(SeparacionLabel, javax.swing.GroupLayout.PREFERRED_SIZE, 427, javax.swing.GroupLayout.PREFERRED_SIZE)
.addContainerGap())))
);
layout.setVerticalGroup(
layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(layout.createSequentialGroup()
.addGap(23, 23, 23)
.addComponent(jLabel1, javax.swing.GroupLayout.PREFERRED_SIZE, 26, javax.swing.GroupLayout.PREFERRED_SIZE)
.addGap(18, 18, 18)
.addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
.addComponent(textoPIN, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
.addComponent(jLabel2))
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
.addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addComponent(jLabel3)
.addComponent(textoIntentos, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
.addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
.addComponent(jLabel4, javax.swing.GroupLayout.PREFERRED_SIZE, 22, javax.swing.GroupLayout.PREFERRED_SIZE)
.addComponent(textoMensaje, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
.addGap(35, 35, 35)
.addComponent(aceptarBoton)
.addGap(7, 7, 7)
jPanel2Layout.setVerticalGroup(
jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel2Layout.createSequentialGroup()
.addContainerGap()
.addComponent(SeparacionLabel)
.addGap(5, 5, 5)
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 54, Short.MAX_VALUE)
.addComponent(opcionLabel)
.addGap(18, 18, 18)
.addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
.addGap(35, 35, 35)
.addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
.addComponent(botonTransaccion)
.addComponent(botonCambiarPin)
.addComponent(botonCajeroNormal)
.addComponent(botonTransaccion))
.addContainerGap(43, Short.MAX_VALUE))
.addComponent(botonCajeroNormal))
.addGap(55, 55, 55))
);
getContentPane().add(jPanel2);
pack();
}// </editor-fold>//GEN-END:initComponents
private void botonCajeroNormalActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_botonCajeroNormalActionPerformed
Main.getStateMachine().abrirVistaCajero(cuenta);
}//GEN-LAST:event_botonCajeroNormalActionPerformed
private void botonTransaccionActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_botonTransaccionActionPerformed
Main.getStateMachine().abrirVistaTransacciones(cuenta); //////////////////////
}//GEN-LAST:event_botonTransaccionActionPerformed
private void botonCambiarPinActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_botonCambiarPinActionPerformed
Main.getStateMachine().abrirVistaCambiarPin(cuenta);
}//GEN-LAST:event_botonCambiarPinActionPerformed
private void botonCajeroNormalActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_botonCajeroNormalActionPerformed
Main.getStateMachine().abrirVistaCajero(cuenta);
}//GEN-LAST:event_botonCajeroNormalActionPerformed
private void aceptarBotonActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_aceptarBotonActionPerformed
controlador.aceptarPIN();
this.cuenta = controlador.devolverCuenta();
}//GEN-LAST:event_aceptarBotonActionPerformed
private void botonCambiarPinActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_botonCambiarPinActionPerformed
Main.getStateMachine().abrirVistaCambiarPin(cuenta);
}//GEN-LAST:event_botonCambiarPinActionPerformed
// Variables declaration - do not modify//GEN-BEGIN:variables
private javax.swing.JLabel SeparacionLabel;
private javax.swing.JButton aceptarBoton;
......@@ -240,6 +264,8 @@ public class VistaLogin extends javax.swing.JFrame {
private javax.swing.JLabel jLabel2;
private javax.swing.JLabel jLabel3;
private javax.swing.JLabel jLabel4;
private javax.swing.JPanel jPanel1;
private javax.swing.JPanel jPanel2;
private javax.swing.JLabel opcionLabel;
private javax.swing.JTextField textoIntentos;
private javax.swing.JTextField textoMensaje;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment