Class ConversorMoneda

All Implemented Interfaces:
ImageObserver, MenuContainer, Serializable, Accessible, RootPaneContainer, WindowConstants

public class ConversorMoneda extends JFrame
GUI Currency converter class
See Also:
  • Constructor Details

    • ConversorMoneda

      public ConversorMoneda()
      Creates a JMenuBar with currency converter options
  • Method Details

    • montoConversion

      public static Double montoConversion(String orig, String dest)
      Handles user input for amount to convert. Validates, converts and return value.
      Parameters:
      orig - String origin currency
      dest - String target currency
      Returns:
      Double amount to convert
    • resultadoConversion

      public static void resultadoConversion(Moneda orig, Moneda dest)
      Shows result of currency conversion
      Parameters:
      orig - Moneda origin currency
      dest - Moneda target currency
    • terminarApp

      public static void terminarApp()
      Terminates application
    • continuar

      public static void continuar()
      Asks the user if they will continue using the application, if "YES" return to 'ConversorGui' menu, else, ends application.
    • main

      public static void main(String[] args)
      Parameters:
      args - Not used