progress on GUI, images moved to src for exporting

This commit is contained in:
devfzn 2023-08-04 19:24:04 -04:00
parent 743c817ffd
commit a06934b3ae
Signed by: devfzn
GPG Key ID: E070ECF4A754FDB1
68 changed files with 810 additions and 249 deletions

1
.gitignore vendored
View File

@ -1,3 +1,4 @@
.settings/
*.7z
bin/
old/

View File

@ -11,42 +11,42 @@ Se solicita crear un conversor de divisas utilizando el lenguaje Java
<summary><b><font size="+2">Requerimientos de la aplicación</font></b></summary>
- [x] El convertidor de moneda debe:
- [x] Convertir de la moneda de tu país a Dolar
- [x] Convertir de la moneda de tu país a Euros
- [x] Convertir de la moneda de tu país a Libras Esterlinas
- [x] Convertir de la moneda de tu país a Yen Japonés
- [x] Convertir de la moneda de tu país a Won sul-coreano
- [x] Convertir de Dolar a la moneda de tu país
- [x] Convertir de Euros a la moneda de tu país
- [x] Convertir de Libras Esterlinas a la moneda de tu país
- [x] Convertir de Yen Japonés a la moneda de tu país
- [x] Convertir de Won sul-coreano a la moneda de tu país
- [x] Convertir de la moneda de tu país a **Dolar**
- [x] Convertir de la moneda de tu país a **Euros**
- [x] Convertir de la moneda de tu país a **Libras Esterlinas**
- [x] Convertir de la moneda de tu país a **Yen Japonés**
- [x] Convertir de la moneda de tu país a **Won sul-coreano**
- [x] Convertir de **Dolar** a la moneda de tu país
- [x] Convertir de **Euros** a la moneda de tu país
- [x] Convertir de **Libras Esterlinas** a la moneda de tu país
- [x] Convertir de **Yen Japonés** a la moneda de tu país
- [x] Convertir de **Won sul-coreano** a la moneda de tu país
- [ ] **Extra:** Añadir otros tipos de conversiones, ejm. temperatura
- [ ] **Menu princiapl**. Cuadro de dialogo debe permitir al usuario escoger entre
- [x] **Menu principal**. Cuadro de dialogo debe permitir al usuario escoger entre
las opciones de conversión, según los requisitos solo es necesario hacer un
conversor de moneda pero en caso que desees implementar otras funciones en la
foto anexada podemos ver una opción de menú con otras funciones.
- [ ] Utilice la clase **JOptionPane** de la biblioteca Javax
- [ ] Utilice el método **showInputDialog** como un objeto para presentar más de
conversor de moneda, en caso que desees implementar otras funciones añadir una
opción de menú con otras funciones.
- [x] Utilice la clase **JOptionPane** de la biblioteca Javax
- [x] Utilice el método **showInputDialog** como un objeto para presentar más de
una opción
- [x] **Opciones de monedas**. Cuadro de dialogo debe permitir al usuario escoger
entre las diferentes monedas a la que desea convertir su dinero.
- [x] Utilice la clase **JOptionPane** de la biblioteca Javax
- [x] Utilice el método **showInputDialog** como un objeto para presentar
más de una opción para la conversión
- [ ] El **cuadro de dialogo para entrada de usuario** debe permitir al usuario
- [x] El **cuadro de dialogo para entrada de usuario** debe permitir al usuario
ingresar el valor o la cantidad de dinero que desea convertir a la moneda escogida
anteriormente, por ejemplo: el usuario ingresará la cantidad de Pesos Colombianos
que quiere convertir a Dólares.
Este input debe estar validado y no debe aceptar otro tipo de caracteres que no
sean del tipo numéricos.
Utilice el método **showInputDialog** para que el usuario inserte un valor.
- [ ] Si el usuario introduce letras o caracteres especiales y presiona ok **debe
- [x] Si el usuario introduce letras o caracteres especiales y presiona ok **debe
ser mostrado un mensaje apuntando que el valor no es válido**.
Utilice el método **showMessageDialog** para validar la entrada para que no se
acepten caracteres no numéricos.
- [ ] Mostrar al usuario el valor de la conversión realizada.
- [ ] Utilice el método **showMessageDialog** para mostrar el valor de la conversión.
- [x] Mostrar al usuario el valor de la conversión realizada.
- [x] Utilice el método **showMessageDialog** para mostrar el valor de la conversión.
- [ ] Utilice el método **showConfirmDialog** para preguntar al usuario si desea
continuar usando el programa presentando las siguientes opciones:
- [ ] **Yes**: Debe llevar nuevamente a nuestro usuario a menu principal para
@ -64,8 +64,6 @@ temperatura, distancia, velocidad, entre otros.
</details>
</br>
<details>
<summary><b><font size="+2">Recursos</font></b></summary>
@ -103,8 +101,8 @@ Doc
## Conversor de monedas GUI
<!--
[comment]: # ([<img src="./media/conv_gui_menu.png" width="400"/>](./media/conv_gui_menu.png))
[comment]: <> ([<img src="./media/conv_gui_ejm.png" width="400"/>](./media/conv_gui_ejm.png))
([<img src="./media/conv_gui_menu.png" width="400"/>](./media/conv_gui_menu.png))
([<img src="./media/conv_gui_ejm.png" width="400"/>](./media/conv_gui_ejm.png))
-->
----

View File

@ -1,11 +1,11 @@
<!DOCTYPE HTML>
<html lang="en">
<head>
<!-- Generated by javadoc (17) on Mon Jul 31 00:32:02 CLT 2023 -->
<!-- Generated by javadoc (17) on Fri Aug 04 19:20:41 CLT 2023 -->
<title>All Classes and Interfaces</title>
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta name="dc.created" content="2023-07-31">
<meta name="dc.created" content="2023-08-04">
<meta name="description" content="class index">
<meta name="generator" content="javadoc/AllClassesIndexWriter">
<link rel="stylesheet" type="text/css" href="stylesheet.css" title="Style">
@ -75,21 +75,25 @@ loadScripts(document, 'script');</script>
<div class="col-last odd-row-color all-classes-table all-classes-table-tab2">
<div class="block">Main class for <b>GUI</b> converter application</div>
</div>
<div class="col-first even-row-color all-classes-table all-classes-table-tab2"><a href="conversor_alura_one/cl/conversor/vista/tui/ConversorTui.html" title="class in cl.conversor.vista.tui">ConversorTui</a></div>
<div class="col-first even-row-color all-classes-table all-classes-table-tab2"><a href="conversor_alura_one/cl/conversor/vista/gui/ConversorMoneda.html" title="class in cl.conversor.vista.gui">ConversorMoneda</a></div>
<div class="col-last even-row-color all-classes-table all-classes-table-tab2">
<div class="block">Currency converter class</div>
</div>
<div class="col-first odd-row-color all-classes-table all-classes-table-tab2"><a href="conversor_alura_one/cl/conversor/vista/tui/ConversorTui.html" title="class in cl.conversor.vista.tui">ConversorTui</a></div>
<div class="col-last odd-row-color all-classes-table all-classes-table-tab2">
<div class="block">Main class for <b>TUI</b> converter application</div>
</div>
<div class="col-first odd-row-color all-classes-table all-classes-table-tab1"><a href="conversor_alura_one/cl/conversor/vista/tui/LimpiarConsola.html" title="interface in cl.conversor.vista.tui">LimpiarConsola</a></div>
<div class="col-last odd-row-color all-classes-table all-classes-table-tab1">
<div class="col-first even-row-color all-classes-table all-classes-table-tab1"><a href="conversor_alura_one/cl/conversor/vista/tui/LimpiarConsola.html" title="interface in cl.conversor.vista.tui">LimpiarConsola</a></div>
<div class="col-last even-row-color all-classes-table all-classes-table-tab1">
<div class="block">Interface to clear OS terminal screen, on case of IDE Console
it just prints 80 new lines.</div>
</div>
<div class="col-first even-row-color all-classes-table all-classes-table-tab2"><a href="conversor_alura_one/cl/conversor/vista/tui/MenuPrincipal.html" title="class in cl.conversor.vista.tui">MenuPrincipal</a></div>
<div class="col-last even-row-color all-classes-table all-classes-table-tab2">
<div class="col-first odd-row-color all-classes-table all-classes-table-tab2"><a href="conversor_alura_one/cl/conversor/vista/tui/MenuPrincipal.html" title="class in cl.conversor.vista.tui">MenuPrincipal</a></div>
<div class="col-last odd-row-color all-classes-table all-classes-table-tab2">
<div class="block">Class to create formatted Strings</div>
</div>
<div class="col-first odd-row-color all-classes-table all-classes-table-tab3"><a href="conversor_alura_one/cl/conversor/moneda/Moneda.html" title="enum class in cl.conversor.moneda">Moneda</a></div>
<div class="col-last odd-row-color all-classes-table all-classes-table-tab3">
<div class="col-first even-row-color all-classes-table all-classes-table-tab3"><a href="conversor_alura_one/cl/conversor/moneda/Moneda.html" title="enum class in cl.conversor.moneda">Moneda</a></div>
<div class="col-last even-row-color all-classes-table all-classes-table-tab3">
<div class="block">Moneda currency representation `NAME (symbol, rate)`</div>
</div>
</div>

View File

@ -1,11 +1,11 @@
<!DOCTYPE HTML>
<html lang="en">
<head>
<!-- Generated by javadoc (17) on Mon Jul 31 00:32:02 CLT 2023 -->
<!-- Generated by javadoc (17) on Fri Aug 04 19:20:41 CLT 2023 -->
<title>All Packages</title>
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta name="dc.created" content="2023-07-31">
<meta name="dc.created" content="2023-08-04">
<meta name="description" content="package index">
<meta name="generator" content="javadoc/AllPackagesIndexWriter">
<link rel="stylesheet" type="text/css" href="stylesheet.css" title="Style">

View File

@ -1,11 +1,11 @@
<!DOCTYPE HTML>
<html lang="en">
<head>
<!-- Generated by javadoc (17) on Mon Jul 31 00:32:02 CLT 2023 -->
<!-- Generated by javadoc (17) on Fri Aug 04 19:20:41 CLT 2023 -->
<title>Conversor</title>
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta name="dc.created" content="2023-07-31">
<meta name="dc.created" content="2023-08-04">
<meta name="description" content="declaration: module: conversor_alura_one, package: cl.conversor.app, class: Conversor">
<meta name="generator" content="javadoc/ClassWriterImpl">
<link rel="stylesheet" type="text/css" href="../../../../stylesheet.css" title="Style">

View File

@ -1,11 +1,11 @@
<!DOCTYPE HTML>
<html lang="en">
<head>
<!-- Generated by javadoc (17) on Mon Jul 31 00:32:02 CLT 2023 -->
<!-- Generated by javadoc (17) on Fri Aug 04 19:20:41 CLT 2023 -->
<title>Uses of Class cl.conversor.app.Conversor</title>
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta name="dc.created" content="2023-07-31">
<meta name="dc.created" content="2023-08-04">
<meta name="description" content="use: module: conversor_alura_one, package: cl.conversor.app, class: Conversor">
<meta name="generator" content="javadoc/ClassUseWriter">
<link rel="stylesheet" type="text/css" href="../../../../../stylesheet.css" title="Style">

View File

@ -1,11 +1,11 @@
<!DOCTYPE HTML>
<html lang="en">
<head>
<!-- Generated by javadoc (17) on Mon Jul 31 00:32:02 CLT 2023 -->
<!-- Generated by javadoc (17) on Fri Aug 04 19:20:41 CLT 2023 -->
<title>cl.conversor.app</title>
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta name="dc.created" content="2023-07-31">
<meta name="dc.created" content="2023-08-04">
<meta name="description" content="declaration: module: conversor_alura_one, package: cl.conversor.app">
<meta name="generator" content="javadoc/PackageWriterImpl">
<link rel="stylesheet" type="text/css" href="../../../../stylesheet.css" title="Style">

View File

@ -1,11 +1,11 @@
<!DOCTYPE HTML>
<html lang="en">
<head>
<!-- Generated by javadoc (17) on Mon Jul 31 00:32:02 CLT 2023 -->
<!-- Generated by javadoc (17) on Fri Aug 04 19:20:41 CLT 2023 -->
<title>cl.conversor.app Class Hierarchy</title>
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta name="dc.created" content="2023-07-31">
<meta name="dc.created" content="2023-08-04">
<meta name="description" content="tree: module: conversor_alura_one, package: cl.conversor.app">
<meta name="generator" content="javadoc/PackageTreeWriter">
<link rel="stylesheet" type="text/css" href="../../../../stylesheet.css" title="Style">

View File

@ -1,11 +1,11 @@
<!DOCTYPE HTML>
<html lang="en">
<head>
<!-- Generated by javadoc (17) on Mon Jul 31 00:32:02 CLT 2023 -->
<!-- Generated by javadoc (17) on Fri Aug 04 19:20:41 CLT 2023 -->
<title>Uses of Package cl.conversor.app</title>
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta name="dc.created" content="2023-07-31">
<meta name="dc.created" content="2023-08-04">
<meta name="description" content="use: module: conversor_alura_one, package: cl.conversor.app">
<meta name="generator" content="javadoc/PackageUseWriter">
<link rel="stylesheet" type="text/css" href="../../../../stylesheet.css" title="Style">

View File

@ -1,11 +1,11 @@
<!DOCTYPE HTML>
<html lang="en">
<head>
<!-- Generated by javadoc (17) on Mon Jul 31 00:32:02 CLT 2023 -->
<!-- Generated by javadoc (17) on Fri Aug 04 19:20:41 CLT 2023 -->
<title>Moneda</title>
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta name="dc.created" content="2023-07-31">
<meta name="dc.created" content="2023-08-04">
<meta name="description" content="declaration: module: conversor_alura_one, package: cl.conversor.moneda, enum: Moneda">
<meta name="generator" content="javadoc/ClassWriterImpl">
<link rel="stylesheet" type="text/css" href="../../../../stylesheet.css" title="Style">

View File

@ -1,11 +1,11 @@
<!DOCTYPE HTML>
<html lang="en">
<head>
<!-- Generated by javadoc (17) on Mon Jul 31 00:32:02 CLT 2023 -->
<!-- Generated by javadoc (17) on Fri Aug 04 19:20:41 CLT 2023 -->
<title>Uses of Enum Class cl.conversor.moneda.Moneda</title>
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta name="dc.created" content="2023-07-31">
<meta name="dc.created" content="2023-08-04">
<meta name="description" content="use: module: conversor_alura_one, package: cl.conversor.moneda, enum: Moneda">
<meta name="generator" content="javadoc/ClassUseWriter">
<link rel="stylesheet" type="text/css" href="../../../../../stylesheet.css" title="Style">
@ -59,8 +59,10 @@ loadScripts(document, 'script');</script>
<div class="col-last even-row-color">&nbsp;</div>
<div class="col-first odd-row-color"><a href="#cl.conversor.vista.cli">cl.conversor.vista.cli</a></div>
<div class="col-last odd-row-color">&nbsp;</div>
<div class="col-first even-row-color"><a href="#cl.conversor.vista.tui">cl.conversor.vista.tui</a></div>
<div class="col-first even-row-color"><a href="#cl.conversor.vista.gui">cl.conversor.vista.gui</a></div>
<div class="col-last even-row-color">&nbsp;</div>
<div class="col-first odd-row-color"><a href="#cl.conversor.vista.tui">cl.conversor.vista.tui</a></div>
<div class="col-last odd-row-color">&nbsp;</div>
</div>
<section class="class-uses">
<ul class="block-list">
@ -115,6 +117,23 @@ the order they are declared.</div>
</section>
</li>
<li>
<section class="detail" id="cl.conversor.vista.gui">
<h2>Uses of <a href="../Moneda.html" title="enum class in cl.conversor.moneda">Moneda</a> in <a href="../../vista/gui/package-summary.html">cl.conversor.vista.gui</a></h2>
<div class="caption"><span>Methods in <a href="../../vista/gui/package-summary.html">cl.conversor.vista.gui</a> with parameters of type <a href="../Moneda.html" title="enum class in cl.conversor.moneda">Moneda</a></span></div>
<div class="summary-table three-column-summary">
<div class="table-header col-first">Modifier and Type</div>
<div class="table-header col-second">Method</div>
<div class="table-header col-last">Description</div>
<div class="col-first even-row-color"><code>static void</code></div>
<div class="col-second even-row-color"><span class="type-name-label">ConversorMoneda.</span><code><a href="../../vista/gui/ConversorMoneda.html#resultadoConversion(cl.conversor.moneda.Moneda,cl.conversor.moneda.Moneda)" class="member-name-link">resultadoConversion</a><wbr>(<a href="../Moneda.html" title="enum class in cl.conversor.moneda">Moneda</a>&nbsp;orig,
<a href="../Moneda.html" title="enum class in cl.conversor.moneda">Moneda</a>&nbsp;dest)</code></div>
<div class="col-last even-row-color">
<div class="block">Shows result of currency conversion</div>
</div>
</div>
</section>
</li>
<li>
<section class="detail" id="cl.conversor.vista.tui">
<h2>Uses of <a href="../Moneda.html" title="enum class in cl.conversor.moneda">Moneda</a> in <a href="../../vista/tui/package-summary.html">cl.conversor.vista.tui</a></h2>
<div class="caption"><span>Methods in <a href="../../vista/tui/package-summary.html">cl.conversor.vista.tui</a> with parameters of type <a href="../Moneda.html" title="enum class in cl.conversor.moneda">Moneda</a></span></div>

View File

@ -1,11 +1,11 @@
<!DOCTYPE HTML>
<html lang="en">
<head>
<!-- Generated by javadoc (17) on Mon Jul 31 00:32:02 CLT 2023 -->
<!-- Generated by javadoc (17) on Fri Aug 04 19:20:41 CLT 2023 -->
<title>cl.conversor.moneda</title>
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta name="dc.created" content="2023-07-31">
<meta name="dc.created" content="2023-08-04">
<meta name="description" content="declaration: module: conversor_alura_one, package: cl.conversor.moneda">
<meta name="generator" content="javadoc/PackageWriterImpl">
<link rel="stylesheet" type="text/css" href="../../../../stylesheet.css" title="Style">

View File

@ -1,11 +1,11 @@
<!DOCTYPE HTML>
<html lang="en">
<head>
<!-- Generated by javadoc (17) on Mon Jul 31 00:32:02 CLT 2023 -->
<!-- Generated by javadoc (17) on Fri Aug 04 19:20:41 CLT 2023 -->
<title>cl.conversor.moneda Class Hierarchy</title>
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta name="dc.created" content="2023-07-31">
<meta name="dc.created" content="2023-08-04">
<meta name="description" content="tree: module: conversor_alura_one, package: cl.conversor.moneda">
<meta name="generator" content="javadoc/PackageTreeWriter">
<link rel="stylesheet" type="text/css" href="../../../../stylesheet.css" title="Style">

View File

@ -1,11 +1,11 @@
<!DOCTYPE HTML>
<html lang="en">
<head>
<!-- Generated by javadoc (17) on Mon Jul 31 00:32:02 CLT 2023 -->
<!-- Generated by javadoc (17) on Fri Aug 04 19:20:41 CLT 2023 -->
<title>Uses of Package cl.conversor.moneda</title>
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta name="dc.created" content="2023-07-31">
<meta name="dc.created" content="2023-08-04">
<meta name="description" content="use: module: conversor_alura_one, package: cl.conversor.moneda">
<meta name="generator" content="javadoc/PackageUseWriter">
<link rel="stylesheet" type="text/css" href="../../../../stylesheet.css" title="Style">
@ -59,8 +59,10 @@ loadScripts(document, 'script');</script>
<div class="col-last even-row-color">&nbsp;</div>
<div class="col-first odd-row-color"><a href="#cl.conversor.vista.cli">cl.conversor.vista.cli</a></div>
<div class="col-last odd-row-color">&nbsp;</div>
<div class="col-first even-row-color"><a href="#cl.conversor.vista.tui">cl.conversor.vista.tui</a></div>
<div class="col-first even-row-color"><a href="#cl.conversor.vista.gui">cl.conversor.vista.gui</a></div>
<div class="col-last even-row-color">&nbsp;</div>
<div class="col-first odd-row-color"><a href="#cl.conversor.vista.tui">cl.conversor.vista.tui</a></div>
<div class="col-last odd-row-color">&nbsp;</div>
</div>
<section class="package-uses">
<ul class="block-list">
@ -91,6 +93,19 @@ loadScripts(document, 'script');</script>
</section>
</li>
<li>
<section class="detail" id="cl.conversor.vista.gui">
<div class="caption"><span>Classes in <a href="package-summary.html">cl.conversor.moneda</a> used by <a href="../vista/gui/package-summary.html">cl.conversor.vista.gui</a></span></div>
<div class="summary-table two-column-summary">
<div class="table-header col-first">Class</div>
<div class="table-header col-last">Description</div>
<div class="col-first even-row-color"><a href="class-use/Moneda.html#cl.conversor.vista.gui">Moneda</a></div>
<div class="col-last even-row-color">
<div class="block">Moneda currency representation `NAME (symbol, rate)`</div>
</div>
</div>
</section>
</li>
<li>
<section class="detail" id="cl.conversor.vista.tui">
<div class="caption"><span>Classes in <a href="package-summary.html">cl.conversor.moneda</a> used by <a href="../vista/tui/package-summary.html">cl.conversor.vista.tui</a></span></div>
<div class="summary-table two-column-summary">

View File

@ -1,11 +1,11 @@
<!DOCTYPE HTML>
<html lang="en">
<head>
<!-- Generated by javadoc (17) on Mon Jul 31 00:32:02 CLT 2023 -->
<!-- Generated by javadoc (17) on Fri Aug 04 19:20:41 CLT 2023 -->
<title>ConversorCli</title>
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta name="dc.created" content="2023-07-31">
<meta name="dc.created" content="2023-08-04">
<meta name="description" content="declaration: module: conversor_alura_one, package: cl.conversor.vista.cli, class: ConversorCli">
<meta name="generator" content="javadoc/ClassWriterImpl">
<link rel="stylesheet" type="text/css" href="../../../../../stylesheet.css" title="Style">

View File

@ -1,11 +1,11 @@
<!DOCTYPE HTML>
<html lang="en">
<head>
<!-- Generated by javadoc (17) on Mon Jul 31 00:32:02 CLT 2023 -->
<!-- Generated by javadoc (17) on Fri Aug 04 19:20:41 CLT 2023 -->
<title>Uses of Class cl.conversor.vista.cli.ConversorCli</title>
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta name="dc.created" content="2023-07-31">
<meta name="dc.created" content="2023-08-04">
<meta name="description" content="use: module: conversor_alura_one, package: cl.conversor.vista.cli, class: ConversorCli">
<meta name="generator" content="javadoc/ClassUseWriter">
<link rel="stylesheet" type="text/css" href="../../../../../../stylesheet.css" title="Style">

View File

@ -1,11 +1,11 @@
<!DOCTYPE HTML>
<html lang="en">
<head>
<!-- Generated by javadoc (17) on Mon Jul 31 00:32:02 CLT 2023 -->
<!-- Generated by javadoc (17) on Fri Aug 04 19:20:41 CLT 2023 -->
<title>cl.conversor.vista.cli</title>
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta name="dc.created" content="2023-07-31">
<meta name="dc.created" content="2023-08-04">
<meta name="description" content="declaration: module: conversor_alura_one, package: cl.conversor.vista.cli">
<meta name="generator" content="javadoc/PackageWriterImpl">
<link rel="stylesheet" type="text/css" href="../../../../../stylesheet.css" title="Style">

View File

@ -1,11 +1,11 @@
<!DOCTYPE HTML>
<html lang="en">
<head>
<!-- Generated by javadoc (17) on Mon Jul 31 00:32:02 CLT 2023 -->
<!-- Generated by javadoc (17) on Fri Aug 04 19:20:41 CLT 2023 -->
<title>cl.conversor.vista.cli Class Hierarchy</title>
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta name="dc.created" content="2023-07-31">
<meta name="dc.created" content="2023-08-04">
<meta name="description" content="tree: module: conversor_alura_one, package: cl.conversor.vista.cli">
<meta name="generator" content="javadoc/PackageTreeWriter">
<link rel="stylesheet" type="text/css" href="../../../../../stylesheet.css" title="Style">

View File

@ -1,11 +1,11 @@
<!DOCTYPE HTML>
<html lang="en">
<head>
<!-- Generated by javadoc (17) on Mon Jul 31 00:32:02 CLT 2023 -->
<!-- Generated by javadoc (17) on Fri Aug 04 19:20:41 CLT 2023 -->
<title>Uses of Package cl.conversor.vista.cli</title>
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta name="dc.created" content="2023-07-31">
<meta name="dc.created" content="2023-08-04">
<meta name="description" content="use: module: conversor_alura_one, package: cl.conversor.vista.cli">
<meta name="generator" content="javadoc/PackageUseWriter">
<link rel="stylesheet" type="text/css" href="../../../../../stylesheet.css" title="Style">

View File

@ -1,11 +1,11 @@
<!DOCTYPE HTML>
<html lang="en">
<head>
<!-- Generated by javadoc (17) on Mon Jul 31 00:32:02 CLT 2023 -->
<!-- Generated by javadoc (17) on Fri Aug 04 19:20:41 CLT 2023 -->
<title>ConversorGui</title>
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta name="dc.created" content="2023-07-31">
<meta name="dc.created" content="2023-08-04">
<meta name="description" content="declaration: module: conversor_alura_one, package: cl.conversor.vista.gui, class: ConversorGui">
<meta name="generator" content="javadoc/ClassWriterImpl">
<link rel="stylesheet" type="text/css" href="../../../../../stylesheet.css" title="Style">
@ -154,7 +154,7 @@ loadScripts(document, 'script');</script>
<section class="method-summary" id="method-summary">
<h2>Method Summary</h2>
<div id="method-summary-table">
<div class="table-tabs" role="tablist" aria-orientation="horizontal"><button id="method-summary-table-tab0" role="tab" aria-selected="true" aria-controls="method-summary-table.tabpanel" tabindex="0" onkeydown="switchTab(event)" onclick="show('method-summary-table', 'method-summary-table', 3)" class="active-table-tab">All Methods</button><button id="method-summary-table-tab1" role="tab" aria-selected="false" aria-controls="method-summary-table.tabpanel" tabindex="-1" onkeydown="switchTab(event)" onclick="show('method-summary-table', 'method-summary-table-tab1', 3)" class="table-tab">Static Methods</button><button id="method-summary-table-tab2" role="tab" aria-selected="false" aria-controls="method-summary-table.tabpanel" tabindex="-1" onkeydown="switchTab(event)" onclick="show('method-summary-table', 'method-summary-table-tab2', 3)" class="table-tab">Instance Methods</button><button id="method-summary-table-tab4" role="tab" aria-selected="false" aria-controls="method-summary-table.tabpanel" tabindex="-1" onkeydown="switchTab(event)" onclick="show('method-summary-table', 'method-summary-table-tab4', 3)" class="table-tab">Concrete Methods</button></div>
<div class="table-tabs" role="tablist" aria-orientation="horizontal"><button id="method-summary-table-tab0" role="tab" aria-selected="true" aria-controls="method-summary-table.tabpanel" tabindex="0" onkeydown="switchTab(event)" onclick="show('method-summary-table', 'method-summary-table', 3)" class="active-table-tab">All Methods</button><button id="method-summary-table-tab1" role="tab" aria-selected="false" aria-controls="method-summary-table.tabpanel" tabindex="-1" onkeydown="switchTab(event)" onclick="show('method-summary-table', 'method-summary-table-tab1', 3)" class="table-tab">Static Methods</button><button id="method-summary-table-tab4" role="tab" aria-selected="false" aria-controls="method-summary-table.tabpanel" tabindex="-1" onkeydown="switchTab(event)" onclick="show('method-summary-table', 'method-summary-table-tab4', 3)" class="table-tab">Concrete Methods</button></div>
<div id="method-summary-table.tabpanel" role="tabpanel">
<div class="summary-table three-column-summary" aria-labelledby="method-summary-table-tab0">
<div class="table-header col-first">Modifier and Type</div>
@ -163,9 +163,6 @@ loadScripts(document, 'script');</script>
<div class="col-first even-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4"><code>static void</code></div>
<div class="col-second even-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4"><code><a href="#main(java.lang.String%5B%5D)" class="member-name-link">main</a><wbr>(<a href="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/String.html" title="class or interface in java.lang" class="external-link">String</a>[]&nbsp;args)</code></div>
<div class="col-last even-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4">&nbsp;</div>
<div class="col-first odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4"><code>void</code></div>
<div class="col-second odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4"><code><a href="#menuConversion()" class="member-name-link">menuConversion</a>()</code></div>
<div class="col-last odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4">&nbsp;</div>
</div>
</div>
</div>
@ -216,12 +213,6 @@ loadScripts(document, 'script');</script>
<h2>Method Details</h2>
<ul class="member-list">
<li>
<section class="detail" id="menuConversion()">
<h3>menuConversion</h3>
<div class="member-signature"><span class="modifiers">public</span>&nbsp;<span class="return-type">void</span>&nbsp;<span class="element-name">menuConversion</span>()</div>
</section>
</li>
<li>
<section class="detail" id="main(java.lang.String[])">
<h3>main</h3>
<div class="member-signature"><span class="modifiers">public static</span>&nbsp;<span class="return-type">void</span>&nbsp;<span class="element-name">main</span><wbr><span class="parameters">(<a href="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/String.html" title="class or interface in java.lang" class="external-link">String</a>[]&nbsp;args)</span></div>

File diff suppressed because one or more lines are too long

View File

@ -1,11 +1,11 @@
<!DOCTYPE HTML>
<html lang="en">
<head>
<!-- Generated by javadoc (17) on Mon Jul 31 00:32:02 CLT 2023 -->
<!-- Generated by javadoc (17) on Fri Aug 04 19:20:41 CLT 2023 -->
<title>Uses of Class cl.conversor.vista.gui.ConversorGui</title>
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta name="dc.created" content="2023-07-31">
<meta name="dc.created" content="2023-08-04">
<meta name="description" content="use: module: conversor_alura_one, package: cl.conversor.vista.gui, class: ConversorGui">
<meta name="generator" content="javadoc/ClassUseWriter">
<link rel="stylesheet" type="text/css" href="../../../../../../stylesheet.css" title="Style">

View File

@ -0,0 +1,58 @@
<!DOCTYPE HTML>
<html lang="en">
<head>
<!-- Generated by javadoc (17) on Fri Aug 04 19:20:41 CLT 2023 -->
<title>Uses of Class cl.conversor.vista.gui.ConversorMoneda</title>
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta name="dc.created" content="2023-08-04">
<meta name="description" content="use: module: conversor_alura_one, package: cl.conversor.vista.gui, class: ConversorMoneda">
<meta name="generator" content="javadoc/ClassUseWriter">
<link rel="stylesheet" type="text/css" href="../../../../../../stylesheet.css" title="Style">
<link rel="stylesheet" type="text/css" href="../../../../../../script-dir/jquery-ui.min.css" title="Style">
<link rel="stylesheet" type="text/css" href="../../../../../../jquery-ui.overrides.css" title="Style">
<script type="text/javascript" src="../../../../../../script.js"></script>
<script type="text/javascript" src="../../../../../../script-dir/jquery-3.6.1.min.js"></script>
<script type="text/javascript" src="../../../../../../script-dir/jquery-ui.min.js"></script>
</head>
<body class="class-use-page">
<script type="text/javascript">var pathtoroot = "../../../../../../";
loadScripts(document, 'script');</script>
<noscript>
<div>JavaScript is disabled on your browser.</div>
</noscript>
<div class="flex-box">
<header role="banner" class="flex-header">
<nav role="navigation">
<!-- ========= START OF TOP NAVBAR ======= -->
<div class="top-nav" id="navbar-top">
<div class="skip-nav"><a href="#skip-navbar-top" title="Skip navigation links">Skip navigation links</a></div>
<ul id="navbar-top-firstrow" class="nav-list" title="Navigation">
<li><a href="../../../../../module-summary.html">Module</a></li>
<li><a href="../package-summary.html">Package</a></li>
<li><a href="../ConversorMoneda.html" title="class in cl.conversor.vista.gui">Class</a></li>
<li class="nav-bar-cell1-rev">Use</li>
<li><a href="../package-tree.html">Tree</a></li>
<li><a href="../../../../../../index-files/index-1.html">Index</a></li>
<li><a href="../../../../../../help-doc.html#use">Help</a></li>
</ul>
</div>
<div class="sub-nav">
<div class="nav-list-search"><label for="search-input">SEARCH:</label>
<input type="text" id="search-input" value="search" disabled="disabled">
<input type="reset" id="reset-button" value="reset" disabled="disabled">
</div>
</div>
<!-- ========= END OF TOP NAVBAR ========= -->
<span class="skip-nav" id="skip-navbar-top"></span></nav>
</header>
<div class="flex-content">
<main role="main">
<div class="header">
<h1 title="Uses of Class cl.conversor.vista.gui.ConversorMoneda" class="title">Uses of Class<br>cl.conversor.vista.gui.ConversorMoneda</h1>
</div>
No usage of cl.conversor.vista.gui.ConversorMoneda</main>
</div>
</div>
</body>
</html>

View File

@ -1,11 +1,11 @@
<!DOCTYPE HTML>
<html lang="en">
<head>
<!-- Generated by javadoc (17) on Mon Jul 31 00:32:02 CLT 2023 -->
<!-- Generated by javadoc (17) on Fri Aug 04 19:20:41 CLT 2023 -->
<title>cl.conversor.vista.gui</title>
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta name="dc.created" content="2023-07-31">
<meta name="dc.created" content="2023-08-04">
<meta name="description" content="declaration: module: conversor_alura_one, package: cl.conversor.vista.gui">
<meta name="generator" content="javadoc/PackageWriterImpl">
<link rel="stylesheet" type="text/css" href="../../../../../stylesheet.css" title="Style">
@ -74,6 +74,10 @@ loadScripts(document, 'script');</script>
<div class="col-last even-row-color class-summary class-summary-tab2">
<div class="block">Main class for <b>GUI</b> converter application</div>
</div>
<div class="col-first odd-row-color class-summary class-summary-tab2"><a href="ConversorMoneda.html" title="class in cl.conversor.vista.gui">ConversorMoneda</a></div>
<div class="col-last odd-row-color class-summary class-summary-tab2">
<div class="block">Currency converter class</div>
</div>
</div>
</div>
</li>

View File

@ -1,11 +1,11 @@
<!DOCTYPE HTML>
<html lang="en">
<head>
<!-- Generated by javadoc (17) on Mon Jul 31 00:32:02 CLT 2023 -->
<!-- Generated by javadoc (17) on Fri Aug 04 19:20:41 CLT 2023 -->
<title>cl.conversor.vista.gui Class Hierarchy</title>
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta name="dc.created" content="2023-07-31">
<meta name="dc.created" content="2023-08-04">
<meta name="description" content="tree: module: conversor_alura_one, package: cl.conversor.vista.gui">
<meta name="generator" content="javadoc/PackageTreeWriter">
<link rel="stylesheet" type="text/css" href="../../../../../stylesheet.css" title="Style">
@ -71,6 +71,7 @@ loadScripts(document, 'script');</script>
<li class="circle">javax.swing.<a href="https://docs.oracle.com/en/java/javase/17/docs/api/java.desktop/javax/swing/JFrame.html" class="type-name-link external-link" title="class or interface in javax.swing">JFrame</a> (implements javax.accessibility.<a href="https://docs.oracle.com/en/java/javase/17/docs/api/java.desktop/javax/accessibility/Accessible.html" title="class or interface in javax.accessibility" class="external-link">Accessible</a>, javax.swing.<a href="https://docs.oracle.com/en/java/javase/17/docs/api/java.desktop/javax/swing/RootPaneContainer.html" title="class or interface in javax.swing" class="external-link">RootPaneContainer</a>, javax.swing.<a href="https://docs.oracle.com/en/java/javase/17/docs/api/java.desktop/javax/swing/WindowConstants.html" title="class or interface in javax.swing" class="external-link">WindowConstants</a>)
<ul>
<li class="circle">cl.conversor.vista.gui.<a href="ConversorGui.html" class="type-name-link" title="class in cl.conversor.vista.gui">ConversorGui</a></li>
<li class="circle">cl.conversor.vista.gui.<a href="ConversorMoneda.html" class="type-name-link" title="class in cl.conversor.vista.gui">ConversorMoneda</a></li>
</ul>
</li>
</ul>

View File

@ -1,11 +1,11 @@
<!DOCTYPE HTML>
<html lang="en">
<head>
<!-- Generated by javadoc (17) on Mon Jul 31 00:32:02 CLT 2023 -->
<!-- Generated by javadoc (17) on Fri Aug 04 19:20:41 CLT 2023 -->
<title>Uses of Package cl.conversor.vista.gui</title>
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta name="dc.created" content="2023-07-31">
<meta name="dc.created" content="2023-08-04">
<meta name="description" content="use: module: conversor_alura_one, package: cl.conversor.vista.gui">
<meta name="generator" content="javadoc/PackageUseWriter">
<link rel="stylesheet" type="text/css" href="../../../../../stylesheet.css" title="Style">

View File

@ -1,11 +1,11 @@
<!DOCTYPE HTML>
<html lang="en">
<head>
<!-- Generated by javadoc (17) on Mon Jul 31 00:32:02 CLT 2023 -->
<!-- Generated by javadoc (17) on Fri Aug 04 19:20:41 CLT 2023 -->
<title>Color</title>
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta name="dc.created" content="2023-07-31">
<meta name="dc.created" content="2023-08-04">
<meta name="description" content="declaration: module: conversor_alura_one, package: cl.conversor.vista.tui, enum: Color">
<meta name="generator" content="javadoc/ClassWriterImpl">
<link rel="stylesheet" type="text/css" href="../../../../../stylesheet.css" title="Style">

View File

@ -1,11 +1,11 @@
<!DOCTYPE HTML>
<html lang="en">
<head>
<!-- Generated by javadoc (17) on Mon Jul 31 00:32:02 CLT 2023 -->
<!-- Generated by javadoc (17) on Fri Aug 04 19:20:41 CLT 2023 -->
<title>ConversorTui</title>
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta name="dc.created" content="2023-07-31">
<meta name="dc.created" content="2023-08-04">
<meta name="description" content="declaration: module: conversor_alura_one, package: cl.conversor.vista.tui, class: ConversorTui">
<meta name="generator" content="javadoc/ClassWriterImpl">
<link rel="stylesheet" type="text/css" href="../../../../../stylesheet.css" title="Style">

View File

@ -1,11 +1,11 @@
<!DOCTYPE HTML>
<html lang="en">
<head>
<!-- Generated by javadoc (17) on Mon Jul 31 00:32:02 CLT 2023 -->
<!-- Generated by javadoc (17) on Fri Aug 04 19:20:41 CLT 2023 -->
<title>LimpiarConsola</title>
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta name="dc.created" content="2023-07-31">
<meta name="dc.created" content="2023-08-04">
<meta name="description" content="declaration: module: conversor_alura_one, package: cl.conversor.vista.tui, interface: LimpiarConsola">
<meta name="generator" content="javadoc/ClassWriterImpl">
<link rel="stylesheet" type="text/css" href="../../../../../stylesheet.css" title="Style">

View File

@ -1,11 +1,11 @@
<!DOCTYPE HTML>
<html lang="en">
<head>
<!-- Generated by javadoc (17) on Mon Jul 31 00:32:02 CLT 2023 -->
<!-- Generated by javadoc (17) on Fri Aug 04 19:20:41 CLT 2023 -->
<title>MenuPrincipal</title>
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta name="dc.created" content="2023-07-31">
<meta name="dc.created" content="2023-08-04">
<meta name="description" content="declaration: module: conversor_alura_one, package: cl.conversor.vista.tui, class: MenuPrincipal">
<meta name="generator" content="javadoc/ClassWriterImpl">
<link rel="stylesheet" type="text/css" href="../../../../../stylesheet.css" title="Style">

View File

@ -1,11 +1,11 @@
<!DOCTYPE HTML>
<html lang="en">
<head>
<!-- Generated by javadoc (17) on Mon Jul 31 00:32:02 CLT 2023 -->
<!-- Generated by javadoc (17) on Fri Aug 04 19:20:41 CLT 2023 -->
<title>Uses of Enum Class cl.conversor.vista.tui.Color</title>
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta name="dc.created" content="2023-07-31">
<meta name="dc.created" content="2023-08-04">
<meta name="description" content="use: module: conversor_alura_one, package: cl.conversor.vista.tui, enum: Color">
<meta name="generator" content="javadoc/ClassUseWriter">
<link rel="stylesheet" type="text/css" href="../../../../../../stylesheet.css" title="Style">

View File

@ -1,11 +1,11 @@
<!DOCTYPE HTML>
<html lang="en">
<head>
<!-- Generated by javadoc (17) on Mon Jul 31 00:32:02 CLT 2023 -->
<!-- Generated by javadoc (17) on Fri Aug 04 19:20:41 CLT 2023 -->
<title>Uses of Class cl.conversor.vista.tui.ConversorTui</title>
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta name="dc.created" content="2023-07-31">
<meta name="dc.created" content="2023-08-04">
<meta name="description" content="use: module: conversor_alura_one, package: cl.conversor.vista.tui, class: ConversorTui">
<meta name="generator" content="javadoc/ClassUseWriter">
<link rel="stylesheet" type="text/css" href="../../../../../../stylesheet.css" title="Style">

View File

@ -1,11 +1,11 @@
<!DOCTYPE HTML>
<html lang="en">
<head>
<!-- Generated by javadoc (17) on Mon Jul 31 00:32:02 CLT 2023 -->
<!-- Generated by javadoc (17) on Fri Aug 04 19:20:41 CLT 2023 -->
<title>Uses of Interface cl.conversor.vista.tui.LimpiarConsola</title>
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta name="dc.created" content="2023-07-31">
<meta name="dc.created" content="2023-08-04">
<meta name="description" content="use: module: conversor_alura_one, package: cl.conversor.vista.tui, interface: LimpiarConsola">
<meta name="generator" content="javadoc/ClassUseWriter">
<link rel="stylesheet" type="text/css" href="../../../../../../stylesheet.css" title="Style">

View File

@ -1,11 +1,11 @@
<!DOCTYPE HTML>
<html lang="en">
<head>
<!-- Generated by javadoc (17) on Mon Jul 31 00:32:02 CLT 2023 -->
<!-- Generated by javadoc (17) on Fri Aug 04 19:20:41 CLT 2023 -->
<title>Uses of Class cl.conversor.vista.tui.MenuPrincipal</title>
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta name="dc.created" content="2023-07-31">
<meta name="dc.created" content="2023-08-04">
<meta name="description" content="use: module: conversor_alura_one, package: cl.conversor.vista.tui, class: MenuPrincipal">
<meta name="generator" content="javadoc/ClassUseWriter">
<link rel="stylesheet" type="text/css" href="../../../../../../stylesheet.css" title="Style">

View File

@ -1,11 +1,11 @@
<!DOCTYPE HTML>
<html lang="en">
<head>
<!-- Generated by javadoc (17) on Mon Jul 31 00:32:02 CLT 2023 -->
<!-- Generated by javadoc (17) on Fri Aug 04 19:20:41 CLT 2023 -->
<title>cl.conversor.vista.tui</title>
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta name="dc.created" content="2023-07-31">
<meta name="dc.created" content="2023-08-04">
<meta name="description" content="declaration: module: conversor_alura_one, package: cl.conversor.vista.tui">
<meta name="generator" content="javadoc/PackageWriterImpl">
<link rel="stylesheet" type="text/css" href="../../../../../stylesheet.css" title="Style">

View File

@ -1,11 +1,11 @@
<!DOCTYPE HTML>
<html lang="en">
<head>
<!-- Generated by javadoc (17) on Mon Jul 31 00:32:02 CLT 2023 -->
<!-- Generated by javadoc (17) on Fri Aug 04 19:20:41 CLT 2023 -->
<title>cl.conversor.vista.tui Class Hierarchy</title>
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta name="dc.created" content="2023-07-31">
<meta name="dc.created" content="2023-08-04">
<meta name="description" content="tree: module: conversor_alura_one, package: cl.conversor.vista.tui">
<meta name="generator" content="javadoc/PackageTreeWriter">
<link rel="stylesheet" type="text/css" href="../../../../../stylesheet.css" title="Style">

View File

@ -1,11 +1,11 @@
<!DOCTYPE HTML>
<html lang="en">
<head>
<!-- Generated by javadoc (17) on Mon Jul 31 00:32:02 CLT 2023 -->
<!-- Generated by javadoc (17) on Fri Aug 04 19:20:41 CLT 2023 -->
<title>Uses of Package cl.conversor.vista.tui</title>
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta name="dc.created" content="2023-07-31">
<meta name="dc.created" content="2023-08-04">
<meta name="description" content="use: module: conversor_alura_one, package: cl.conversor.vista.tui">
<meta name="generator" content="javadoc/PackageUseWriter">
<link rel="stylesheet" type="text/css" href="../../../../../stylesheet.css" title="Style">

View File

@ -1,11 +1,11 @@
<!DOCTYPE HTML>
<html lang="en">
<head>
<!-- Generated by javadoc (17) on Mon Jul 31 00:32:02 CLT 2023 -->
<!-- Generated by javadoc (17) on Fri Aug 04 19:20:41 CLT 2023 -->
<title>conversor_alura_one</title>
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta name="dc.created" content="2023-07-31">
<meta name="dc.created" content="2023-08-04">
<meta name="description" content="declaration: module: conversor_alura_one">
<meta name="generator" content="javadoc/ModuleWriterImpl">
<link rel="stylesheet" type="text/css" href="../stylesheet.css" title="Style">

View File

@ -1,11 +1,11 @@
<!DOCTYPE HTML>
<html lang="en">
<head>
<!-- Generated by javadoc (17) on Mon Jul 31 00:32:02 CLT 2023 -->
<!-- Generated by javadoc (17) on Fri Aug 04 19:20:41 CLT 2023 -->
<title>API Help</title>
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta name="dc.created" content="2023-07-31">
<meta name="dc.created" content="2023-08-04">
<meta name="description" content="help">
<meta name="generator" content="javadoc/HelpWriter">
<link rel="stylesheet" type="text/css" href="stylesheet.css" title="Style">

View File

@ -1,11 +1,11 @@
<!DOCTYPE HTML>
<html lang="en">
<head>
<!-- Generated by javadoc (17) on Mon Jul 31 00:32:02 CLT 2023 -->
<!-- Generated by javadoc (17) on Fri Aug 04 19:20:41 CLT 2023 -->
<title>A-Index</title>
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta name="dc.created" content="2023-07-31">
<meta name="dc.created" content="2023-08-04">
<meta name="description" content="index: A">
<meta name="generator" content="javadoc/IndexWriter">
<link rel="stylesheet" type="text/css" href="../stylesheet.css" title="Style">

View File

@ -1,11 +1,11 @@
<!DOCTYPE HTML>
<html lang="en">
<head>
<!-- Generated by javadoc (17) on Mon Jul 31 00:32:02 CLT 2023 -->
<!-- Generated by javadoc (17) on Fri Aug 04 19:20:41 CLT 2023 -->
<title>P-Index</title>
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta name="dc.created" content="2023-07-31">
<meta name="dc.created" content="2023-08-04">
<meta name="description" content="index: P">
<meta name="generator" content="javadoc/IndexWriter">
<link rel="stylesheet" type="text/css" href="../stylesheet.css" title="Style">

View File

@ -1,11 +1,11 @@
<!DOCTYPE HTML>
<html lang="en">
<head>
<!-- Generated by javadoc (17) on Mon Jul 31 00:32:02 CLT 2023 -->
<!-- Generated by javadoc (17) on Fri Aug 04 19:20:41 CLT 2023 -->
<title>R-Index</title>
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta name="dc.created" content="2023-07-31">
<meta name="dc.created" content="2023-08-04">
<meta name="description" content="index: R">
<meta name="generator" content="javadoc/IndexWriter">
<link rel="stylesheet" type="text/css" href="../stylesheet.css" title="Style">
@ -64,6 +64,10 @@ loadScripts(document, 'script');</script>
<dd>&nbsp;</dd>
<dt><a href="../conversor_alura_one/cl/conversor/vista/tui/MenuPrincipal.html#resultado(java.lang.String...)" class="member-name-link">resultado(String...)</a> - Method in class cl.conversor.vista.tui.<a href="../conversor_alura_one/cl/conversor/vista/tui/MenuPrincipal.html" title="class in cl.conversor.vista.tui">MenuPrincipal</a></dt>
<dd>&nbsp;</dd>
<dt><a href="../conversor_alura_one/cl/conversor/vista/gui/ConversorMoneda.html#resultadoConversion(cl.conversor.moneda.Moneda,cl.conversor.moneda.Moneda)" class="member-name-link">resultadoConversion(Moneda, Moneda)</a> - Static method in class cl.conversor.vista.gui.<a href="../conversor_alura_one/cl/conversor/vista/gui/ConversorMoneda.html" title="class in cl.conversor.vista.gui">ConversorMoneda</a></dt>
<dd>
<div class="block">Shows result of currency conversion</div>
</dd>
</dl>
<a href="index-1.html">A</a>&nbsp;<a href="index-2.html">B</a>&nbsp;<a href="index-3.html">C</a>&nbsp;<a href="index-4.html">E</a>&nbsp;<a href="index-5.html">G</a>&nbsp;<a href="index-6.html">J</a>&nbsp;<a href="index-7.html">K</a>&nbsp;<a href="index-8.html">L</a>&nbsp;<a href="index-9.html">M</a>&nbsp;<a href="index-10.html">P</a>&nbsp;<a href="index-11.html">R</a>&nbsp;<a href="index-12.html">S</a>&nbsp;<a href="index-13.html">T</a>&nbsp;<a href="index-14.html">U</a>&nbsp;<a href="index-15.html">V</a>&nbsp;<a href="index-16.html">W</a>&nbsp;<a href="index-17.html">Y</a>&nbsp;<br><a href="../allclasses-index.html">All&nbsp;Classes&nbsp;and&nbsp;Interfaces</a><span class="vertical-separator">|</span><a href="../allpackages-index.html">All&nbsp;Packages</a><span class="vertical-separator">|</span><a href="../serialized-form.html">Serialized&nbsp;Form</a></main>
</div>

View File

@ -1,11 +1,11 @@
<!DOCTYPE HTML>
<html lang="en">
<head>
<!-- Generated by javadoc (17) on Mon Jul 31 00:32:02 CLT 2023 -->
<!-- Generated by javadoc (17) on Fri Aug 04 19:20:41 CLT 2023 -->
<title>S-Index</title>
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta name="dc.created" content="2023-07-31">
<meta name="dc.created" content="2023-08-04">
<meta name="description" content="index: S">
<meta name="generator" content="javadoc/IndexWriter">
<link rel="stylesheet" type="text/css" href="../stylesheet.css" title="Style">

View File

@ -1,11 +1,11 @@
<!DOCTYPE HTML>
<html lang="en">
<head>
<!-- Generated by javadoc (17) on Mon Jul 31 00:32:02 CLT 2023 -->
<!-- Generated by javadoc (17) on Fri Aug 04 19:20:41 CLT 2023 -->
<title>T-Index</title>
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta name="dc.created" content="2023-07-31">
<meta name="dc.created" content="2023-08-04">
<meta name="description" content="index: T">
<meta name="generator" content="javadoc/IndexWriter">
<link rel="stylesheet" type="text/css" href="../stylesheet.css" title="Style">

View File

@ -1,11 +1,11 @@
<!DOCTYPE HTML>
<html lang="en">
<head>
<!-- Generated by javadoc (17) on Mon Jul 31 00:32:02 CLT 2023 -->
<!-- Generated by javadoc (17) on Fri Aug 04 19:20:41 CLT 2023 -->
<title>U-Index</title>
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta name="dc.created" content="2023-07-31">
<meta name="dc.created" content="2023-08-04">
<meta name="description" content="index: U">
<meta name="generator" content="javadoc/IndexWriter">
<link rel="stylesheet" type="text/css" href="../stylesheet.css" title="Style">

View File

@ -1,11 +1,11 @@
<!DOCTYPE HTML>
<html lang="en">
<head>
<!-- Generated by javadoc (17) on Mon Jul 31 00:32:02 CLT 2023 -->
<!-- Generated by javadoc (17) on Fri Aug 04 19:20:41 CLT 2023 -->
<title>V-Index</title>
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta name="dc.created" content="2023-07-31">
<meta name="dc.created" content="2023-08-04">
<meta name="description" content="index: V">
<meta name="generator" content="javadoc/IndexWriter">
<link rel="stylesheet" type="text/css" href="../stylesheet.css" title="Style">

View File

@ -1,11 +1,11 @@
<!DOCTYPE HTML>
<html lang="en">
<head>
<!-- Generated by javadoc (17) on Mon Jul 31 00:32:02 CLT 2023 -->
<!-- Generated by javadoc (17) on Fri Aug 04 19:20:41 CLT 2023 -->
<title>W-Index</title>
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta name="dc.created" content="2023-07-31">
<meta name="dc.created" content="2023-08-04">
<meta name="description" content="index: W">
<meta name="generator" content="javadoc/IndexWriter">
<link rel="stylesheet" type="text/css" href="../stylesheet.css" title="Style">

View File

@ -1,11 +1,11 @@
<!DOCTYPE HTML>
<html lang="en">
<head>
<!-- Generated by javadoc (17) on Mon Jul 31 00:32:02 CLT 2023 -->
<!-- Generated by javadoc (17) on Fri Aug 04 19:20:41 CLT 2023 -->
<title>Y-Index</title>
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta name="dc.created" content="2023-07-31">
<meta name="dc.created" content="2023-08-04">
<meta name="description" content="index: Y">
<meta name="generator" content="javadoc/IndexWriter">
<link rel="stylesheet" type="text/css" href="../stylesheet.css" title="Style">

View File

@ -1,11 +1,11 @@
<!DOCTYPE HTML>
<html lang="en">
<head>
<!-- Generated by javadoc (17) on Mon Jul 31 00:32:02 CLT 2023 -->
<!-- Generated by javadoc (17) on Fri Aug 04 19:20:41 CLT 2023 -->
<title>B-Index</title>
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta name="dc.created" content="2023-07-31">
<meta name="dc.created" content="2023-08-04">
<meta name="description" content="index: B">
<meta name="generator" content="javadoc/IndexWriter">
<link rel="stylesheet" type="text/css" href="../stylesheet.css" title="Style">

View File

@ -1,11 +1,11 @@
<!DOCTYPE HTML>
<html lang="en">
<head>
<!-- Generated by javadoc (17) on Mon Jul 31 00:32:02 CLT 2023 -->
<!-- Generated by javadoc (17) on Fri Aug 04 19:20:41 CLT 2023 -->
<title>C-Index</title>
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta name="dc.created" content="2023-07-31">
<meta name="dc.created" content="2023-08-04">
<meta name="description" content="index: C">
<meta name="generator" content="javadoc/IndexWriter">
<link rel="stylesheet" type="text/css" href="../stylesheet.css" title="Style">
@ -98,6 +98,12 @@ loadScripts(document, 'script');</script>
</dd>
<dt><a href="../conversor_alura_one/cl/conversor/vista/gui/ConversorGui.html#%3Cinit%3E()" class="member-name-link">ConversorGui()</a> - Constructor for class cl.conversor.vista.gui.<a href="../conversor_alura_one/cl/conversor/vista/gui/ConversorGui.html" title="class in cl.conversor.vista.gui">ConversorGui</a></dt>
<dd>&nbsp;</dd>
<dt><a href="../conversor_alura_one/cl/conversor/vista/gui/ConversorMoneda.html" class="type-name-link" title="class in cl.conversor.vista.gui">ConversorMoneda</a> - Class in <a href="../conversor_alura_one/cl/conversor/vista/gui/package-summary.html">cl.conversor.vista.gui</a></dt>
<dd>
<div class="block">Currency converter class</div>
</dd>
<dt><a href="../conversor_alura_one/cl/conversor/vista/gui/ConversorMoneda.html#%3Cinit%3E()" class="member-name-link">ConversorMoneda()</a> - Constructor for class cl.conversor.vista.gui.<a href="../conversor_alura_one/cl/conversor/vista/gui/ConversorMoneda.html" title="class in cl.conversor.vista.gui">ConversorMoneda</a></dt>
<dd>&nbsp;</dd>
<dt><a href="../conversor_alura_one/cl/conversor/vista/tui/ConversorTui.html" class="type-name-link" title="class in cl.conversor.vista.tui">ConversorTui</a> - Class in <a href="../conversor_alura_one/cl/conversor/vista/tui/package-summary.html">cl.conversor.vista.tui</a></dt>
<dd>
<div class="block">Main class for <b>TUI</b> converter application</div>

View File

@ -1,11 +1,11 @@
<!DOCTYPE HTML>
<html lang="en">
<head>
<!-- Generated by javadoc (17) on Mon Jul 31 00:32:02 CLT 2023 -->
<!-- Generated by javadoc (17) on Fri Aug 04 19:20:41 CLT 2023 -->
<title>E-Index</title>
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta name="dc.created" content="2023-07-31">
<meta name="dc.created" content="2023-08-04">
<meta name="description" content="index: E">
<meta name="generator" content="javadoc/IndexWriter">
<link rel="stylesheet" type="text/css" href="../stylesheet.css" title="Style">

View File

@ -1,11 +1,11 @@
<!DOCTYPE HTML>
<html lang="en">
<head>
<!-- Generated by javadoc (17) on Mon Jul 31 00:32:02 CLT 2023 -->
<!-- Generated by javadoc (17) on Fri Aug 04 19:20:41 CLT 2023 -->
<title>G-Index</title>
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta name="dc.created" content="2023-07-31">
<meta name="dc.created" content="2023-08-04">
<meta name="description" content="index: G">
<meta name="generator" content="javadoc/IndexWriter">
<link rel="stylesheet" type="text/css" href="../stylesheet.css" title="Style">

View File

@ -1,11 +1,11 @@
<!DOCTYPE HTML>
<html lang="en">
<head>
<!-- Generated by javadoc (17) on Mon Jul 31 00:32:02 CLT 2023 -->
<!-- Generated by javadoc (17) on Fri Aug 04 19:20:41 CLT 2023 -->
<title>J-Index</title>
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta name="dc.created" content="2023-07-31">
<meta name="dc.created" content="2023-08-04">
<meta name="description" content="index: J">
<meta name="generator" content="javadoc/IndexWriter">
<link rel="stylesheet" type="text/css" href="../stylesheet.css" title="Style">

View File

@ -1,11 +1,11 @@
<!DOCTYPE HTML>
<html lang="en">
<head>
<!-- Generated by javadoc (17) on Mon Jul 31 00:32:02 CLT 2023 -->
<!-- Generated by javadoc (17) on Fri Aug 04 19:20:41 CLT 2023 -->
<title>K-Index</title>
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta name="dc.created" content="2023-07-31">
<meta name="dc.created" content="2023-08-04">
<meta name="description" content="index: K">
<meta name="generator" content="javadoc/IndexWriter">
<link rel="stylesheet" type="text/css" href="../stylesheet.css" title="Style">

View File

@ -1,11 +1,11 @@
<!DOCTYPE HTML>
<html lang="en">
<head>
<!-- Generated by javadoc (17) on Mon Jul 31 00:32:02 CLT 2023 -->
<!-- Generated by javadoc (17) on Fri Aug 04 19:20:41 CLT 2023 -->
<title>L-Index</title>
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta name="dc.created" content="2023-07-31">
<meta name="dc.created" content="2023-08-04">
<meta name="description" content="index: L">
<meta name="generator" content="javadoc/IndexWriter">
<link rel="stylesheet" type="text/css" href="../stylesheet.css" title="Style">

View File

@ -1,11 +1,11 @@
<!DOCTYPE HTML>
<html lang="en">
<head>
<!-- Generated by javadoc (17) on Mon Jul 31 00:32:02 CLT 2023 -->
<!-- Generated by javadoc (17) on Fri Aug 04 19:20:41 CLT 2023 -->
<title>M-Index</title>
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta name="dc.created" content="2023-07-31">
<meta name="dc.created" content="2023-08-04">
<meta name="description" content="index: M">
<meta name="generator" content="javadoc/IndexWriter">
<link rel="stylesheet" type="text/css" href="../stylesheet.css" title="Style">
@ -70,8 +70,10 @@ loadScripts(document, 'script');</script>
<dd>&nbsp;</dd>
<dt><a href="../conversor_alura_one/cl/conversor/vista/tui/MenuPrincipal.html#menu_opcs()" class="member-name-link">menu_opcs()</a> - Method in class cl.conversor.vista.tui.<a href="../conversor_alura_one/cl/conversor/vista/tui/MenuPrincipal.html" title="class in cl.conversor.vista.tui">MenuPrincipal</a></dt>
<dd>&nbsp;</dd>
<dt><a href="../conversor_alura_one/cl/conversor/vista/gui/ConversorGui.html#menuConversion()" class="member-name-link">menuConversion()</a> - Method in class cl.conversor.vista.gui.<a href="../conversor_alura_one/cl/conversor/vista/gui/ConversorGui.html" title="class in cl.conversor.vista.gui">ConversorGui</a></dt>
<dd>&nbsp;</dd>
<dt><a href="../conversor_alura_one/cl/conversor/vista/gui/ConversorMoneda.html#menuConversion()" class="member-name-link">menuConversion()</a> - Static method in class cl.conversor.vista.gui.<a href="../conversor_alura_one/cl/conversor/vista/gui/ConversorMoneda.html" title="class in cl.conversor.vista.gui">ConversorMoneda</a></dt>
<dd>
<div class="block">Creates a JMenuBar with currency converter options</div>
</dd>
<dt><a href="../conversor_alura_one/cl/conversor/vista/tui/MenuPrincipal.html" class="type-name-link" title="class in cl.conversor.vista.tui">MenuPrincipal</a> - Class in <a href="../conversor_alura_one/cl/conversor/vista/tui/package-summary.html">cl.conversor.vista.tui</a></dt>
<dd>
<div class="block">Class to create formatted Strings</div>
@ -86,6 +88,10 @@ loadScripts(document, 'script');</script>
<dd>
<div class="block">Returns String representation of Double `monto`</div>
</dd>
<dt><a href="../conversor_alura_one/cl/conversor/vista/gui/ConversorMoneda.html#montoConversion(java.lang.String,java.lang.String)" class="member-name-link">montoConversion(String, String)</a> - Static method in class cl.conversor.vista.gui.<a href="../conversor_alura_one/cl/conversor/vista/gui/ConversorMoneda.html" title="class in cl.conversor.vista.gui">ConversorMoneda</a></dt>
<dd>
<div class="block">Handles user input for amount to convert.</div>
</dd>
</dl>
<a href="index-1.html">A</a>&nbsp;<a href="index-2.html">B</a>&nbsp;<a href="index-3.html">C</a>&nbsp;<a href="index-4.html">E</a>&nbsp;<a href="index-5.html">G</a>&nbsp;<a href="index-6.html">J</a>&nbsp;<a href="index-7.html">K</a>&nbsp;<a href="index-8.html">L</a>&nbsp;<a href="index-9.html">M</a>&nbsp;<a href="index-10.html">P</a>&nbsp;<a href="index-11.html">R</a>&nbsp;<a href="index-12.html">S</a>&nbsp;<a href="index-13.html">T</a>&nbsp;<a href="index-14.html">U</a>&nbsp;<a href="index-15.html">V</a>&nbsp;<a href="index-16.html">W</a>&nbsp;<a href="index-17.html">Y</a>&nbsp;<br><a href="../allclasses-index.html">All&nbsp;Classes&nbsp;and&nbsp;Interfaces</a><span class="vertical-separator">|</span><a href="../allpackages-index.html">All&nbsp;Packages</a><span class="vertical-separator">|</span><a href="../serialized-form.html">Serialized&nbsp;Form</a></main>
</div>

View File

@ -1,11 +1,11 @@
<!DOCTYPE HTML>
<html lang="en">
<head>
<!-- Generated by javadoc (17) on Mon Jul 31 00:32:02 CLT 2023 -->
<!-- Generated by javadoc (17) on Fri Aug 04 19:20:41 CLT 2023 -->
<title>Generated Documentation (Untitled)</title>
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta name="dc.created" content="2023-07-31">
<meta name="dc.created" content="2023-08-04">
<meta name="description" content="index redirect">
<meta name="generator" content="javadoc/IndexRedirectWriter">
<link rel="canonical" href="conversor_alura_one/module-summary.html">

View File

@ -1 +1 @@
memberSearchIndex = [{"p":"cl.conversor.vista.cli","c":"ConversorCli","l":"ayuda()"},{"p":"cl.conversor.vista.tui","c":"MenuPrincipal","l":"baner()"},{"p":"cl.conversor.vista.tui","c":"MenuPrincipal","l":"baner(String)","u":"baner(java.lang.String)"},{"p":"cl.conversor.vista.tui","c":"Color","l":"BLACK"},{"p":"cl.conversor.vista.tui","c":"Color","l":"BLACK_BKG"},{"p":"cl.conversor.vista.tui","c":"Color","l":"BLUE"},{"p":"cl.conversor.vista.tui","c":"Color","l":"BLUE_BKG"},{"p":"cl.conversor.vista.tui","c":"LimpiarConsola","l":"clear()"},{"p":"cl.conversor.moneda","c":"Moneda","l":"CLP"},{"p":"cl.conversor.vista.tui","c":"Color","l":"code()"},{"p":"cl.conversor.vista.cli","c":"ConversorCli","l":"conversion(Moneda, Moneda, Double)","u":"conversion(cl.conversor.moneda.Moneda,cl.conversor.moneda.Moneda,java.lang.Double)"},{"p":"cl.conversor.vista.tui","c":"ConversorTui","l":"conversion(Moneda, Moneda, Double)","u":"conversion(cl.conversor.moneda.Moneda,cl.conversor.moneda.Moneda,java.lang.Double)"},{"p":"cl.conversor.vista.tui","c":"ConversorTui","l":"conversion(Moneda, Moneda, String)","u":"conversion(cl.conversor.moneda.Moneda,cl.conversor.moneda.Moneda,java.lang.String)"},{"p":"cl.conversor.app","c":"Conversor","l":"Conversor()","u":"%3Cinit%3E()"},{"p":"cl.conversor.vista.cli","c":"ConversorCli","l":"ConversorCli()","u":"%3Cinit%3E()"},{"p":"cl.conversor.vista.gui","c":"ConversorGui","l":"ConversorGui()","u":"%3Cinit%3E()"},{"p":"cl.conversor.vista.tui","c":"ConversorTui","l":"ConversorTui()","u":"%3Cinit%3E()"},{"p":"cl.conversor.moneda","c":"Moneda","l":"convert(Moneda, Double)","u":"convert(cl.conversor.moneda.Moneda,java.lang.Double)"},{"p":"cl.conversor.vista.tui","c":"Color","l":"CYAN"},{"p":"cl.conversor.vista.tui","c":"Color","l":"CYAN_BKG"},{"p":"cl.conversor.vista.tui","c":"MenuPrincipal","l":"error_in()"},{"p":"cl.conversor.moneda","c":"Moneda","l":"esMoneda(String)","u":"esMoneda(java.lang.String)"},{"p":"cl.conversor.moneda","c":"Moneda","l":"EUR"},{"p":"cl.conversor.moneda","c":"Moneda","l":"GBP"},{"p":"cl.conversor.moneda","c":"Moneda","l":"getBase(BigDecimal)","u":"getBase(java.math.BigDecimal)"},{"p":"cl.conversor.vista.tui","c":"Color","l":"GREEN"},{"p":"cl.conversor.vista.tui","c":"Color","l":"GREEN_BKG"},{"p":"cl.conversor.moneda","c":"Moneda","l":"JPY"},{"p":"cl.conversor.moneda","c":"Moneda","l":"KRW"},{"p":"cl.conversor.app","c":"Conversor","l":"main(String[])","u":"main(java.lang.String[])"},{"p":"cl.conversor.vista.cli","c":"ConversorCli","l":"main(String[])","u":"main(java.lang.String[])"},{"p":"cl.conversor.vista.gui","c":"ConversorGui","l":"main(String[])","u":"main(java.lang.String[])"},{"p":"cl.conversor.vista.tui","c":"ConversorTui","l":"main(String[])","u":"main(java.lang.String[])"},{"p":"cl.conversor.vista.tui","c":"MenuPrincipal","l":"menu"},{"p":"cl.conversor.vista.tui","c":"MenuPrincipal","l":"menu_opcs()"},{"p":"cl.conversor.vista.gui","c":"ConversorGui","l":"menuConversion()"},{"p":"cl.conversor.vista.tui","c":"MenuPrincipal","l":"MenuPrincipal(String)","u":"%3Cinit%3E(java.lang.String)"},{"p":"cl.conversor.moneda","c":"Moneda","l":"monedaString(Double)","u":"monedaString(java.lang.Double)"},{"p":"cl.conversor.vista.tui","c":"Color","l":"PURPLE"},{"p":"cl.conversor.vista.tui","c":"Color","l":"PURPLE_BCG"},{"p":"cl.conversor.moneda","c":"Moneda","l":"rate()"},{"p":"cl.conversor.vista.tui","c":"Color","l":"RED"},{"p":"cl.conversor.vista.tui","c":"Color","l":"RED_BKG"},{"p":"cl.conversor.vista.tui","c":"Color","l":"RESET"},{"p":"cl.conversor.vista.tui","c":"MenuPrincipal","l":"resultado(String...)","u":"resultado(java.lang.String...)"},{"p":"cl.conversor.moneda","c":"Moneda","l":"symbol()"},{"p":"cl.conversor.vista.tui","c":"MenuPrincipal","l":"titulo"},{"p":"cl.conversor.moneda","c":"Moneda","l":"USD"},{"p":"cl.conversor.moneda","c":"Moneda","l":"valueOf(String)","u":"valueOf(java.lang.String)"},{"p":"cl.conversor.vista.tui","c":"Color","l":"valueOf(String)","u":"valueOf(java.lang.String)"},{"p":"cl.conversor.moneda","c":"Moneda","l":"values()"},{"p":"cl.conversor.vista.tui","c":"Color","l":"values()"},{"p":"cl.conversor.vista.tui","c":"Color","l":"WHITE"},{"p":"cl.conversor.vista.tui","c":"Color","l":"WHITE_BKG"},{"p":"cl.conversor.vista.tui","c":"Color","l":"YELLOW"},{"p":"cl.conversor.vista.tui","c":"Color","l":"YELLOW_BKG"}];updateSearchResults();
memberSearchIndex = [{"p":"cl.conversor.vista.cli","c":"ConversorCli","l":"ayuda()"},{"p":"cl.conversor.vista.tui","c":"MenuPrincipal","l":"baner()"},{"p":"cl.conversor.vista.tui","c":"MenuPrincipal","l":"baner(String)","u":"baner(java.lang.String)"},{"p":"cl.conversor.vista.tui","c":"Color","l":"BLACK"},{"p":"cl.conversor.vista.tui","c":"Color","l":"BLACK_BKG"},{"p":"cl.conversor.vista.tui","c":"Color","l":"BLUE"},{"p":"cl.conversor.vista.tui","c":"Color","l":"BLUE_BKG"},{"p":"cl.conversor.vista.tui","c":"LimpiarConsola","l":"clear()"},{"p":"cl.conversor.moneda","c":"Moneda","l":"CLP"},{"p":"cl.conversor.vista.tui","c":"Color","l":"code()"},{"p":"cl.conversor.vista.cli","c":"ConversorCli","l":"conversion(Moneda, Moneda, Double)","u":"conversion(cl.conversor.moneda.Moneda,cl.conversor.moneda.Moneda,java.lang.Double)"},{"p":"cl.conversor.vista.tui","c":"ConversorTui","l":"conversion(Moneda, Moneda, Double)","u":"conversion(cl.conversor.moneda.Moneda,cl.conversor.moneda.Moneda,java.lang.Double)"},{"p":"cl.conversor.vista.tui","c":"ConversorTui","l":"conversion(Moneda, Moneda, String)","u":"conversion(cl.conversor.moneda.Moneda,cl.conversor.moneda.Moneda,java.lang.String)"},{"p":"cl.conversor.app","c":"Conversor","l":"Conversor()","u":"%3Cinit%3E()"},{"p":"cl.conversor.vista.cli","c":"ConversorCli","l":"ConversorCli()","u":"%3Cinit%3E()"},{"p":"cl.conversor.vista.gui","c":"ConversorGui","l":"ConversorGui()","u":"%3Cinit%3E()"},{"p":"cl.conversor.vista.gui","c":"ConversorMoneda","l":"ConversorMoneda()","u":"%3Cinit%3E()"},{"p":"cl.conversor.vista.tui","c":"ConversorTui","l":"ConversorTui()","u":"%3Cinit%3E()"},{"p":"cl.conversor.moneda","c":"Moneda","l":"convert(Moneda, Double)","u":"convert(cl.conversor.moneda.Moneda,java.lang.Double)"},{"p":"cl.conversor.vista.tui","c":"Color","l":"CYAN"},{"p":"cl.conversor.vista.tui","c":"Color","l":"CYAN_BKG"},{"p":"cl.conversor.vista.tui","c":"MenuPrincipal","l":"error_in()"},{"p":"cl.conversor.moneda","c":"Moneda","l":"esMoneda(String)","u":"esMoneda(java.lang.String)"},{"p":"cl.conversor.moneda","c":"Moneda","l":"EUR"},{"p":"cl.conversor.moneda","c":"Moneda","l":"GBP"},{"p":"cl.conversor.moneda","c":"Moneda","l":"getBase(BigDecimal)","u":"getBase(java.math.BigDecimal)"},{"p":"cl.conversor.vista.tui","c":"Color","l":"GREEN"},{"p":"cl.conversor.vista.tui","c":"Color","l":"GREEN_BKG"},{"p":"cl.conversor.moneda","c":"Moneda","l":"JPY"},{"p":"cl.conversor.moneda","c":"Moneda","l":"KRW"},{"p":"cl.conversor.app","c":"Conversor","l":"main(String[])","u":"main(java.lang.String[])"},{"p":"cl.conversor.vista.cli","c":"ConversorCli","l":"main(String[])","u":"main(java.lang.String[])"},{"p":"cl.conversor.vista.gui","c":"ConversorGui","l":"main(String[])","u":"main(java.lang.String[])"},{"p":"cl.conversor.vista.tui","c":"ConversorTui","l":"main(String[])","u":"main(java.lang.String[])"},{"p":"cl.conversor.vista.tui","c":"MenuPrincipal","l":"menu"},{"p":"cl.conversor.vista.tui","c":"MenuPrincipal","l":"menu_opcs()"},{"p":"cl.conversor.vista.gui","c":"ConversorMoneda","l":"menuConversion()"},{"p":"cl.conversor.vista.tui","c":"MenuPrincipal","l":"MenuPrincipal(String)","u":"%3Cinit%3E(java.lang.String)"},{"p":"cl.conversor.moneda","c":"Moneda","l":"monedaString(Double)","u":"monedaString(java.lang.Double)"},{"p":"cl.conversor.vista.gui","c":"ConversorMoneda","l":"montoConversion(String, String)","u":"montoConversion(java.lang.String,java.lang.String)"},{"p":"cl.conversor.vista.tui","c":"Color","l":"PURPLE"},{"p":"cl.conversor.vista.tui","c":"Color","l":"PURPLE_BCG"},{"p":"cl.conversor.moneda","c":"Moneda","l":"rate()"},{"p":"cl.conversor.vista.tui","c":"Color","l":"RED"},{"p":"cl.conversor.vista.tui","c":"Color","l":"RED_BKG"},{"p":"cl.conversor.vista.tui","c":"Color","l":"RESET"},{"p":"cl.conversor.vista.tui","c":"MenuPrincipal","l":"resultado(String...)","u":"resultado(java.lang.String...)"},{"p":"cl.conversor.vista.gui","c":"ConversorMoneda","l":"resultadoConversion(Moneda, Moneda)","u":"resultadoConversion(cl.conversor.moneda.Moneda,cl.conversor.moneda.Moneda)"},{"p":"cl.conversor.moneda","c":"Moneda","l":"symbol()"},{"p":"cl.conversor.vista.tui","c":"MenuPrincipal","l":"titulo"},{"p":"cl.conversor.moneda","c":"Moneda","l":"USD"},{"p":"cl.conversor.moneda","c":"Moneda","l":"valueOf(String)","u":"valueOf(java.lang.String)"},{"p":"cl.conversor.vista.tui","c":"Color","l":"valueOf(String)","u":"valueOf(java.lang.String)"},{"p":"cl.conversor.moneda","c":"Moneda","l":"values()"},{"p":"cl.conversor.vista.tui","c":"Color","l":"values()"},{"p":"cl.conversor.vista.tui","c":"Color","l":"WHITE"},{"p":"cl.conversor.vista.tui","c":"Color","l":"WHITE_BKG"},{"p":"cl.conversor.vista.tui","c":"Color","l":"YELLOW"},{"p":"cl.conversor.vista.tui","c":"Color","l":"YELLOW_BKG"}];updateSearchResults();

View File

@ -1,11 +1,11 @@
<!DOCTYPE HTML>
<html lang="en">
<head>
<!-- Generated by javadoc (17) on Mon Jul 31 00:32:02 CLT 2023 -->
<!-- Generated by javadoc (17) on Fri Aug 04 19:20:41 CLT 2023 -->
<title>Class Hierarchy</title>
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta name="dc.created" content="2023-07-31">
<meta name="dc.created" content="2023-08-04">
<meta name="description" content="class tree">
<meta name="generator" content="javadoc/TreeWriter">
<link rel="stylesheet" type="text/css" href="stylesheet.css" title="Style">
@ -75,6 +75,7 @@ loadScripts(document, 'script');</script>
<li class="circle">javax.swing.<a href="https://docs.oracle.com/en/java/javase/17/docs/api/java.desktop/javax/swing/JFrame.html" class="type-name-link external-link" title="class or interface in javax.swing">JFrame</a> (implements javax.accessibility.<a href="https://docs.oracle.com/en/java/javase/17/docs/api/java.desktop/javax/accessibility/Accessible.html" title="class or interface in javax.accessibility" class="external-link">Accessible</a>, javax.swing.<a href="https://docs.oracle.com/en/java/javase/17/docs/api/java.desktop/javax/swing/RootPaneContainer.html" title="class or interface in javax.swing" class="external-link">RootPaneContainer</a>, javax.swing.<a href="https://docs.oracle.com/en/java/javase/17/docs/api/java.desktop/javax/swing/WindowConstants.html" title="class or interface in javax.swing" class="external-link">WindowConstants</a>)
<ul>
<li class="circle">cl.conversor.vista.gui.<a href="conversor_alura_one/cl/conversor/vista/gui/ConversorGui.html" class="type-name-link" title="class in cl.conversor.vista.gui">ConversorGui</a></li>
<li class="circle">cl.conversor.vista.gui.<a href="conversor_alura_one/cl/conversor/vista/gui/ConversorMoneda.html" class="type-name-link" title="class in cl.conversor.vista.gui">ConversorMoneda</a></li>
</ul>
</li>
</ul>

View File

@ -1,11 +1,11 @@
<!DOCTYPE HTML>
<html lang="en">
<head>
<!-- Generated by javadoc (17) on Mon Jul 31 00:32:02 CLT 2023 -->
<!-- Generated by javadoc (17) on Fri Aug 04 19:20:41 CLT 2023 -->
<title>Serialized Form</title>
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta name="dc.created" content="2023-07-31">
<meta name="dc.created" content="2023-08-04">
<meta name="description" content="serialized forms">
<meta name="generator" content="javadoc/SerializedFormWriterImpl">
<link rel="stylesheet" type="text/css" href="stylesheet.css" title="Style">
@ -86,47 +86,25 @@ loadScripts(document, 'script');</script>
<pre><a href="https://docs.oracle.com/en/java/javase/17/docs/api/java.desktop/javax/swing/JMenuItem.html" title="class or interface in javax.swing" class="external-link">JMenuItem</a> opcion1</pre>
</li>
<li class="block-list">
<h5>opcion10</h5>
<pre><a href="https://docs.oracle.com/en/java/javase/17/docs/api/java.desktop/javax/swing/JMenuItem.html" title="class or interface in javax.swing" class="external-link">JMenuItem</a> opcion10</pre>
</li>
<li class="block-list">
<h5>opcion2</h5>
<pre><a href="https://docs.oracle.com/en/java/javase/17/docs/api/java.desktop/javax/swing/JMenuItem.html" title="class or interface in javax.swing" class="external-link">JMenuItem</a> opcion2</pre>
</li>
<li class="block-list">
<h5>opcion3</h5>
<pre><a href="https://docs.oracle.com/en/java/javase/17/docs/api/java.desktop/javax/swing/JMenuItem.html" title="class or interface in javax.swing" class="external-link">JMenuItem</a> opcion3</pre>
</li>
<li class="block-list">
<h5>opcion4</h5>
<pre><a href="https://docs.oracle.com/en/java/javase/17/docs/api/java.desktop/javax/swing/JMenuItem.html" title="class or interface in javax.swing" class="external-link">JMenuItem</a> opcion4</pre>
</li>
<li class="block-list">
<h5>opcion5</h5>
<pre><a href="https://docs.oracle.com/en/java/javase/17/docs/api/java.desktop/javax/swing/JMenuItem.html" title="class or interface in javax.swing" class="external-link">JMenuItem</a> opcion5</pre>
</li>
<li class="block-list">
<h5>opcion6</h5>
<pre><a href="https://docs.oracle.com/en/java/javase/17/docs/api/java.desktop/javax/swing/JMenuItem.html" title="class or interface in javax.swing" class="external-link">JMenuItem</a> opcion6</pre>
</li>
<li class="block-list">
<h5>opcion7</h5>
<pre><a href="https://docs.oracle.com/en/java/javase/17/docs/api/java.desktop/javax/swing/JMenuItem.html" title="class or interface in javax.swing" class="external-link">JMenuItem</a> opcion7</pre>
</li>
<li class="block-list">
<h5>opcion8</h5>
<pre><a href="https://docs.oracle.com/en/java/javase/17/docs/api/java.desktop/javax/swing/JMenuItem.html" title="class or interface in javax.swing" class="external-link">JMenuItem</a> opcion8</pre>
</li>
<li class="block-list">
<h5>opcion9</h5>
<pre><a href="https://docs.oracle.com/en/java/javase/17/docs/api/java.desktop/javax/swing/JMenuItem.html" title="class or interface in javax.swing" class="external-link">JMenuItem</a> opcion9</pre>
</li>
</ul>
</section>
</li>
</ul>
</section>
</li>
<li>
<section class="serialized-class-details" id="cl.conversor.vista.gui.ConversorMoneda">
<h3>Class&nbsp;<a href="conversor_alura_one/cl/conversor/vista/gui/ConversorMoneda.html" title="class in cl.conversor.vista.gui">cl.conversor.vista.gui.ConversorMoneda</a></h3>
<div class="type-signature">class ConversorMoneda extends <a href="https://docs.oracle.com/en/java/javase/17/docs/api/java.desktop/javax/swing/JFrame.html" title="class or interface in javax.swing" class="external-link">JFrame</a> implements <a href="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/io/Serializable.html" title="class or interface in java.io" class="external-link">Serializable</a></div>
<dl class="name-value">
<dt>serialVersionUID:</dt>
<dd>1L</dd>
</dl>
</section>
</li>
</ul>
</section>
</li>

View File

@ -1 +1 @@
typeSearchIndex = [{"l":"All Classes and Interfaces","u":"allclasses-index.html"},{"p":"cl.conversor.vista.tui","l":"Color"},{"p":"cl.conversor.app","l":"Conversor"},{"p":"cl.conversor.vista.cli","l":"ConversorCli"},{"p":"cl.conversor.vista.gui","l":"ConversorGui"},{"p":"cl.conversor.vista.tui","l":"ConversorTui"},{"p":"cl.conversor.vista.tui","l":"LimpiarConsola"},{"p":"cl.conversor.vista.tui","l":"MenuPrincipal"},{"p":"cl.conversor.moneda","l":"Moneda"}];updateSearchResults();
typeSearchIndex = [{"l":"All Classes and Interfaces","u":"allclasses-index.html"},{"p":"cl.conversor.vista.tui","l":"Color"},{"p":"cl.conversor.app","l":"Conversor"},{"p":"cl.conversor.vista.cli","l":"ConversorCli"},{"p":"cl.conversor.vista.gui","l":"ConversorGui"},{"p":"cl.conversor.vista.gui","l":"ConversorMoneda"},{"p":"cl.conversor.vista.tui","l":"ConversorTui"},{"p":"cl.conversor.vista.tui","l":"LimpiarConsola"},{"p":"cl.conversor.vista.tui","l":"MenuPrincipal"},{"p":"cl.conversor.moneda","l":"Moneda"}];updateSearchResults();

BIN
media/converter_icon.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 357 KiB

View File

@ -1,6 +1,8 @@
/**
* Currency converter for Alura Challenge - G5 ONE
* Converter application for Alura Challenge #2 - G5 ONE
* @version 0.1
* @author DevFzn
* @email devfzn@proton.me
*/
package cl.conversor.app;

View File

@ -12,7 +12,7 @@ public enum Moneda {
CLP ("\uf155", new BigDecimal("827.786512")),
EUR ("\uf153", new BigDecimal("0.904528")),
GBP ("\uf154", new BigDecimal("0.775054")),
JPY ("\uffe5", new BigDecimal("140.92065996")),
JPY ("\uf157", new BigDecimal("140.92065996")),
KRW ("\uf159", new BigDecimal("1276.580533"));
private final String symbol;

View File

@ -1,13 +1,19 @@
/**
*
* Converter application for Alura Challenge #2 - G5 ONE
*/
package cl.conversor.vista.gui;
import javax.swing.*;
import java.awt.*;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import java.io.IOException;
import javax.swing.ImageIcon;
import javax.swing.JFrame;
import javax.swing.JMenu;
import javax.swing.JMenuBar;
import javax.swing.JMenuItem;
import javax.swing.JOptionPane;
import javax.swing.JPanel;
import javax.swing.SwingUtilities;
/**
* Main class for <b>GUI</b> converter application
@ -15,96 +21,75 @@ import java.io.IOException;
public class ConversorGui extends JFrame {
private static final long serialVersionUID = 1L;
private JMenuBar menuBar;
private JMenu menu;
private JMenuItem opcion0;
private JMenuItem opcion1;
private JMenuItem opcion2;
private JMenuItem opcion3;
private JMenuItem opcion4;
private JMenuItem opcion5;
private JMenuItem opcion6;
private JMenuItem opcion7;
private JMenuItem opcion8;
private JMenuItem opcion9;
private JMenuItem opcion10;
private JMenuBar menuBar;
private JMenu menu;
private JMenuItem opcion0;
private JMenuItem opcion1;
private JMenuItem opcion2;
public ConversorGui() {
try {
Image icono;
icono = javax.imageio.ImageIO.read(new java.io.File("media/logo_green.png"));
setIconImage(icono);
} catch (IOException e) {
ImageIcon icono = new ImageIcon(getClass().getResource("/imagenes/logo_green.png"));
setIconImage(icono.getImage());
} catch (Exception e) {
System.out.println("Icono no encontrado");
e.printStackTrace();
}
setSize(600,400);
setSize(330,100);
setTitle("Conversor Alura G5 ONE");
setLocationRelativeTo(null);
setDefaultCloseOperation(EXIT_ON_CLOSE);
JPanel panel = new JPanel();
menuConversion();
menuPrincipal();
panel.add(menuBar);
add(panel);
opcion0.addActionListener(new ActionListener() {
@Override
public void actionPerformed(ActionEvent e) {
JOptionPane.showMessageDialog(panel, "Finalizando conversor");
JOptionPane.showMessageDialog(
menuBar.getParent(), "Finalizando conversor",
"Cerrando aplicación", JOptionPane.INFORMATION_MESSAGE);
System.exit(0);
}
});
opcion1.addActionListener(new ActionListener() {
@Override
public void actionPerformed(ActionEvent e) {
panel.remove(menuBar);
panel.add(ConversorMoneda.menuConversion());
add(panel);
panel.revalidate();
}
});
}
public void menuConversion() {
private void menuPrincipal() {
menuBar = new JMenuBar();
menu = new JMenu("Elige una opción");
menu.setMnemonic('e');
opcion0 = new JMenuItem("Salir");
opcion1 = new JMenuItem("Convertir CLP a USD");
opcion2 = new JMenuItem("Convertir CLP a EUR");
opcion3 = new JMenuItem("Convertir CLP a GBP");
opcion4 = new JMenuItem("Convertir CLP a JPY");
opcion5 = new JMenuItem("Convertir CLP a KRW");
opcion6 = new JMenuItem("Convertir USD a CLP");
opcion7 = new JMenuItem("Convertir EUR a CLP");
opcion8 = new JMenuItem("Convertir GBP a CLP");
opcion9 = new JMenuItem("Convertir JPY a CLP");
opcion10 = new JMenuItem("Convertir KRW a CLP");
opcion1 = new JMenuItem("Conversor de Monedas");
opcion2 = new JMenuItem("Otros (pendiente)");
opcion0.setMnemonic('s');
opcion1.setMnemonic('1');
opcion2.setMnemonic('2');
opcion3.setMnemonic('3');
opcion4.setMnemonic('4');
opcion5.setMnemonic('5');
opcion6.setMnemonic('6');
opcion7.setMnemonic('7');
opcion8.setMnemonic('8');
opcion9.setMnemonic('9');
opcion10.setMnemonic('0');
opcion1.setMnemonic('c');
opcion2.setMnemonic('o');
opcion2.setEnabled(false);
menu.add(opcion1);
menu.add(opcion2);
menu.add(opcion3);
menu.add(opcion4);
menu.add(opcion5);
menu.add(opcion6);
menu.add(opcion7);
menu.add(opcion8);
menu.add(opcion9);
menu.add(opcion10);
menu.add(opcion0);
menuBar.add(menu);
}
/**
* @param args Not used
*/
public static void main(String[] args) {
System.out.println("Conversor GUI version \u2665");
//System.out.println("Conversor GUI version \u2665");
SwingUtilities.invokeLater(() -> {
ConversorGui aplicacion = new ConversorGui();
aplicacion.setVisible(true);

View File

@ -0,0 +1,210 @@
package cl.conversor.vista.gui;
import java.awt.Component;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import javax.swing.JFrame;
import javax.swing.JMenu;
import javax.swing.JMenuBar;
import javax.swing.JMenuItem;
import javax.swing.JOptionPane;
import cl.conversor.moneda.Moneda;
/**
* Currency converter class
*/
public class ConversorMoneda extends JFrame {
private static final long serialVersionUID = 1L;
private static final String titulo = "Conversión de Moneda";
private static JMenuBar menuBarOpcs;
private static JMenu menuOpcs;
private static JMenuItem opcion0;
private static JMenuItem opcion1;
private static JMenuItem opcion2;
private static JMenuItem opcion3;
private static JMenuItem opcion4;
private static JMenuItem opcion5;
private static JMenuItem opcion6;
private static JMenuItem opcion7;
private static JMenuItem opcion8;
private static JMenuItem opcion9;
private static JMenuItem opcion10;
/** Creates a JMenuBar with currency converter options
* @return JMenuBar
*/
public static Component menuConversion() {
menuBarOpcs = new JMenuBar();
menuOpcs = new JMenu("Opciones de conversión");
menuOpcs.setMnemonic('o');
opcion0 = new JMenuItem("Salir");
opcion1 = new JMenuItem("Convertir CLP a USD");
opcion2 = new JMenuItem("Convertir CLP a EUR");
opcion3 = new JMenuItem("Convertir CLP a GBP");
opcion4 = new JMenuItem("Convertir CLP a JPY");
opcion5 = new JMenuItem("Convertir CLP a KRW");
opcion6 = new JMenuItem("Convertir USD a CLP");
opcion7 = new JMenuItem("Convertir EUR a CLP");
opcion8 = new JMenuItem("Convertir GBP a CLP");
opcion9 = new JMenuItem("Convertir JPY a CLP");
opcion10 = new JMenuItem("Convertir KRW a CLP");
opcion0.setMnemonic('s');
opcion1.setMnemonic('1');
opcion2.setMnemonic('2');
opcion3.setMnemonic('3');
opcion4.setMnemonic('4');
opcion5.setMnemonic('5');
opcion6.setMnemonic('6');
opcion7.setMnemonic('7');
opcion8.setMnemonic('8');
opcion9.setMnemonic('9');
opcion10.setMnemonic('0');
menuOpcs.add(opcion1);
menuOpcs.add(opcion2);
menuOpcs.add(opcion3);
menuOpcs.add(opcion4);
menuOpcs.add(opcion5);
menuOpcs.add(opcion6);
menuOpcs.add(opcion7);
menuOpcs.add(opcion8);
menuOpcs.add(opcion9);
menuOpcs.add(opcion10);
menuOpcs.add(opcion0);
menuBarOpcs.add(menuOpcs);
opcion0.addActionListener(new ActionListener() {
@Override
public void actionPerformed(ActionEvent e) {
JOptionPane.showMessageDialog(
menuOpcs, "Finalizando conversor",
"Cerrando aplicación", JOptionPane.INFORMATION_MESSAGE);
System.exit(0);
}
});
opcion1.addActionListener(new ActionListener() {
@Override
public void actionPerformed(ActionEvent e) {
resultadoConversion(Moneda.CLP, Moneda.USD);
}
});
opcion2.addActionListener(new ActionListener() {
@Override
public void actionPerformed(ActionEvent e) {
resultadoConversion(Moneda.CLP, Moneda.EUR);
}
});
opcion3.addActionListener(new ActionListener() {
@Override
public void actionPerformed(ActionEvent e) {
resultadoConversion(Moneda.CLP, Moneda.GBP);
}
});
opcion4.addActionListener(new ActionListener() {
@Override
public void actionPerformed(ActionEvent e) {
resultadoConversion(Moneda.CLP, Moneda.JPY);
}
});
opcion5.addActionListener(new ActionListener() {
@Override
public void actionPerformed(ActionEvent e) {
resultadoConversion(Moneda.CLP, Moneda.KRW);
}
});
opcion6.addActionListener(new ActionListener() {
@Override
public void actionPerformed(ActionEvent e) {
resultadoConversion(Moneda.USD, Moneda.CLP);
}
});
opcion7.addActionListener(new ActionListener() {
@Override
public void actionPerformed(ActionEvent e) {
resultadoConversion(Moneda.EUR, Moneda.CLP);
}
});
opcion8.addActionListener(new ActionListener() {
@Override
public void actionPerformed(ActionEvent e) {
resultadoConversion(Moneda.GBP, Moneda.CLP);
}
});
opcion9.addActionListener(new ActionListener() {
@Override
public void actionPerformed(ActionEvent e) {
resultadoConversion(Moneda.JPY, Moneda.CLP);
}
});
opcion10.addActionListener(new ActionListener() {
@Override
public void actionPerformed(ActionEvent e) {
resultadoConversion(Moneda.KRW, Moneda.CLP);
}
});
return menuBarOpcs;
}
/**
* Handles user input for amount to convert. Validates, converts and return value.
* @param orig String origin currency
* @param dest String target currency
* @return Double amount to convert
*/
public static Double montoConversion(String orig, String dest) {
Double montoIn = 0D;
String resp;
while (montoIn == 0D) {
try {
resp = JOptionPane.showInputDialog(
menuBarOpcs, "Ingresa el monto a convertir",
"Conversion "+orig+" a "+dest,
JOptionPane.QUESTION_MESSAGE);
if (resp == null) {
return null;
} else {
return montoIn = Double.valueOf(resp);
}
} catch (NumberFormatException e) {
JOptionPane.showMessageDialog(
menuBarOpcs, "Debes ingresar un número válido",
titulo, JOptionPane.INFORMATION_MESSAGE);
}
}
return null;
}
/**
* Shows result of currency conversion
* @param orig Moneda origin currency
* @param dest Moneda target currency
*/
public static void resultadoConversion(Moneda orig, Moneda dest) {
Double monto = montoConversion(orig.name(), dest.name());
if (monto != null) {
StringBuilder resultado = new StringBuilder();
resultado.append(orig.symbol()+" "+Moneda.monedaString(monto)+" "+orig.name()+" equivalen a ");
resultado.append(dest.symbol()+" "+Moneda.monedaString(orig.convert(dest, monto)));
resultado.append(" "+dest.name());
JOptionPane.showMessageDialog(menuBarOpcs, resultado.toString(), titulo, JOptionPane.INFORMATION_MESSAGE);
}
}
}

View File

Before

Width:  |  Height:  |  Size: 48 KiB

After

Width:  |  Height:  |  Size: 48 KiB

Binary file not shown.