public void actionPerformed( ActionEvent e )
    {
        Object[] possibilities = {"Tarifa plena", "Cupon de descuento"};
        String alquilerRta = (String)JOptionPane.showInputDialog(principal," Selccionar forma de alquiler: ","Alquiler", JOptionPane.PLAIN_MESSAGE,null, possibilities,"Tarifa plena");
        if(alquilerRta != null)
        if( ALQUILAR.equals( e.getActionCommand( ) ) )
        {
            if( numCarro == 1 )
            {
                int rta = panelTexto.darHorasAlquilar( );
                if( rta != -1 )
                {
                    if(alquilerRta.equals( "Tarifa plena" ))
                    principal.alquilarCarro1( panelTexto.darHorasAlquilar( ) );
                    else
                    principal.alquilarCuponCarro1( panelTexto.darHorasAlquilar( ) );  
                }
            }
            else if( numCarro == 2 )
            {
                int rta = panelTexto.darHorasAlquilar( );
                if( rta != -1 )
                {
                    if(alquilerRta.equals( "Tarifa plena" ))
                        principal.alquilarCarro2( panelTexto.darHorasAlquilar( ) );
                        else
                        principal.alquilarCuponCarro2( panelTexto.darHorasAlquilar( ) );
                }
            }
            else if( numCarro == 3 )
            {
                int rta = panelTexto.darHorasAlquilar( );
                if( rta != -1 )
                {
                    if(alquilerRta.equals( "Tarifa plena" ))
                        principal.alquilarCarro3( panelTexto.darHorasAlquilar( ) );
                        else
                        principal.alquilarCuponCarro3( panelTexto.darHorasAlquilar( ) );
                }
            }
            actualizar();
        }
    }