<?xml version='1.0' encoding='UTF-8'?><?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?><feed xmlns='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearchrss/1.0/' xmlns:blogger='http://schemas.google.com/blogger/2008' xmlns:georss='http://www.georss.org/georss' xmlns:gd="http://schemas.google.com/g/2005" xmlns:thr='http://purl.org/syndication/thread/1.0'><id>tag:blogger.com,1999:blog-3554248320209601234</id><updated>2024-12-18T19:29:30.267-08:00</updated><title type='text'>Ejercicios NETBEANS 6.5 - NETBEANS 6.8 - NETBEANS 7.1 - NETBEANS 7.2 - NETBEANS 7.3.</title><subtitle type='html'>Hola, aquí les presento ejercicios desarrollados en plataforma Netbeans 6.5 (para cualquier versión se aplica lo mismo). Estoy seguro que saldrán de varios apuros.&#xa;&#xa;NOTA: Los códigos están resueltos en imágenes explicadas y con los días seguiré publicando más ejercicios hasta llegar a practicar Base de Datos con SQL. Se vale agradecer chic@s.</subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://netbeanspractico.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3554248320209601234/posts/default?redirect=false'/><link rel='alternate' type='text/html' href='http://netbeanspractico.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><link rel='next' type='application/atom+xml' href='http://www.blogger.com/feeds/3554248320209601234/posts/default?start-index=26&amp;max-results=25&amp;redirect=false'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>30</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>25</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-3554248320209601234.post-3662784929777003801</id><published>2013-04-30T00:25:00.000-07:00</published><updated>2013-04-30T00:32:33.205-07:00</updated><title type='text'>Contar Vocales de una Palabra o Texto</title><content type='html'>&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiZxu7uaM6xYWzk0fTLll7U3sxL74vDvymcFugEZc0n77RQK34tqYPVJXQM4mhGXevCWCjr-Fpy_nFN7YNuuoKPwLoTz1WuannGTtfVE1pbhWJA1T0iTnO12GGdSfaEFdpq25ve0V3ND98R/s1600/Dibujo.JPG&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiZxu7uaM6xYWzk0fTLll7U3sxL74vDvymcFugEZc0n77RQK34tqYPVJXQM4mhGXevCWCjr-Fpy_nFN7YNuuoKPwLoTz1WuannGTtfVE1pbhWJA1T0iTnO12GGdSfaEFdpq25ve0V3ND98R/s1600/Dibujo.JPG&quot; height=&quot;156&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;span style=&quot;color: red;&quot;&gt;Este ejercicio nos enseñará a contar las vocales de una palabra o texto ingresado.&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;a name=&#39;more&#39;&gt;&lt;/a&gt;&lt;br /&gt;
Crearemos un método llamado &lt;b&gt;aceptar()&lt;/b&gt;, en el cual declaramos una variable llamada texto como &lt;b&gt;String&lt;/b&gt;, la cual a su vez recibirá el valor que contenga la caja de texto (&lt;span style=&quot;color: #6aa84f;&quot;&gt;&lt;b&gt;txtCuenta&lt;/b&gt;&lt;/span&gt;). también definiremos un contador llamado &lt;b&gt;cuentavocales&lt;/b&gt; como &lt;b&gt;&lt;span style=&quot;color: blue;&quot;&gt;int&lt;/span&gt;&lt;/b&gt;, que como su nombre lo indica, &lt;u&gt;nos contará las vocales de la palabra o texto que ingresemos&lt;/u&gt;. Luego recorreremos la palabra o texto, usando el bucle for y trabajaremos con el método &lt;b&gt;length&lt;/b&gt;, que nos da la longitud total de la misma. Al usar &lt;b&gt;charAt()&lt;/b&gt;, estamos diciendo que nos devuelva el caracter de la posición que estamos recorriendo. De esta manera comprobaremos si el caracter recorrido es una de las vocales (a, e, i, o, 
u). Luego, presentaremos el resultado en el label (&lt;span style=&quot;color: #6aa84f;&quot;&gt;&lt;b&gt;lblRespuesta&lt;/b&gt;&lt;/span&gt;).&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhQAczTaj4dU32oFj5GNbvsFrf0w6UT-FRvNzqspl5k1SpbwxDX-Bi40tZU4lDjOqSJrzXm9deB44b4T5cLfqFeuVwVItb8tZRPzPuLyKNOOUeQtu6cm07SEWcceDz0OB3xuHe5AwNjql0_/s1600/form1.JPG&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhQAczTaj4dU32oFj5GNbvsFrf0w6UT-FRvNzqspl5k1SpbwxDX-Bi40tZU4lDjOqSJrzXm9deB44b4T5cLfqFeuVwVItb8tZRPzPuLyKNOOUeQtu6cm07SEWcceDz0OB3xuHe5AwNjql0_/s1600/form1.JPG&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgC-mRDA8FnmYtF0y0Rb2IlHFD1YL6F85kaQFII8pfU2MUl9aiw479ownju-KkJPH03i3Aw87nZugFt6NYlauXb0F1jDeJ9OTSC0yiiYU4Sa_kJl00P-u8KWmuqezRYCevUhODgEWz62m2b/s1600/form2.JPG&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgC-mRDA8FnmYtF0y0Rb2IlHFD1YL6F85kaQFII8pfU2MUl9aiw479ownju-KkJPH03i3Aw87nZugFt6NYlauXb0F1jDeJ9OTSC0yiiYU4Sa_kJl00P-u8KWmuqezRYCevUhODgEWz62m2b/s1600/form2.JPG&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgECiZlMJF1uxGkKtV5OFuY80VmT2sU1TH5OTC1PKSGWG6Yt8TeXRytl4W_CccNuALdrUjWCyFlV4A8ENeJkSIUV05MdhmYNuZGDxLVUSNAOmKd9lB_ppzapqR7MdcArODhdIsfCoUDoeRl/s1600/voids.JPG&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgECiZlMJF1uxGkKtV5OFuY80VmT2sU1TH5OTC1PKSGWG6Yt8TeXRytl4W_CccNuALdrUjWCyFlV4A8ENeJkSIUV05MdhmYNuZGDxLVUSNAOmKd9lB_ppzapqR7MdcArODhdIsfCoUDoeRl/s1600/voids.JPG&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
El método&lt;b&gt; limpiar() &lt;/b&gt;nos servirá para borrar los contenidos. Por último, llamaremos a nuestros métodos desde sus respectivos botones.</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3554248320209601234/posts/default/3662784929777003801'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3554248320209601234/posts/default/3662784929777003801'/><link rel='alternate' type='text/html' href='http://netbeanspractico.blogspot.com/2013/04/contar-vocales-de-una-palabra-o-texto.html' title='Contar Vocales de una Palabra o Texto'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiZxu7uaM6xYWzk0fTLll7U3sxL74vDvymcFugEZc0n77RQK34tqYPVJXQM4mhGXevCWCjr-Fpy_nFN7YNuuoKPwLoTz1WuannGTtfVE1pbhWJA1T0iTnO12GGdSfaEFdpq25ve0V3ND98R/s72-c/Dibujo.JPG" height="72" width="72"/></entry><entry><id>tag:blogger.com,1999:blog-3554248320209601234.post-4610109594716022548</id><published>2013-04-28T21:44:00.003-07:00</published><updated>2013-04-28T21:44:34.209-07:00</updated><title type='text'>Uso de CheckBox</title><content type='html'>&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjbXuHCRi506PEx2AENsPDltiNWpGAuOdcCEXHN_nkzTpFHkezBEGQJmtDjI-MzaLgktPeloKKfhJBtQV2aj9JCB_bQjsNHjYy-Qs6YoE391a4kJWd0pS_blNcqBH8HfrIowh1VyXdUe6VH/s1600/Dibujo.JPG&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjbXuHCRi506PEx2AENsPDltiNWpGAuOdcCEXHN_nkzTpFHkezBEGQJmtDjI-MzaLgktPeloKKfhJBtQV2aj9JCB_bQjsNHjYy-Qs6YoE391a4kJWd0pS_blNcqBH8HfrIowh1VyXdUe6VH/s1600/Dibujo.JPG&quot; height=&quot;229&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;span style=&quot;color: red;&quot;&gt;Aprenderemos mediante un ejemplo el uso de CheckBox. Elegiremos una o varias carreras y las presentaremos como carreras elegidas.&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;a name=&#39;more&#39;&gt;&lt;/a&gt;&lt;br /&gt;
Crearemos un método llamado &lt;b&gt;carreras()&lt;/b&gt;, en el cual declaramos una variable llamada &lt;b&gt;mensaje&lt;/b&gt; como &lt;b&gt;String&lt;/b&gt; y le asignaremos el valor de cadena &quot;Carreras Elegidas&quot;. Para cada jCheckBox llamaremos a la propiedad &lt;b&gt;isSelected&lt;/b&gt;, que devuelve&lt;b&gt;&lt;span style=&quot;color: blue;&quot;&gt; true&lt;/span&gt;&lt;/b&gt; si el componente esta seleccionado, en caso contrario    devuelve &lt;b&gt;&lt;span style=&quot;color: blue;&quot;&gt;false&lt;/span&gt;&lt;/b&gt;. &lt;b&gt;isSelected&lt;/b&gt; es la propiedad más usada de un jCheckBox.&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiwaQwJKggMZdw3Mp6-qAIR3HIt7NyQ9EfHPWzO9wHQ5daKMCkLR9SDwm1n5JInpX0EYjrxABt7o4E36ImMUuc3nA4TOL6sMfUJsFIIjruEHmd0rUpGsHQzuQIPUVN1_w4w1a5GZSPZTZbs/s1600/form1.JPG&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiwaQwJKggMZdw3Mp6-qAIR3HIt7NyQ9EfHPWzO9wHQ5daKMCkLR9SDwm1n5JInpX0EYjrxABt7o4E36ImMUuc3nA4TOL6sMfUJsFIIjruEHmd0rUpGsHQzuQIPUVN1_w4w1a5GZSPZTZbs/s1600/form1.JPG&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
Crearemos también un método &lt;b&gt;limpiar()&lt;/b&gt;, que limpiará los contenidos para el label (&lt;span style=&quot;color: #6aa84f;&quot;&gt;&lt;b&gt;lblRespuesta&lt;/b&gt;&lt;/span&gt;) y los jCheckBox. A la propiedad &lt;b&gt;setSelected &lt;/b&gt;le diremos que nos devuelva&lt;b&gt;&lt;span style=&quot;color: blue;&quot;&gt; false&lt;/span&gt;&lt;/b&gt;, es decir, que &quot;no nos muestre como seleccionado&quot;.&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjQEwVh6gF1faqCvcTFTI_xFTH2VwgIMm9XEyPIbaYUuxMHOBOnjn-8pOzu4KsbVKmbQoRFsrX6qd1VauLA-OtyjJrQdopdl897tO_Z272dTgXlFo31okGnpin8dKbzmRWrYKp53rjR5Q2y/s1600/form2.JPG&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjQEwVh6gF1faqCvcTFTI_xFTH2VwgIMm9XEyPIbaYUuxMHOBOnjn-8pOzu4KsbVKmbQoRFsrX6qd1VauLA-OtyjJrQdopdl897tO_Z272dTgXlFo31okGnpin8dKbzmRWrYKp53rjR5Q2y/s1600/form2.JPG&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiG8cQYkiug2CWO1ooa07K79GHbf852eOr2-AzNp9HJ-h1mcZ1jlaEeVoGOr-iM7M3XYMZCU_viminFBvTBsoMfZ0xSmuVcNRC2EIr_jTOTcTucxtLuisBMg5I9De5DnsVZxjVEcSPGKgWY/s1600/voids.JPG&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiG8cQYkiug2CWO1ooa07K79GHbf852eOr2-AzNp9HJ-h1mcZ1jlaEeVoGOr-iM7M3XYMZCU_viminFBvTBsoMfZ0xSmuVcNRC2EIr_jTOTcTucxtLuisBMg5I9De5DnsVZxjVEcSPGKgWY/s1600/voids.JPG&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
Por último, llamaremos a nuestros métodos creados desde sus respectivos botones.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3554248320209601234/posts/default/4610109594716022548'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3554248320209601234/posts/default/4610109594716022548'/><link rel='alternate' type='text/html' href='http://netbeanspractico.blogspot.com/2013/04/uso-de-checkbox.html' title='Uso de CheckBox'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjbXuHCRi506PEx2AENsPDltiNWpGAuOdcCEXHN_nkzTpFHkezBEGQJmtDjI-MzaLgktPeloKKfhJBtQV2aj9JCB_bQjsNHjYy-Qs6YoE391a4kJWd0pS_blNcqBH8HfrIowh1VyXdUe6VH/s72-c/Dibujo.JPG" height="72" width="72"/></entry><entry><id>tag:blogger.com,1999:blog-3554248320209601234.post-2046505869244621506</id><published>2013-04-26T23:03:00.005-07:00</published><updated>2013-04-28T01:13:28.584-07:00</updated><title type='text'>Area de un Círculo ingresando el Radio</title><content type='html'>&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjuZ8UdmnxX84es7G_nc0brV2yQYC7EIsT-aozuz1V3-MpNwoExcQ5fCEHDJ10AoiUKL9KJwIhP3NMHOqd7-l_hQbEY6rddxM85iSQiyb27t5fWvZ8UGPVhyphenhyphenmRLAwQaPLR0FxgGRQvB3S9d/s1600/Dibujo.JPG&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjuZ8UdmnxX84es7G_nc0brV2yQYC7EIsT-aozuz1V3-MpNwoExcQ5fCEHDJ10AoiUKL9KJwIhP3NMHOqd7-l_hQbEY6rddxM85iSQiyb27t5fWvZ8UGPVhyphenhyphenmRLAwQaPLR0FxgGRQvB3S9d/s1600/Dibujo.JPG&quot; height=&quot;165&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;span style=&quot;color: red;&quot;&gt;Calcularemos el área de un círculo de acuerdo al radio ingresado.&lt;/span&gt;&lt;i&gt;&lt;br /&gt;&lt;/i&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;/div&gt;
&lt;a name=&#39;more&#39;&gt;&lt;/a&gt;&lt;br /&gt;
&lt;i&gt;Crearemos un método llamado&lt;b&gt; area()&lt;/b&gt;, en el que calcularemos el área del círculo de acuerdo al radio ingresado en la caja de texto (&lt;span style=&quot;color: #6aa84f;&quot;&gt;&lt;b&gt;txtRadio&lt;/b&gt;&lt;/span&gt;), cual valor convertiremos a entero usando &lt;b&gt;parseInt&lt;/b&gt;, para presentar los cálculos correspondientes en el label (&lt;span style=&quot;color: #6aa84f;&quot;&gt;&lt;b&gt;lblRespuesta&lt;/b&gt;&lt;/span&gt;). El metodo &lt;b&gt;limpiar()&lt;/b&gt; nos servirá para borrar los contenidos.&lt;/i&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjccJf623eAp1TuQUrts1IQB5XftuN7qyrQOQewpXDD1HjMfpW-UZHATtcchJAV3Emth1EO1fwBxXjRDeFVs8saHNbdOIZKIQxnycgpX4QZBRSyxjq9c6nivPbDVJYum-qisspPihS8L7p5/s1600/form1.JPG&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjccJf623eAp1TuQUrts1IQB5XftuN7qyrQOQewpXDD1HjMfpW-UZHATtcchJAV3Emth1EO1fwBxXjRDeFVs8saHNbdOIZKIQxnycgpX4QZBRSyxjq9c6nivPbDVJYum-qisspPihS8L7p5/s1600/form1.JPG&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhoOQOqRSMkd_U3arO7K3fg9GllzRFmVVMILYuz_1rByUZaZaugaLSwKtYHImPfq3HwUidjJcwyPOT-EGriCgrx3UEUxLcoUXmvS4uz8Vwmj_6DtG5Sxs7xOLYqWsannUlwzPH79W2qYzvS/s1600/form2.JPG&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhoOQOqRSMkd_U3arO7K3fg9GllzRFmVVMILYuz_1rByUZaZaugaLSwKtYHImPfq3HwUidjJcwyPOT-EGriCgrx3UEUxLcoUXmvS4uz8Vwmj_6DtG5Sxs7xOLYqWsannUlwzPH79W2qYzvS/s1600/form2.JPG&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;i&gt;Para terminar, llamaremos a nuestros métodos desde sus respectivos botones.&lt;/i&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3554248320209601234/posts/default/2046505869244621506'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3554248320209601234/posts/default/2046505869244621506'/><link rel='alternate' type='text/html' href='http://netbeanspractico.blogspot.com/2013/04/area-de-un-circulo-ingresando-el-radio.html' title='Area de un Círculo ingresando el Radio'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjuZ8UdmnxX84es7G_nc0brV2yQYC7EIsT-aozuz1V3-MpNwoExcQ5fCEHDJ10AoiUKL9KJwIhP3NMHOqd7-l_hQbEY6rddxM85iSQiyb27t5fWvZ8UGPVhyphenhyphenmRLAwQaPLR0FxgGRQvB3S9d/s72-c/Dibujo.JPG" height="72" width="72"/></entry><entry><id>tag:blogger.com,1999:blog-3554248320209601234.post-3545733144868419121</id><published>2013-04-26T21:40:00.000-07:00</published><updated>2013-04-28T01:10:25.847-07:00</updated><title type='text'>Minutos a Segundos</title><content type='html'>&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgy_l6nieISyhPI2_WGrCZj0yMGXQsre0uJqPJQ-jCLeenpiy6j-DHoCfPCFyrPbVup9phA4Wav1auSkmws50u29mzG-yNKwPk_3v9q5GGyLYefTDiAXlIm9IUbn3ghOwZQ7R1NX9Y4bROY/s1600/Dibujo.JPG&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgy_l6nieISyhPI2_WGrCZj0yMGXQsre0uJqPJQ-jCLeenpiy6j-DHoCfPCFyrPbVup9phA4Wav1auSkmws50u29mzG-yNKwPk_3v9q5GGyLYefTDiAXlIm9IUbn3ghOwZQ7R1NX9Y4bROY/s1600/Dibujo.JPG&quot; height=&quot;144&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;span style=&quot;color: red;&quot;&gt;Ejercicio simple en el que ingresaremos un número de minutos y presentaremos su equivalente en segundos.&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;a name=&#39;more&#39;&gt;&lt;/a&gt;&lt;br /&gt;
&lt;i&gt;Crearemos un método llamado &lt;b&gt;convertir()&lt;/b&gt;, en el que declaramos dos variables (&lt;b&gt;minutos, segundos&lt;/b&gt;) como &lt;b&gt;&lt;span style=&quot;color: blue;&quot;&gt;int&lt;/span&gt;&lt;/b&gt;. Luego pasaremos el texto ingresado en la caja de texto (&lt;b&gt;&lt;span style=&quot;color: #6aa84f;&quot;&gt;txtMinutos&lt;/span&gt;&lt;/b&gt;) a valor entero, usando &lt;b&gt;parseInt&lt;/b&gt; y; haremos los cálculos correspondientes de conversión para presentarlo en el label (&lt;b&gt;&lt;span style=&quot;color: #6aa84f;&quot;&gt;lblRespuesta&lt;/span&gt;&lt;/b&gt;). El método &lt;b&gt;limpiar()&lt;/b&gt; nos servirá para borrar los valores para un nuevo cálculo.&lt;/i&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjMHwOdgh0tj2RgNHup8ybCB9pf6u8SQmBHCWFuwCaBPHijOzQf6DB2YathY8i5VVWGwz5qXYVBj6NuUeTaV5mcAGRj9EWoLIb9deQ4LpduRyGxu5FizB4BzEofzoaoapWP_A9iRBJjp09y/s1600/form1.JPG&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjMHwOdgh0tj2RgNHup8ybCB9pf6u8SQmBHCWFuwCaBPHijOzQf6DB2YathY8i5VVWGwz5qXYVBj6NuUeTaV5mcAGRj9EWoLIb9deQ4LpduRyGxu5FizB4BzEofzoaoapWP_A9iRBJjp09y/s1600/form1.JPG&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiZodq3Hj5I4KNhhpfZ8f9jTwC5QktygTM_1pWjJqEfbPhM851YuuS1bhXskaChkYPPXgFiPONbHvJPnmgm0F44bhjpoY_cxRzsnztdaqeqtKdJWCDeKY0BztLawTQmI4d-Q3vct6dmkWqW/s1600/form2.JPG&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiZodq3Hj5I4KNhhpfZ8f9jTwC5QktygTM_1pWjJqEfbPhM851YuuS1bhXskaChkYPPXgFiPONbHvJPnmgm0F44bhjpoY_cxRzsnztdaqeqtKdJWCDeKY0BztLawTQmI4d-Q3vct6dmkWqW/s1600/form2.JPG&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;i&gt;Por último, llamaremos a nuestros métodos creados desde sus respectivos botones.&lt;/i&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3554248320209601234/posts/default/3545733144868419121'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3554248320209601234/posts/default/3545733144868419121'/><link rel='alternate' type='text/html' href='http://netbeanspractico.blogspot.com/2013/04/minutos-segundos.html' title='Minutos a Segundos'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgy_l6nieISyhPI2_WGrCZj0yMGXQsre0uJqPJQ-jCLeenpiy6j-DHoCfPCFyrPbVup9phA4Wav1auSkmws50u29mzG-yNKwPk_3v9q5GGyLYefTDiAXlIm9IUbn3ghOwZQ7R1NX9Y4bROY/s72-c/Dibujo.JPG" height="72" width="72"/></entry><entry><id>tag:blogger.com,1999:blog-3554248320209601234.post-8780840497922711557</id><published>2013-04-26T19:45:00.000-07:00</published><updated>2013-04-28T01:14:57.863-07:00</updated><title type='text'>Número a Letras</title><content type='html'>&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjWifYNxnhLw45r9zzaCKy5zEdN6q6BGNJvq_fVMeo4EtgfubTzOHcRPP-d9WI7G-WbgGsud5f_oRfWa3DJuUsTxfXxxxKGnKX_G08oP3POOTpgKCTf-yEPMOiQ2hW8vrhQ4shUsVCaBHze/s1600/Dibujo.JPG&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjWifYNxnhLw45r9zzaCKy5zEdN6q6BGNJvq_fVMeo4EtgfubTzOHcRPP-d9WI7G-WbgGsud5f_oRfWa3DJuUsTxfXxxxKGnKX_G08oP3POOTpgKCTf-yEPMOiQ2hW8vrhQ4shUsVCaBHze/s1600/Dibujo.JPG&quot; height=&quot;149&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;span style=&quot;color: red;&quot;&gt;En este ejercicio ingresaremos un número en el rango 1-20 y lo presentaremos transformado a letras. &lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;a name=&#39;more&#39;&gt;&lt;/a&gt;&lt;br /&gt;
&lt;i&gt;Crearemos un método llamado &lt;b&gt;convertir()&lt;/b&gt;, en el cual declaramos una variable llamada &lt;b&gt;numero&lt;/b&gt; como &lt;b&gt;&lt;span style=&quot;color: blue;&quot;&gt;int&lt;/span&gt;&lt;/b&gt; y, haremos uso de la estructura selectiva &lt;b&gt;&lt;span style=&quot;color: blue;&quot;&gt;switch&lt;/span&gt;&lt;/b&gt; para definir el número ingresado según el rango y dar la respuesta correspondiente en el label (&lt;span style=&quot;color: #6aa84f;&quot;&gt;&lt;b&gt;lblRespuesta&lt;/b&gt;&lt;/span&gt;). En caso el número ingresado se encuentre fuera del rango recibiremos un mensaje. El segundo método es &lt;b&gt;limpiar()&lt;/b&gt; que, como ya sabemos nos servirá para borrar contenidos.&lt;/i&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhfz2RmuTZuBfaGdtxRBUNbmJzy-g-LlLxyLoz48xzZ4Hjes__fTVaYoWer-44RQE9lBZKEQplQUoYuOYpX1snBjs6rAkLwlz8-XpKkic9FhMYdm2KQW6SL5r7rsw97SjUWkgT6NFS0Wg2h/s1600/form1.JPG&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhfz2RmuTZuBfaGdtxRBUNbmJzy-g-LlLxyLoz48xzZ4Hjes__fTVaYoWer-44RQE9lBZKEQplQUoYuOYpX1snBjs6rAkLwlz8-XpKkic9FhMYdm2KQW6SL5r7rsw97SjUWkgT6NFS0Wg2h/s1600/form1.JPG&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgTPLCS4hJgc3G_IOKYg0dWWBR2F7pdC244qilc2_uKLXJTT8OQ-9QeiNk-kSQUAIJ8ivyp3FkFRmQ995gARuRlHcONU97noYm6r0AfLRBnubaLo_ecZhhaM8LwsLcrGKLvBOaswDrWhbFO/s1600/form2.JPG&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgTPLCS4hJgc3G_IOKYg0dWWBR2F7pdC244qilc2_uKLXJTT8OQ-9QeiNk-kSQUAIJ8ivyp3FkFRmQ995gARuRlHcONU97noYm6r0AfLRBnubaLo_ecZhhaM8LwsLcrGKLvBOaswDrWhbFO/s1600/form2.JPG&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjxjR61ZVuMGSZWGDzuqAAfe3J7tiF6sPgZFZzcg3Zj4zDuof1INdnhbtkR_1E5aI9zmQzWKMlhzYxVgye2_BSH9fmNBbcyMKP030FfJhucLz3iiUGgDW54qGmNIJX48DBmxP3x3Ov_bORc/s1600/form3.JPG&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjxjR61ZVuMGSZWGDzuqAAfe3J7tiF6sPgZFZzcg3Zj4zDuof1INdnhbtkR_1E5aI9zmQzWKMlhzYxVgye2_BSH9fmNBbcyMKP030FfJhucLz3iiUGgDW54qGmNIJX48DBmxP3x3Ov_bORc/s1600/form3.JPG&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;i&gt;Por último, llamaremos a nuestros métodos desde sus respectivos botones.&lt;/i&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3554248320209601234/posts/default/8780840497922711557'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3554248320209601234/posts/default/8780840497922711557'/><link rel='alternate' type='text/html' href='http://netbeanspractico.blogspot.com/2013/04/numero-letras.html' title='Número a Letras'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjWifYNxnhLw45r9zzaCKy5zEdN6q6BGNJvq_fVMeo4EtgfubTzOHcRPP-d9WI7G-WbgGsud5f_oRfWa3DJuUsTxfXxxxKGnKX_G08oP3POOTpgKCTf-yEPMOiQ2hW8vrhQ4shUsVCaBHze/s72-c/Dibujo.JPG" height="72" width="72"/></entry><entry><id>tag:blogger.com,1999:blog-3554248320209601234.post-714371406211692570</id><published>2013-04-26T17:19:00.002-07:00</published><updated>2013-04-28T01:18:31.082-07:00</updated><title type='text'>Aprobado / Desaprobado</title><content type='html'>&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh-rfSC8elLIK9f7UzxgSjiXbYqCdBoGkZH32COQRITA54DznQUn8_kVMb12a4gclABpMl1RUtf-1H4PX9ar_oy2WjNWicSu8mAPRkeunXm0wlw7caqaZ_5AgOUHLATl-pO_vX8WAAQI6Hq/s1600/Dibujo.JPG&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh-rfSC8elLIK9f7UzxgSjiXbYqCdBoGkZH32COQRITA54DznQUn8_kVMb12a4gclABpMl1RUtf-1H4PX9ar_oy2WjNWicSu8mAPRkeunXm0wlw7caqaZ_5AgOUHLATl-pO_vX8WAAQI6Hq/s1600/Dibujo.JPG&quot; height=&quot;213&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;span style=&quot;color: red;&quot;&gt;Ingresaremos tres notas para un alumno,&lt;/span&gt; &lt;span style=&quot;color: red;&quot;&gt;calcularemos su promedio y luego mostraremos si está aprobado o desaprobado.&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;a name=&#39;more&#39;&gt;&lt;/a&gt;&lt;br /&gt;
&lt;i&gt;&lt;b&gt;&lt;span style=&quot;color: orange;&quot;&gt;Condición: El alumno aprobará el curso, siempre y cuando su promedio sea mayor o igual a 10.5.&lt;/span&gt;&lt;/b&gt;&lt;/i&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;i&gt;Crearemos dos métodos: &lt;b&gt;notas()&lt;/b&gt; y &lt;b&gt;limpiar()&lt;/b&gt;. En el primero, pasaremos los datos tomados de las cajas de texto y los pasaremos a un valor entero usando &lt;b&gt;parseInt&lt;/b&gt;. Los valores los guardaremos en nuestras variables (&lt;b&gt;nota1&lt;/b&gt;,&lt;b&gt; nota2&lt;/b&gt; y &lt;b&gt;nota3&lt;/b&gt; respectivamente) que anteriormente declaramos como enteras (&lt;b&gt;&lt;span style=&quot;color: blue;&quot;&gt;int&lt;/span&gt;&lt;/b&gt;). Para calcular el promedio, crearemos una variable llamada &lt;b&gt;promedio&lt;/b&gt; y será declarada como &lt;b&gt;&lt;span style=&quot;color: blue;&quot;&gt;double&lt;/span&gt;&lt;/b&gt;. Luego haremos la condicional para determinar si el alumno aprueba o desaprueba el curso y; presentaremos la información en el label (&lt;span style=&quot;color: #6aa84f;&quot;&gt;&lt;b&gt;lblRespuesta&lt;/b&gt;&lt;/span&gt;). Como siempre, el método &lt;b&gt;limpiar()&lt;/b&gt;, que nos servirá para borrar el contenido y comenzar un nuevo cálculo.&lt;/i&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEisBAPAVC4B0eCFtOSmSUxt36D5UO9RRyqs4u9l0VGpiiY3n_jJA2k4NF3haQW8zGT_dWXUSEBJUx-SraBOnobPFl-KpvdJ_2sEpImkLQte0mNiexioD2I_aLdRcBvbox9mVoU4Nk3fOgJv/s1600/form1.JPG&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEisBAPAVC4B0eCFtOSmSUxt36D5UO9RRyqs4u9l0VGpiiY3n_jJA2k4NF3haQW8zGT_dWXUSEBJUx-SraBOnobPFl-KpvdJ_2sEpImkLQte0mNiexioD2I_aLdRcBvbox9mVoU4Nk3fOgJv/s1600/form1.JPG&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiNiJxuVxa46wlxXKp8Sh4xPWeAu2gQoo5Uf3NrGdaH5gX8AOzKcYXC3OmAZyMUvdDIHvT5BUDNDQWTbrD0D92_ISB6UglqZMRgPQNvbX1jZ8GJy8quHjyjItoi8DNHhT_p47eS3oSmCsJH/s1600/form2.JPG&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiNiJxuVxa46wlxXKp8Sh4xPWeAu2gQoo5Uf3NrGdaH5gX8AOzKcYXC3OmAZyMUvdDIHvT5BUDNDQWTbrD0D92_ISB6UglqZMRgPQNvbX1jZ8GJy8quHjyjItoi8DNHhT_p47eS3oSmCsJH/s1600/form2.JPG&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhLFlfM7569Hz6wu0FkwxoVBCOL48_kGcTNEaQzQE5AFmR0zHitRUaKCMZMahFXuh4bYFRH5GbkAYPKIpf_dCxpIOmFcOmhT6cF37eCldy6vt7zFkmGAL1maYNioH8pk36tOc-Zzul67TyP/s1600/voids.JPG&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhLFlfM7569Hz6wu0FkwxoVBCOL48_kGcTNEaQzQE5AFmR0zHitRUaKCMZMahFXuh4bYFRH5GbkAYPKIpf_dCxpIOmFcOmhT6cF37eCldy6vt7zFkmGAL1maYNioH8pk36tOc-Zzul67TyP/s1600/voids.JPG&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;i&gt;Por último, llamamos a nuestros métodos creados programando desde sus respectivos botones.&lt;/i&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3554248320209601234/posts/default/714371406211692570'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3554248320209601234/posts/default/714371406211692570'/><link rel='alternate' type='text/html' href='http://netbeanspractico.blogspot.com/2013/04/aprobado-desaprobado.html' title='Aprobado / Desaprobado'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh-rfSC8elLIK9f7UzxgSjiXbYqCdBoGkZH32COQRITA54DznQUn8_kVMb12a4gclABpMl1RUtf-1H4PX9ar_oy2WjNWicSu8mAPRkeunXm0wlw7caqaZ_5AgOUHLATl-pO_vX8WAAQI6Hq/s72-c/Dibujo.JPG" height="72" width="72"/></entry><entry><id>tag:blogger.com,1999:blog-3554248320209601234.post-2273392153023864126</id><published>2013-04-26T16:16:00.000-07:00</published><updated>2013-04-28T12:55:30.293-07:00</updated><title type='text'>Función Matemática </title><content type='html'>&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjZTKblDvsceOKoIF33q7RiqDVpNNUfXX8tUANPfLSMVvFg3k4zYZpLeTRSeOsY3c6nwvuLWQONRpAQhvrKxUcvKgJTTJ-5RIshcP0A8SJhYWcwMHruLTIXXPBsmhcx0JLAYDzbOl62NG39/s1600/valorA.JPG&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjZTKblDvsceOKoIF33q7RiqDVpNNUfXX8tUANPfLSMVvFg3k4zYZpLeTRSeOsY3c6nwvuLWQONRpAQhvrKxUcvKgJTTJ-5RIshcP0A8SJhYWcwMHruLTIXXPBsmhcx0JLAYDzbOl62NG39/s1600/valorA.JPG&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgg1EG3Wxn4RiICrHJ9x0q9CdF3lHR6AVvfXW8Qbdbt1gEgDapnf2ynhJ1OKZphMMsUyefO6vvspFJihmuPUybuOLhIrnd3SqlWtydfgty0xX1iVG86Qpumu-eDL0crqsMGdJbv30O3mvlv/s1600/valorB.JPG&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgg1EG3Wxn4RiICrHJ9x0q9CdF3lHR6AVvfXW8Qbdbt1gEgDapnf2ynhJ1OKZphMMsUyefO6vvspFJihmuPUybuOLhIrnd3SqlWtydfgty0xX1iVG86Qpumu-eDL0crqsMGdJbv30O3mvlv/s1600/valorB.JPG&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhVXcJzdln4lchnTnF8irvx4k4gNAn4gcCtGb1x23imxDhNSm6St7E2GcNj2Y5XlZWIRMrtM_H3I0vpuqCGsfJxuizlKs_IIJ-uD_hTTuvcCrqqQhLaT20A94yFNyzcOJ_TmPMiqUmvl8uJ/s1600/resultado.JPG&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhVXcJzdln4lchnTnF8irvx4k4gNAn4gcCtGb1x23imxDhNSm6St7E2GcNj2Y5XlZWIRMrtM_H3I0vpuqCGsfJxuizlKs_IIJ-uD_hTTuvcCrqqQhLaT20A94yFNyzcOJ_TmPMiqUmvl8uJ/s1600/resultado.JPG&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&amp;nbsp; &lt;br /&gt;
&lt;span style=&quot;color: red;&quot;&gt;En este ejercicio&lt;/span&gt; &lt;span style=&quot;color: red;&quot;&gt;hallaremos el valor de la &lt;span lang=&quot;ES-MX&quot; style=&quot;font-family: &amp;quot;Calibri&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 11.0pt; line-height: 115%; mso-ansi-language: ES-MX; mso-ascii-theme-font: minor-latin; mso-bidi-font-family: &amp;quot;Times New Roman&amp;quot;; mso-bidi-language: AR-SA; mso-bidi-theme-font: minor-bidi; mso-fareast-font-family: Calibri; mso-fareast-language: EN-US; mso-fareast-theme-font: minor-latin; mso-hansi-theme-font: minor-latin;&quot;&gt;función x =
5a&lt;/span&gt;&lt;sup&gt;&lt;span lang=&quot;ES-MX&quot; style=&quot;font-family: &amp;quot;Calibri&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 14.0pt; line-height: 115%; mso-ansi-language: ES-MX; mso-ascii-theme-font: minor-latin; mso-bidi-font-family: &amp;quot;Times New Roman&amp;quot;; mso-bidi-language: AR-SA; mso-bidi-theme-font: minor-bidi; mso-fareast-font-family: Calibri; mso-fareast-language: EN-US; mso-fareast-theme-font: minor-latin; mso-hansi-theme-font: minor-latin;&quot;&gt;2&lt;/span&gt;&lt;/sup&gt;&lt;span lang=&quot;ES-MX&quot; style=&quot;font-family: &amp;quot;Calibri&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 11.0pt; line-height: 115%; mso-ansi-language: ES-MX; mso-ascii-theme-font: minor-latin; mso-bidi-font-family: &amp;quot;Times New Roman&amp;quot;; mso-bidi-language: AR-SA; mso-bidi-theme-font: minor-bidi; mso-fareast-font-family: Calibri; mso-fareast-language: EN-US; mso-fareast-theme-font: minor-latin; mso-hansi-theme-font: minor-latin;&quot;&gt; + b&lt;/span&gt;&lt;sup&gt;&lt;span lang=&quot;ES-MX&quot; style=&quot;font-family: &amp;quot;Calibri&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 14.0pt; line-height: 115%; mso-ansi-language: ES-MX; mso-ascii-theme-font: minor-latin; mso-bidi-font-family: &amp;quot;Times New Roman&amp;quot;; mso-bidi-language: AR-SA; mso-bidi-theme-font: minor-bidi; mso-fareast-font-family: Calibri; mso-fareast-language: EN-US; mso-fareast-theme-font: minor-latin; mso-hansi-theme-font: minor-latin;&quot;&gt;2&lt;/span&gt;&lt;/sup&gt;&lt;span lang=&quot;ES-MX&quot; style=&quot;font-family: &amp;quot;Calibri&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 11.0pt; line-height: 115%; mso-ansi-language: ES-MX; mso-ascii-theme-font: minor-latin; mso-bidi-font-family: &amp;quot;Times New Roman&amp;quot;; mso-bidi-language: AR-SA; mso-bidi-theme-font: minor-bidi; mso-fareast-font-family: Calibri; mso-fareast-language: EN-US; mso-fareast-theme-font: minor-latin; mso-hansi-theme-font: minor-latin;&quot;&gt;.&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;u&gt;&lt;b&gt;&lt;span style=&quot;color: red;&quot;&gt;&lt;span lang=&quot;ES-MX&quot; style=&quot;font-family: &amp;quot;Calibri&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 11.0pt; line-height: 115%; mso-ansi-language: ES-MX; mso-ascii-theme-font: minor-latin; mso-bidi-font-family: &amp;quot;Times New Roman&amp;quot;; mso-bidi-language: AR-SA; mso-bidi-theme-font: minor-bidi; mso-fareast-font-family: Calibri; mso-fareast-language: EN-US; mso-fareast-theme-font: minor-latin; mso-hansi-theme-font: minor-latin;&quot;&gt;&lt;/span&gt;&lt;/span&gt;&lt;/b&gt;&lt;/u&gt;&lt;br /&gt;
&lt;a name=&#39;more&#39;&gt;&lt;/a&gt;&lt;u&gt;&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;/u&gt;&lt;!--[if gte mso 9]&gt;&lt;xml&gt;
 &lt;o:OfficeDocumentSettings&gt;
  &lt;o:RelyOnVML/&gt;
  &lt;o:AllowPNG/&gt;
 &lt;/o:OfficeDocumentSettings&gt;
&lt;/xml&gt;&lt;![endif]--&gt;
El código para encontrar el valor de esta función es simple. Usaremos los métodos de la clase &lt;b&gt;&lt;u&gt;Math&lt;/u&gt;&lt;/b&gt;.&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi4WU9JejrVt839mZ7juQuYrflYefBJhD-ClHFrlFZbl3rBihCr-rpUl0G9edwjBnXM2far7wolHJHiDwKw2A8QoLFCySQIiYS_hDvUP9xsZ0vSbRGa6PzTIa2I3FoI_znwLco3HFr3Wbih/s1600/codigo.JPG&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi4WU9JejrVt839mZ7juQuYrflYefBJhD-ClHFrlFZbl3rBihCr-rpUl0G9edwjBnXM2far7wolHJHiDwKw2A8QoLFCySQIiYS_hDvUP9xsZ0vSbRGa6PzTIa2I3FoI_znwLco3HFr3Wbih/s1600/codigo.JPG&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3554248320209601234/posts/default/2273392153023864126'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3554248320209601234/posts/default/2273392153023864126'/><link rel='alternate' type='text/html' href='http://netbeanspractico.blogspot.com/2013/04/funcion-matematica.html' title='Función Matemática '/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjZTKblDvsceOKoIF33q7RiqDVpNNUfXX8tUANPfLSMVvFg3k4zYZpLeTRSeOsY3c6nwvuLWQONRpAQhvrKxUcvKgJTTJ-5RIshcP0A8SJhYWcwMHruLTIXXPBsmhcx0JLAYDzbOl62NG39/s72-c/valorA.JPG" height="72" width="72"/></entry><entry><id>tag:blogger.com,1999:blog-3554248320209601234.post-878711432334504468</id><published>2013-04-26T15:36:00.000-07:00</published><updated>2013-04-28T13:21:54.238-07:00</updated><title type='text'>Promedio de Notas</title><content type='html'>&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjvIANUgSDLMd05zGauV4H8YEP_jeJxPbLdwOpOJFtMUbji8LEztG3290Z8W2m25KbAoZYAuK4M3AHZhfPJ13W2wX-LAVLRaKuLS4OGaSwnB-r3CaO8ACBvly86Afdyv2EEDgYhUH7Exmup/s1600/Dibujo.JPG&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjvIANUgSDLMd05zGauV4H8YEP_jeJxPbLdwOpOJFtMUbji8LEztG3290Z8W2m25KbAoZYAuK4M3AHZhfPJ13W2wX-LAVLRaKuLS4OGaSwnB-r3CaO8ACBvly86Afdyv2EEDgYhUH7Exmup/s1600/Dibujo.JPG&quot; height=&quot;225&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;span style=&quot;color: red;&quot;&gt;Ejercicio simple en el que aprenderemos a calcular el promedio de cuatro notas ingresadas.&lt;/span&gt;&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;/div&gt;
&lt;br /&gt;
&lt;a name=&#39;more&#39;&gt;&lt;/a&gt;&lt;br /&gt;
&lt;i&gt;Crearemos un método llamado&lt;b&gt; promedio()&lt;/b&gt; con cuatro variables (&lt;b&gt;n1, n2, n3, n4&lt;/b&gt;) y las declaramos como &lt;b&gt;&lt;span style=&quot;color: blue;&quot;&gt;int&lt;/span&gt;&lt;/b&gt;, luego otra variable llamada &lt;b&gt;promedio&lt;/b&gt;, la cual será declarada como &lt;b&gt;&lt;span style=&quot;color: blue;&quot;&gt;double&lt;/span&gt;&lt;/b&gt;. Los valores de las cuatro cajas de texto se pasarán a un valor entero con&lt;b&gt; parseInt&lt;/b&gt;, luego haremos el cálculo del promedio sumando todos los valores y dividiéndolos por 4 (que son las notas ingresadas en total). Haremos también otro método llamado&lt;b&gt; limpiar()&lt;/b&gt;, que nos servirá para borrar los contenidos para un nuevo cálculo.&lt;/i&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgvmwPrJDT8IMNBaVbr776kyh5BNT2hldhmnblEt_IMtyz1d1KV46XpzIBJqrp9ZTJoumZIvQ0CE8YHhyRS8VZ9bXVl2HHsE7uXATnz9_yy_8OusN10IjQt-qlY6y9m6rr6v7WwTOcJwGX6/s1600/form1.JPG&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgvmwPrJDT8IMNBaVbr776kyh5BNT2hldhmnblEt_IMtyz1d1KV46XpzIBJqrp9ZTJoumZIvQ0CE8YHhyRS8VZ9bXVl2HHsE7uXATnz9_yy_8OusN10IjQt-qlY6y9m6rr6v7WwTOcJwGX6/s1600/form1.JPG&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgqTsz9Qw0r3it41Id_s13HLq0mz4l4Gwf0qHT9oBQEe7myct9g2h0zUJsAAKrz-Hx0hxXevDkqx7c4JWJgyBcaCUQGpxoAKWdMSdGJDLWW-0EcDOiuOd8DPmffxcatm5HU1RxV909oIWS1/s1600/voids.JPG&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgqTsz9Qw0r3it41Id_s13HLq0mz4l4Gwf0qHT9oBQEe7myct9g2h0zUJsAAKrz-Hx0hxXevDkqx7c4JWJgyBcaCUQGpxoAKWdMSdGJDLWW-0EcDOiuOd8DPmffxcatm5HU1RxV909oIWS1/s1600/voids.JPG&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;i&gt;Por último, programamos nuestros botones&lt;b&gt; Aceptar&lt;/b&gt; y &lt;b&gt;Nuevo&lt;/b&gt; respectivamente, para llamar a nuestros métodos creados.&lt;/i&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3554248320209601234/posts/default/878711432334504468'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3554248320209601234/posts/default/878711432334504468'/><link rel='alternate' type='text/html' href='http://netbeanspractico.blogspot.com/2013/04/promedio-de-notas.html' title='Promedio de Notas'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjvIANUgSDLMd05zGauV4H8YEP_jeJxPbLdwOpOJFtMUbji8LEztG3290Z8W2m25KbAoZYAuK4M3AHZhfPJ13W2wX-LAVLRaKuLS4OGaSwnB-r3CaO8ACBvly86Afdyv2EEDgYhUH7Exmup/s72-c/Dibujo.JPG" height="72" width="72"/></entry><entry><id>tag:blogger.com,1999:blog-3554248320209601234.post-5950631046456243936</id><published>2013-04-26T14:07:00.000-07:00</published><updated>2013-04-28T13:25:56.910-07:00</updated><title type='text'>Consumo de Electricidad</title><content type='html'>&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhd1O5A9Y6jCQdt34pJ3Ci6lIy6WZ5alovZkDH0zq1tX91-6sIq_VH9OALstD97hwgHeO_5r-pSDQAzjmaK-p6Y6I0DJGeS9XjUt-1a8eSpMIYn-oI9mSFnMM4KGmGDZaVNPPuINrl7GlZN/s1600/Dibujo.JPG&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhd1O5A9Y6jCQdt34pJ3Ci6lIy6WZ5alovZkDH0zq1tX91-6sIq_VH9OALstD97hwgHeO_5r-pSDQAzjmaK-p6Y6I0DJGeS9XjUt-1a8eSpMIYn-oI9mSFnMM4KGmGDZaVNPPuINrl7GlZN/s1600/Dibujo.JPG&quot; height=&quot;224&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;/div&gt;
&lt;br /&gt;
&lt;span style=&quot;color: red;&quot;&gt;Este ejercicio nos enseñará a hacer los cálculos correspondientes para&lt;/span&gt; &lt;span style=&quot;color: red;&quot;&gt;programar una Factura de Consumo de Electricidad. Trabajaremos también con un combo para clientes sectoriales (A, B, C y D) y hacer los cobros de acuerdo al tipo de cliente elegido. &lt;/span&gt;&lt;span style=&quot;color: red;&quot;&gt;La condición del ejercicio también nos dice que si los Kw consumidos son
 menores a 100, entonces se aplicará un descuento del 10% al total a 
pagar. Llamaremos también a la Calculadora de&lt;/span&gt;&lt;i&gt;&lt;b&gt;&lt;span style=&quot;color: red;&quot;&gt; &lt;a href=&quot;http://comandoswindows7.blogspot.com/&quot; target=&quot;_blank&quot;&gt;Windows&lt;/a&gt;.&lt;/span&gt;&lt;/b&gt;&lt;/i&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;a name=&#39;more&#39;&gt;&lt;/a&gt;&lt;br /&gt;
&lt;i&gt;Primero vamos a importar el &lt;b&gt;paquete de excepciones (java.io.IOException)&lt;/b&gt;, que nos servirá para cuando llamemos a la Calculadora de &lt;a href=&quot;http://comandoswindows7.blogspot.com/&quot; target=&quot;_blank&quot;&gt;Windows&lt;/a&gt;. Como ya se explicó anteriormente usaremos parseInt para convertir los valores ingresados en nuestras cajas de texto a un valor entero. &lt;/i&gt;&lt;br /&gt;
&lt;i&gt;&lt;br /&gt;&lt;/i&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgmGgtvR4sOkFbukns2XxgFhVmLBj4seAxE5aUdQ_UGAXcNkIdGKYw6LLKSM7yKscnEEdYeIw0JuGgBUHc2k_-HfDpwbNgs7URa0T0DPGR-SJsuAuqBbPJDtprecftNmKHNCfy7s6D3MSJB/s1600/form1.JPG&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgmGgtvR4sOkFbukns2XxgFhVmLBj4seAxE5aUdQ_UGAXcNkIdGKYw6LLKSM7yKscnEEdYeIw0JuGgBUHc2k_-HfDpwbNgs7URa0T0DPGR-SJsuAuqBbPJDtprecftNmKHNCfy7s6D3MSJB/s1600/form1.JPG&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;/div&gt;
&lt;br /&gt;
&lt;i&gt;En nuestro método &lt;b&gt;calculos()&lt;/b&gt;, haremos las condicionales para los clientes sectoriales ingresados desde el combo. Entonces: &lt;b&gt;Para el cliente&lt;/b&gt; &lt;b&gt;Tipo A&lt;/b&gt;, el Precio/Kw será de 0.33; &lt;b&gt;para el cliente Tipo B &lt;/b&gt;el Precio/Kw será 0.8; &lt;b&gt;para el cliente&lt;/b&gt; &lt;b&gt;Tipo C&lt;/b&gt;, el Precio/Kw será 1.5 y; &lt;b&gt;para el cliente Tipo D&lt;/b&gt; será 2. Luego haremos los cálculos para el descuento si cumple con la condición (&lt;u&gt;Kw consumidos menores a 100&lt;/u&gt;) y; el total&lt;/i&gt;, &lt;i&gt;que es el importe menos el descuento, si es que el último existiera.&lt;/i&gt; &lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;/div&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg0H1oeDVNyqjdBwOPLvncMVQzV62_JxdbqKZdL_XOHwgz_rhSL1rc5i2_Tprn92QhXUDO6EXP6czwbkyM8hyphenhyphenQds-tdWbPAibPCEjW6X7V9-y3IzaDtvp7t9WVlvWE9p9tGsBE54uWoYLGs/s1600/form2.JPG&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg0H1oeDVNyqjdBwOPLvncMVQzV62_JxdbqKZdL_XOHwgz_rhSL1rc5i2_Tprn92QhXUDO6EXP6czwbkyM8hyphenhyphenQds-tdWbPAibPCEjW6X7V9-y3IzaDtvp7t9WVlvWE9p9tGsBE54uWoYLGs/s1600/form2.JPG&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;/div&gt;
&lt;i&gt;&amp;nbsp;El método &lt;b&gt;limpiar()&lt;/b&gt;, nos servirá para borrar los contenidos y hacer un nuevo cálculo.&lt;/i&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhSjTl_m2m4joQMceuVBWsfOkWGmmTEdG_Z18RRfJ0RLORilgFvs5-ANUYYsm32CDgkd7nxAX35HRSruy1MKh4N8zMpViGbbLSR3L6KPhyphenhyphenIHQezadBO93FppJSwAi5kGKv_B107DYnd-D0l/s1600/form3.JPG&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhSjTl_m2m4joQMceuVBWsfOkWGmmTEdG_Z18RRfJ0RLORilgFvs5-ANUYYsm32CDgkd7nxAX35HRSruy1MKh4N8zMpViGbbLSR3L6KPhyphenhyphenIHQezadBO93FppJSwAi5kGKv_B107DYnd-D0l/s1600/form3.JPG&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;/div&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgignXmxWpdHS8kw8ItKEiRYFhpzswQNf_gjJutPXQtMXcGQFwAnrY2-5Tjsl_F8pEHrB9MoO7UbS0gtBIRrBUxM_wXgBHK69Sh3QEY98myKT_hQDO0DRryMCAeUA0upruGOPOe-QlichKK/s1600/form4.JPG&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgignXmxWpdHS8kw8ItKEiRYFhpzswQNf_gjJutPXQtMXcGQFwAnrY2-5Tjsl_F8pEHrB9MoO7UbS0gtBIRrBUxM_wXgBHK69Sh3QEY98myKT_hQDO0DRryMCAeUA0upruGOPOe-QlichKK/s1600/form4.JPG&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi9pY2ySfDvOGiE95NGQV4M-pb74MM05HTq2d0mQ335UjCQgzdLWxx7dTUWdK3B7EKzvFhofnxt47bvg19j77XV_fpPTA0fFSh6dd9PAzC7liswxA98QTFsls1CkwAk4xvHXhHEJpdlWd6_/s1600/form5.JPG&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi9pY2ySfDvOGiE95NGQV4M-pb74MM05HTq2d0mQ335UjCQgzdLWxx7dTUWdK3B7EKzvFhofnxt47bvg19j77XV_fpPTA0fFSh6dd9PAzC7liswxA98QTFsls1CkwAk4xvHXhHEJpdlWd6_/s1600/form5.JPG&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;i&gt;Llamaremos a nuestros métodos &lt;b&gt;limpiar()&lt;/b&gt; y &lt;b&gt;calculos()&lt;/b&gt; desde sus botones respectivos. Programaremos el botón &lt;b&gt;Salir&lt;/b&gt; para que cierre el programa y; para terminar, llamaremos a la calculadora programando desde su respectivo botón (&lt;b&gt;btnCalcular&lt;/b&gt;). &lt;/i&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3554248320209601234/posts/default/5950631046456243936'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3554248320209601234/posts/default/5950631046456243936'/><link rel='alternate' type='text/html' href='http://netbeanspractico.blogspot.com/2013/04/consumo-de-electricidad.html' title='Consumo de Electricidad'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhd1O5A9Y6jCQdt34pJ3Ci6lIy6WZ5alovZkDH0zq1tX91-6sIq_VH9OALstD97hwgHeO_5r-pSDQAzjmaK-p6Y6I0DJGeS9XjUt-1a8eSpMIYn-oI9mSFnMM4KGmGDZaVNPPuINrl7GlZN/s72-c/Dibujo.JPG" height="72" width="72"/></entry><entry><id>tag:blogger.com,1999:blog-3554248320209601234.post-7164899516347493629</id><published>2013-04-22T15:19:00.000-07:00</published><updated>2013-04-28T13:28:32.929-07:00</updated><title type='text'>Sueldos Mayores al Promedio (Vectores)</title><content type='html'>&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg9huRj4RHCfiN7DhJ43UpI1oj8poBFkO9GOXlQOqgngqk9urEvPFctRq0bY1PCkGk0T7EC8aak2sAjZha1acO5OdcwRzxtDW8_pn8mJshEQEbUVs7kFy-wH7MamiL2IoqxgQATmhrDVkln/s1600/Dibujo.JPG&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg9huRj4RHCfiN7DhJ43UpI1oj8poBFkO9GOXlQOqgngqk9urEvPFctRq0bY1PCkGk0T7EC8aak2sAjZha1acO5OdcwRzxtDW8_pn8mJshEQEbUVs7kFy-wH7MamiL2IoqxgQATmhrDVkln/s1600/Dibujo.JPG&quot; height=&quot;320&quot; width=&quot;271&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;span style=&quot;color: red;&quot;&gt;Para este ejercicio&lt;/span&gt; &lt;span style=&quot;color: red;&quot;&gt;ingresaremos un número determinado de sueldos, calcularemos el promedio de estos y luego mostraremos: los Sueldos, el Promedio y los Sueldos Mayores al Promedio. Usaremos vectores.&lt;/span&gt;&lt;br /&gt;
&lt;i&gt;&lt;span style=&quot;color: red;&quot;&gt;&lt;b&gt;&lt;/b&gt;&lt;/span&gt;&lt;/i&gt;&lt;br /&gt;
&lt;a name=&#39;more&#39;&gt;&lt;/a&gt;&lt;br /&gt;
&lt;i&gt;Declararemos una variable &lt;b&gt;&lt;span style=&quot;color: #6aa84f;&quot;&gt;P&lt;/span&gt;&lt;/b&gt; como &lt;span style=&quot;color: blue;&quot;&gt;int &lt;/span&gt;y será igual a 6, que es el número total de sueldos que ingresaremos en nuestro arreglo. Crearemos un vector &lt;b&gt;&lt;span style=&quot;color: #6aa84f;&quot;&gt;Sueldo&lt;/span&gt;&lt;/b&gt; que tomará los valores ingresados en &lt;b&gt;&lt;span style=&quot;color: #6aa84f;&quot;&gt;P &lt;/span&gt;&lt;/b&gt;como enteros y; un contador &lt;span style=&quot;color: #6aa84f;&quot;&gt;&lt;b&gt;s&lt;/b&gt;&lt;/span&gt;. Los valores ingresados como texto, los pasaremos a un valor entero usando &lt;b&gt;parseInt&lt;/b&gt; dentro de &lt;b&gt;Sueldo()&lt;/b&gt;. Crearemos también un método privado llamado &lt;b&gt;agregarDatos()&lt;/b&gt;, dentro del cual los datos de &lt;b&gt;Sueldo()&lt;/b&gt; serán agregados a nuestro vector &lt;span style=&quot;color: #6aa84f;&quot;&gt;&lt;b&gt;Sueldo&lt;/b&gt;&lt;/span&gt;, que contiene nuestro contador s (&lt;span style=&quot;color: #6aa84f;&quot;&gt;&lt;b&gt;Sueldo&lt;/b&gt;&lt;/span&gt; [&lt;b&gt;&lt;span style=&quot;color: #6aa84f;&quot;&gt;s&lt;/span&gt;&lt;/b&gt;]).&lt;/i&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhZsH-u0wO0T5r4y55GNtK0zLSwl7VmqZ0AuIzZjKsPEluK35xc1JSIOCioYrbNM5-cUN3N3JnEdYxBvHSHU6x592wVMni5ZzDnqJ-suJoIwc3-LZAkcmJDiTo7tB9BEun-CxLr16syaF01/s1600/form1.JPG&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhZsH-u0wO0T5r4y55GNtK0zLSwl7VmqZ0AuIzZjKsPEluK35xc1JSIOCioYrbNM5-cUN3N3JnEdYxBvHSHU6x592wVMni5ZzDnqJ-suJoIwc3-LZAkcmJDiTo7tB9BEun-CxLr16syaF01/s1600/form1.JPG&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiYlHGvryRYw8znNaYMZ9LH8cnByR0PB9R9hyphenhyphenCcnpJTZfHuGCo_5v39F6tgXHSdCck7IvLdoPoNelU2KXkgJ9lTGm-zOktsVjydLIJeJ6GYfvkcCcnjQePSwvI4I6vZI_PHH9wqEVhT7P9f/s1600/form2.JPG&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiYlHGvryRYw8znNaYMZ9LH8cnByR0PB9R9hyphenhyphenCcnpJTZfHuGCo_5v39F6tgXHSdCck7IvLdoPoNelU2KXkgJ9lTGm-zOktsVjydLIJeJ6GYfvkcCcnjQePSwvI4I6vZI_PHH9wqEVhT7P9f/s1600/form2.JPG&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;i&gt;En el método &lt;b&gt;mostrar()&lt;/b&gt;, trabajaremos en el JTextArea (&lt;b&gt;&lt;span style=&quot;color: #6aa84f;&quot;&gt;taLista&lt;/span&gt;&lt;/b&gt;) con nuestro vector creado (&lt;b&gt;&lt;span style=&quot;color: #6aa84f;&quot;&gt;Sueldo&lt;/span&gt;&lt;/b&gt;) y condicionaremos los sueldos ingresados para que nos muestre los &lt;b&gt;&lt;u&gt;sueldos totales, el promedio y los sueldos mayores al promedio&lt;/u&gt;&lt;/b&gt;, como nos lo pide el ejercicio. Luego programamos el botón &lt;b&gt;Mostrar&lt;/b&gt; para llamar a nuestro método.&lt;/i&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi9Sp6Owc6fS1inQyHUi3MOrgtnFB5o50HHKYl1Z3JQHYV5vTchZHShLF3FucBEFO7tKrQahOHTMAxZKuSMuWIUzQEdA55GVGHAWJgnUfnH8DPV06C6EKAjoJAQ9spBhs_Kf_WR2ljipPJu/s1600/form3.JPG&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi9Sp6Owc6fS1inQyHUi3MOrgtnFB5o50HHKYl1Z3JQHYV5vTchZHShLF3FucBEFO7tKrQahOHTMAxZKuSMuWIUzQEdA55GVGHAWJgnUfnH8DPV06C6EKAjoJAQ9spBhs_Kf_WR2ljipPJu/s1600/form3.JPG&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;i&gt;Programaremos dentro del botón &lt;b&gt;Agregar&lt;/b&gt; para que cuando ingresemos cada elemento del arreglo, nos muestre un aviso que diga que el sueldo ha sido ingresado. Por último, condicionaremos al mismo botón, para que cuando cumpla la condición de ingreso de elementos, se &lt;b&gt;DESACTIVE&lt;/b&gt;.&lt;/i&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3554248320209601234/posts/default/7164899516347493629'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3554248320209601234/posts/default/7164899516347493629'/><link rel='alternate' type='text/html' href='http://netbeanspractico.blogspot.com/2013/04/sueldos-mayores-al-promedio-vectores.html' title='Sueldos Mayores al Promedio (Vectores)'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg9huRj4RHCfiN7DhJ43UpI1oj8poBFkO9GOXlQOqgngqk9urEvPFctRq0bY1PCkGk0T7EC8aak2sAjZha1acO5OdcwRzxtDW8_pn8mJshEQEbUVs7kFy-wH7MamiL2IoqxgQATmhrDVkln/s72-c/Dibujo.JPG" height="72" width="72"/></entry><entry><id>tag:blogger.com,1999:blog-3554248320209601234.post-1923801693805378903</id><published>2013-04-22T13:58:00.000-07:00</published><updated>2013-04-28T13:31:03.897-07:00</updated><title type='text'>Uso de Vectores</title><content type='html'>&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiJhj5NCUXgIeRxDBUYyRU5JUuCSmt_7Mo3eqItRiOu0LU-fJ5r9yrCfHY2zJ8-KV4nExQxnOoe92WjNcBni96Sm7bQR4fP5_648pCK4OnF89JaCJxmcRmvPlf3ALLDBUAY3LLbSPG6jUOn/s1600/Dibujo.JPG&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiJhj5NCUXgIeRxDBUYyRU5JUuCSmt_7Mo3eqItRiOu0LU-fJ5r9yrCfHY2zJ8-KV4nExQxnOoe92WjNcBni96Sm7bQR4fP5_648pCK4OnF89JaCJxmcRmvPlf3ALLDBUAY3LLbSPG6jUOn/s1600/Dibujo.JPG&quot; height=&quot;238&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;/div&gt;
&lt;br /&gt;
&lt;span style=&quot;color: red;&quot;&gt;Crearemos un arreglo para ingresar hasta 10 países, luego programaremos para desactivar el botón de ingreso y por último mostraremos en un JTextArea los países ingresados.&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;a name=&#39;more&#39;&gt;&lt;/a&gt;&lt;br /&gt;
&lt;i&gt;Declaramos una variable &lt;span style=&quot;color: #6aa84f;&quot;&gt;&lt;b&gt;N&lt;/b&gt;&lt;/span&gt; como &lt;span style=&quot;color: blue;&quot;&gt;&lt;b&gt;int&lt;/b&gt;&lt;/span&gt; y que será igual a 10, lo cual nos indica en este caso el número total de países que ingresaremos en nuestro arreglo. Luego declaramos nuestro vector &lt;span style=&quot;color: #6aa84f;&quot;&gt;&lt;b&gt;pais&lt;/b&gt;&lt;/span&gt; como String, el cual contendrá los nombres de nuestros países y; por último un contador &lt;b&gt;c&lt;/b&gt;. En el método &lt;b&gt;AgregarPais&lt;/b&gt;, los datos serán recibidos de &lt;b&gt;dato como String&lt;/b&gt;, que luego pasarán a formar parte del vector&lt;span style=&quot;color: #6aa84f;&quot;&gt;&lt;b&gt; pais&lt;/b&gt;&lt;/span&gt;. Dentro de &lt;b&gt;listaPais&lt;/b&gt;, trabajaremos con el JTextArea (&lt;span style=&quot;color: #6aa84f;&quot;&gt;&lt;b&gt;Talista&lt;/b&gt;&lt;/span&gt;), que mostrará la lista de nuestros países ingresados.&lt;/i&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh-dFle4jtmxtcLCknEU2ZKrqw1f0Av2iEz420UZeegNe8wl9hyphenhyphenmgGsD6eZ6MjaBdgoeIV8PGXOpyezaYJAl2Xb9bCmdu0fgNX8NjNqRCae_XdLUAdHkelleGEHK1VusYVjsuZ9pI4l_861/s1600/form1.JPG&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh-dFle4jtmxtcLCknEU2ZKrqw1f0Av2iEz420UZeegNe8wl9hyphenhyphenmgGsD6eZ6MjaBdgoeIV8PGXOpyezaYJAl2Xb9bCmdu0fgNX8NjNqRCae_XdLUAdHkelleGEHK1VusYVjsuZ9pI4l_861/s1600/form1.JPG&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;i&gt;Programaremos luego el boton &lt;b&gt;Agregar&lt;/b&gt;, para que cuando cumpla la condición de ingreso (&lt;b&gt;hasta 10 países&lt;/b&gt;) se &lt;b&gt;DESACTIVE&lt;/b&gt;. Para terminar, programaremos el botón &lt;b&gt;Mostrar&lt;/b&gt;, para que llame a nuestro método&lt;b&gt; listaPais()&lt;/b&gt; una vez ingresados todos los elementos del arreglo.&lt;/i&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhZ4eO27aloedFV9q3fQ4h1mt9QN-Q0O0Nscf1WXX7oABASDsxWEB73Iicj6vzxXX-UaQ8SNE0d3QPEdzB4n6dk2oZn_adrOVKmFPKbuBqMNwHFFTaEJsLBNV4eSDBmXefVv1pm46x0Pqkv/s1600/form2.JPG&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhZ4eO27aloedFV9q3fQ4h1mt9QN-Q0O0Nscf1WXX7oABASDsxWEB73Iicj6vzxXX-UaQ8SNE0d3QPEdzB4n6dk2oZn_adrOVKmFPKbuBqMNwHFFTaEJsLBNV4eSDBmXefVv1pm46x0Pqkv/s1600/form2.JPG&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3554248320209601234/posts/default/1923801693805378903'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3554248320209601234/posts/default/1923801693805378903'/><link rel='alternate' type='text/html' href='http://netbeanspractico.blogspot.com/2013/04/uso-de-vectores.html' title='Uso de Vectores'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiJhj5NCUXgIeRxDBUYyRU5JUuCSmt_7Mo3eqItRiOu0LU-fJ5r9yrCfHY2zJ8-KV4nExQxnOoe92WjNcBni96Sm7bQR4fP5_648pCK4OnF89JaCJxmcRmvPlf3ALLDBUAY3LLbSPG6jUOn/s72-c/Dibujo.JPG" height="72" width="72"/></entry><entry><id>tag:blogger.com,1999:blog-3554248320209601234.post-1568240833761512831</id><published>2013-04-22T12:55:00.000-07:00</published><updated>2013-04-28T13:32:34.549-07:00</updated><title type='text'>Matrícula de Alumno</title><content type='html'>&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj4OYilnq1E4DytZRJ95IaYO1F8a6oQlES0WrLnUiUnV-kckjb2B0DdcWwbU88EyCECS3pZmL3k4BoVAJ95Dk4SRABCtM1Ir0KiB5a2lcMhMM0vcUBHrHs9XeQSgMqTFCEcUL5FHYUhJlRh/s1600/Dibujo.JPG&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj4OYilnq1E4DytZRJ95IaYO1F8a6oQlES0WrLnUiUnV-kckjb2B0DdcWwbU88EyCECS3pZmL3k4BoVAJ95Dk4SRABCtM1Ir0KiB5a2lcMhMM0vcUBHrHs9XeQSgMqTFCEcUL5FHYUhJlRh/s1600/Dibujo.JPG&quot; height=&quot;221&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;span style=&quot;color: red;&quot;&gt;En este ejercicio aprenderemos a&lt;/span&gt; &lt;span style=&quot;color: red;&quot;&gt;trabajar con datos elegidos de dos combos, aplicando los descuentos respectivos sobre la matrícula de acuerdo al turno y la carrera.&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;a name=&#39;more&#39;&gt;&lt;/a&gt;&lt;br /&gt;
&lt;i&gt;Las condiciones para el desarrollo del ejercicio son las siguientes:&lt;/i&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg7pbcDka7LbqCiZUHjvFSMYSE9f3noBhCxZak-8qeHkbUzAflKnel41-dHJuRZi2JllqxiM4x_ONz8XBWLQ0M7RrO54CSlqjwotxA88xeQ6PXaBLwHn5fXE13ATSf37ZBSlrHhoprgXYsI/s1600/condicion.JPG&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg7pbcDka7LbqCiZUHjvFSMYSE9f3noBhCxZak-8qeHkbUzAflKnel41-dHJuRZi2JllqxiM4x_ONz8XBWLQ0M7RrO54CSlqjwotxA88xeQ6PXaBLwHn5fXE13ATSf37ZBSlrHhoprgXYsI/s1600/condicion.JPG&quot; height=&quot;218&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;i&gt;Crearemos una clase llamada &lt;b&gt;matriculaalumnos&lt;/b&gt; y como podremos apreciar, en ella el trabajo se centra en la variable &lt;b&gt;&lt;span style=&quot;color: #6aa84f;&quot;&gt;matricula&lt;/span&gt;&lt;/b&gt;, la cual declaramos como&lt;b&gt;&lt;span style=&quot;color: blue;&quot;&gt; int &lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: black;&quot;&gt;y retornará un valor &lt;b&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;background-color: white;&quot;&gt;double&lt;/span&gt;&lt;/span&gt;&lt;/b&gt; a &lt;b&gt;r&lt;/b&gt;, una vez que se hagan los cálculos correspondientes&lt;/span&gt;&lt;/span&gt;. Esta nos ayudará en las condicionales de acuerdo al tenor del ejercicio propuesto.&lt;/i&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgX4yqzyCQnBNOBNc4mi85iyhpeOYwRVk-1H198PiP6sbTPQGxz0XJjfLrVjo5Yxk-ISriJHcPRmb2FvfAeZ0F6ixm0IYWBTXHOFPURpDSD6phGzHhXrcxHQ1QjxsmuNP5i3sXbTR6REZdT/s1600/clase1.JPG&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgX4yqzyCQnBNOBNc4mi85iyhpeOYwRVk-1H198PiP6sbTPQGxz0XJjfLrVjo5Yxk-ISriJHcPRmb2FvfAeZ0F6ixm0IYWBTXHOFPURpDSD6phGzHhXrcxHQ1QjxsmuNP5i3sXbTR6REZdT/s1600/clase1.JPG&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhxYBuzYD1mRoLdoUiBUa-0P6veylRJN3wrE1cWCLiWNGiIzxga9Gtp_2RBRWcq11wgFarr1cEeUEqmk_ntLlRMExqnZ-SNvLh-shRY5a5FfioIlMXb4PSBnKrIOGUgtAgXd9v3pBiBS9xA/s1600/clase2.JPG&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhxYBuzYD1mRoLdoUiBUa-0P6veylRJN3wrE1cWCLiWNGiIzxga9Gtp_2RBRWcq11wgFarr1cEeUEqmk_ntLlRMExqnZ-SNvLh-shRY5a5FfioIlMXb4PSBnKrIOGUgtAgXd9v3pBiBS9xA/s1600/clase2.JPG&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;i&gt;&amp;nbsp;Luego los respectivos&lt;b&gt; get&lt;/b&gt; y&lt;b&gt; set&lt;/b&gt; para cada variable declarada:&lt;/i&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjfTl3RvmRSDCWy9gXbZhioAAH2C7sVjWX343VMUXAWp2dMk5LWyPQUoUp-DOJjVMeCMqELNKHJr2wXlK5t3O3Hq1lgYUV-Yr1J8KeYCRZ0cMnKpqnUf9Bb3w50k4bf3rWsNABWeY7Z9vhY/s1600/clase3.JPG&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjfTl3RvmRSDCWy9gXbZhioAAH2C7sVjWX343VMUXAWp2dMk5LWyPQUoUp-DOJjVMeCMqELNKHJr2wXlK5t3O3Hq1lgYUV-Yr1J8KeYCRZ0cMnKpqnUf9Bb3w50k4bf3rWsNABWeY7Z9vhY/s1600/clase3.JPG&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;i&gt;En el método &lt;b&gt;Main&lt;/b&gt; de nuestro proyecto, haremos lo siguiente:&lt;/i&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgC3JFAxJFtT7Rq3uk7hpHTkSo106wgwujPFpoD7FIFryX8lqfwfA8URaSxG3-Tr-fV4a4ULcaE4_fgWkel2RVgFxnKMKHWEtvCWZWSQb9eJLViYBxFl1eZCLxz_wyj-Q0Dnnf5K8TroQCq/s1600/main.JPG&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgC3JFAxJFtT7Rq3uk7hpHTkSo106wgwujPFpoD7FIFryX8lqfwfA8URaSxG3-Tr-fV4a4ULcaE4_fgWkel2RVgFxnKMKHWEtvCWZWSQb9eJLViYBxFl1eZCLxz_wyj-Q0Dnnf5K8TroQCq/s1600/main.JPG&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;i&gt;Dentro de nuestro formulario crearemos un método &lt;b&gt;limpiarcontroles()&lt;/b&gt;, que al ejecutarlo desde el botón &lt;b&gt;Nuevo&lt;/b&gt;, nos limpie el contenido del formulario para un nuevo cálculo y; luego programamos dentro del botón &lt;b&gt;Aceptar&lt;/b&gt; creando un objeto al que llamaremos &lt;b&gt;oMatriculados&lt;/b&gt;, que a su vez trabajará con los contenidos que nos interesan para obtener los resultados que queremos.&lt;/i&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj504rzsZHIA238iJypGHLP4HKSQikZD8jSe821CQ6ta2ASP5433OGXTGqwFktp_Wl6mlgdN7WWAAfN8HsPp45pA35-cujkablkOmbKTMnTxtZGIEecYlFvB0gN1DOKoJnJMFio2gyiJJdm/s1600/form1.JPG&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj504rzsZHIA238iJypGHLP4HKSQikZD8jSe821CQ6ta2ASP5433OGXTGqwFktp_Wl6mlgdN7WWAAfN8HsPp45pA35-cujkablkOmbKTMnTxtZGIEecYlFvB0gN1DOKoJnJMFio2gyiJJdm/s1600/form1.JPG&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3554248320209601234/posts/default/1568240833761512831'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3554248320209601234/posts/default/1568240833761512831'/><link rel='alternate' type='text/html' href='http://netbeanspractico.blogspot.com/2013/04/matricula-de-alumno.html' title='Matrícula de Alumno'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj4OYilnq1E4DytZRJ95IaYO1F8a6oQlES0WrLnUiUnV-kckjb2B0DdcWwbU88EyCECS3pZmL3k4BoVAJ95Dk4SRABCtM1Ir0KiB5a2lcMhMM0vcUBHrHs9XeQSgMqTFCEcUL5FHYUhJlRh/s72-c/Dibujo.JPG" height="72" width="72"/></entry><entry><id>tag:blogger.com,1999:blog-3554248320209601234.post-409457266587497006</id><published>2013-04-18T00:14:00.000-07:00</published><updated>2013-04-28T13:57:29.037-07:00</updated><title type='text'>Factorial de un Número</title><content type='html'>&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi8sYvrNhcV0BFpPAdVx61TfjvqHLkSDi0hHIXVmkZQ93xSH63AyU76VCFTUKABtZiXCi1ygYTXG2p9ZHO8KG3592AqF_Rp2rXFh3FBPkHZfiImrtlwnKkYctm0MemAh5JEWXovtgAe1EBe/s1600/Dibujo.JPG&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi8sYvrNhcV0BFpPAdVx61TfjvqHLkSDi0hHIXVmkZQ93xSH63AyU76VCFTUKABtZiXCi1ygYTXG2p9ZHO8KG3592AqF_Rp2rXFh3FBPkHZfiImrtlwnKkYctm0MemAh5JEWXovtgAe1EBe/s1600/Dibujo.JPG&quot; height=&quot;114&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;span style=&quot;color: red;&quot;&gt;Este ejercicio calculará el factorial de un número ingresado.&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;a name=&#39;more&#39;&gt;&lt;/a&gt;&lt;br /&gt;
&lt;i&gt;El &lt;b class=&quot;selflink&quot;&gt;factorial&lt;/b&gt; para todo&lt;b&gt; entero positivo n&lt;/b&gt; (&lt;b&gt;factorial de n&lt;/b&gt; o &lt;b&gt;n factorial)&lt;/b&gt; se define como el producto de todos los números enteros positivos desde 1 (es decir, los números naturales) hasta n. Aquí el código:&lt;/i&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi2cZzZq3yNFEX5w4UCCET3jnsemHYSKjAEmquYAKdVyjbmIWb9PJKHtXHrIGkGDh-A7zeOKpIK8I1z5CASGQakK78UdcgYJF39wNtJuGp-Vt3rFALwubiA1kHhVxHwitA6fOI6pRUl-1WP/s1600/voids.JPG&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi2cZzZq3yNFEX5w4UCCET3jnsemHYSKjAEmquYAKdVyjbmIWb9PJKHtXHrIGkGDh-A7zeOKpIK8I1z5CASGQakK78UdcgYJF39wNtJuGp-Vt3rFALwubiA1kHhVxHwitA6fOI6pRUl-1WP/s1600/voids.JPG&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;i&gt;Como siempre, llamaremos a nuestros métodos creados, desde sus respectivos botones (&lt;b&gt;Aceptar&lt;/b&gt; y &lt;b&gt;Nuevo&lt;/b&gt;).&lt;/i&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg4ZO0SsvT7RIxK7sYX8D0OJVzwRDPUGnjJ-QUxJxRsfpzvnsyQF41LU7FX3bUpJpiZa-97mn0_xwdaBuYBpbKZpVDgLeNbz4jEYf5LQgG6FzQt2BclLAjIkwmdxdeOJH8LebbiAHMLCpb1/s1600/llamarvoids.JPG&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg4ZO0SsvT7RIxK7sYX8D0OJVzwRDPUGnjJ-QUxJxRsfpzvnsyQF41LU7FX3bUpJpiZa-97mn0_xwdaBuYBpbKZpVDgLeNbz4jEYf5LQgG6FzQt2BclLAjIkwmdxdeOJH8LebbiAHMLCpb1/s1600/llamarvoids.JPG&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3554248320209601234/posts/default/409457266587497006'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3554248320209601234/posts/default/409457266587497006'/><link rel='alternate' type='text/html' href='http://netbeanspractico.blogspot.com/2013/04/factorial-de-un-numero.html' title='Factorial de un Número'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi8sYvrNhcV0BFpPAdVx61TfjvqHLkSDi0hHIXVmkZQ93xSH63AyU76VCFTUKABtZiXCi1ygYTXG2p9ZHO8KG3592AqF_Rp2rXFh3FBPkHZfiImrtlwnKkYctm0MemAh5JEWXovtgAe1EBe/s72-c/Dibujo.JPG" height="72" width="72"/></entry><entry><id>tag:blogger.com,1999:blog-3554248320209601234.post-6047595260690706726</id><published>2013-04-16T22:12:00.000-07:00</published><updated>2013-04-28T13:58:47.544-07:00</updated><title type='text'>Grados Celsius a Farenheit</title><content type='html'>&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjnji7NRAJKryDZ4loGEN3RkGtpAVZ_oSKf3rr_O37evQDOPg2RGi9Ujxjm5w4I38EANODQh-5h6lvNYNaQH9gVGuuzzcrX9TQXKCNgDpG0DeEOC0jVqXs0AzSd2YwD_3y29s4tLOs_GJIx/s1600/Dibujo.JPG&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjnji7NRAJKryDZ4loGEN3RkGtpAVZ_oSKf3rr_O37evQDOPg2RGi9Ujxjm5w4I38EANODQh-5h6lvNYNaQH9gVGuuzzcrX9TQXKCNgDpG0DeEOC0jVqXs0AzSd2YwD_3y29s4tLOs_GJIx/s1600/Dibujo.JPG&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;/div&gt;
&lt;br /&gt;
&lt;span style=&quot;color: red;&quot;&gt;Ejercicio sencillo en el que aprenderemos a convertir de grados Celsius a grados Farenheit.&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;a name=&#39;more&#39;&gt;&lt;/a&gt;&lt;br /&gt;
&lt;i&gt;Crearemos dos métodos: &lt;b&gt;aceptar()&lt;/b&gt; y &lt;b&gt;nuevo()&lt;/b&gt; respectivamente. Para el primero usaremos &lt;u&gt;&lt;b&gt;parseInt&lt;/b&gt;&lt;/u&gt;, que como ya sabemos, es un método estático que nos ayudará a convertir el contenido de nuestra caja de texto (&lt;b&gt;&lt;span style=&quot;color: #6aa84f;&quot;&gt;txtCelsius&lt;/span&gt;&lt;/b&gt;) a valor entero, luego guardamos el contenido en una variable &lt;b&gt;a&lt;/b&gt;, que declaramos como double y hacemos los cálculos necesarios de conversión, guardando el resultado en la variable double llamada&lt;b&gt; result&lt;/b&gt;. En el segundo 
método simplemente limpiaremos los contenidos de la caja de texto (&lt;span style=&quot;color: #6aa84f;&quot;&gt;&lt;b&gt;txtCelsius&lt;/b&gt;&lt;/span&gt;) y el label (&lt;span style=&quot;color: #6aa84f;&quot;&gt;&lt;b&gt;lblRespuesta&lt;/b&gt;&lt;/span&gt;) respectivamente. El código es el siguiente:&lt;/i&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEihWXI4HjpzU5OrPtIUgcR5xpbtVf43gHDLvM92fImXBSmo_H7wURrm0NIdaaMZCow6C5T5T7ZMh5Zmng4F9JuRr2wTpyX_KZRCR-w4uAlUmZQ1aXYlO5tuxNfkxkeet4DO8irl5ujDIaj1/s1600/voids.JPG&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEihWXI4HjpzU5OrPtIUgcR5xpbtVf43gHDLvM92fImXBSmo_H7wURrm0NIdaaMZCow6C5T5T7ZMh5Zmng4F9JuRr2wTpyX_KZRCR-w4uAlUmZQ1aXYlO5tuxNfkxkeet4DO8irl5ujDIaj1/s1600/voids.JPG&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;i&gt;Para terminar, llamamos a nuestros métodos creados programando desde los botones &lt;b&gt;Aceptar&lt;/b&gt; y &lt;b&gt;Nuevo&lt;/b&gt;.&lt;/i&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhFI6Q0A6nQKYeTi1CEuYPSEvr4Jp1DSZF6ZKZD_gE3K29uKQvI19v1dXXs8RD-XKOQLStQJO1VDH23bdCBrV9x_3fw63rclHUpW1rx2EWExD2IwNO_Vf1wIUs7nmYx3OzIfiy7H7_4Lany/s1600/llamarvoids.JPG&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhFI6Q0A6nQKYeTi1CEuYPSEvr4Jp1DSZF6ZKZD_gE3K29uKQvI19v1dXXs8RD-XKOQLStQJO1VDH23bdCBrV9x_3fw63rclHUpW1rx2EWExD2IwNO_Vf1wIUs7nmYx3OzIfiy7H7_4Lany/s1600/llamarvoids.JPG&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3554248320209601234/posts/default/6047595260690706726'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3554248320209601234/posts/default/6047595260690706726'/><link rel='alternate' type='text/html' href='http://netbeanspractico.blogspot.com/2013/04/grados-celsius-farenheit.html' title='Grados Celsius a Farenheit'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjnji7NRAJKryDZ4loGEN3RkGtpAVZ_oSKf3rr_O37evQDOPg2RGi9Ujxjm5w4I38EANODQh-5h6lvNYNaQH9gVGuuzzcrX9TQXKCNgDpG0DeEOC0jVqXs0AzSd2YwD_3y29s4tLOs_GJIx/s72-c/Dibujo.JPG" height="72" width="72"/></entry><entry><id>tag:blogger.com,1999:blog-3554248320209601234.post-1198130165339692291</id><published>2013-04-16T20:48:00.000-07:00</published><updated>2013-04-28T14:00:49.300-07:00</updated><title type='text'>Número Par o Impar</title><content type='html'>&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjSMSOclHVgKpK3xB9RY2litrDhc0a6XCRombwDhhlvP6UERHsZwBexJISFawNhgjHQNB-n6fVknoVuK9V9Xvt89W0TtatxTLWZFk6quD6gw0mqSOv5kOb5DfH-ZqNymOTiZ7Dj1tUHnAG3/s1600/Dibujo.JPG&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjSMSOclHVgKpK3xB9RY2litrDhc0a6XCRombwDhhlvP6UERHsZwBexJISFawNhgjHQNB-n6fVknoVuK9V9Xvt89W0TtatxTLWZFk6quD6gw0mqSOv5kOb5DfH-ZqNymOTiZ7Dj1tUHnAG3/s1600/Dibujo.JPG&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;span style=&quot;color: red;&quot;&gt;Ejercicio simple que identifica un número cualquiera como Par o Impar.&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;a name=&#39;more&#39;&gt;&lt;/a&gt;&lt;br /&gt;
&lt;i&gt;Crearemos dos métodos: &lt;b&gt;aceptar()&lt;/b&gt; y &lt;b&gt;nuevo()&lt;/b&gt; respectivamente. Para el primero usaremos &lt;u&gt;&lt;b&gt;parseInt&lt;/b&gt;&lt;/u&gt;, que es un método estático y nos ayudará a convertir el contenido de nuestra caja de texto (&lt;b&gt;&lt;span style=&quot;color: #6aa84f;&quot;&gt;txtNumero&lt;/span&gt;&lt;/b&gt;) a valor entero, luego guardamos el contenido en una variable que declaramos como entera (&lt;b&gt;&lt;span style=&quot;color: blue;&quot;&gt;int&lt;/span&gt; x&lt;/b&gt;) y por último trabajaremos bajo la condicional (&lt;b&gt;&lt;span style=&quot;color: blue;&quot;&gt;if&lt;/span&gt;-&lt;span style=&quot;color: blue;&quot;&gt;else&lt;/span&gt;&lt;/b&gt;) que nos ayudará a decidir si el número es par o impar. En el segundo método simplemente limpiaremos los contenidos de la caja de texto (&lt;span style=&quot;color: #6aa84f;&quot;&gt;&lt;b&gt;txtNumero&lt;/b&gt;&lt;/span&gt;) y el label (&lt;span style=&quot;color: #6aa84f;&quot;&gt;&lt;b&gt;lblRespuesta&lt;/b&gt;&lt;/span&gt;) respectivamente. El código es el siguiente:&lt;/i&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjDua-ZKlCBWT0VIpv0lTNdMr-Nk61wVezcz6jv9GsU0WDQywfplzBm4RmFtS8lopD2gi-uXu6WnTXkw7qwdpapJ7k5VR3p4gkPy1vZVp3FgwYqmTuSEqB_WCE2aKhIuz87jq9xXQ6qzR-_/s1600/voids.JPG&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjDua-ZKlCBWT0VIpv0lTNdMr-Nk61wVezcz6jv9GsU0WDQywfplzBm4RmFtS8lopD2gi-uXu6WnTXkw7qwdpapJ7k5VR3p4gkPy1vZVp3FgwYqmTuSEqB_WCE2aKhIuz87jq9xXQ6qzR-_/s1600/voids.JPG&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;i&gt;Por último, llamaremos a nuestros métodos, programando desde los botones &lt;b&gt;Aceptar&lt;/b&gt; y &lt;b&gt;Nuevo &lt;/b&gt;respectivamente.&lt;/i&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgpCHNEU7AJTQ75L9ijslLZEWesQYnJaVx9H3HKYM3eGfAy9VkftFUZezl-OzlVZJ6mHv4rZUmhSIoIxojGYcgSullzD_7ojqC9Heqjrh1lctsPxWPRBOpGQ2-OXIisLrM8rn2ixIMs7fiq/s1600/llamarvoids.JPG&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgpCHNEU7AJTQ75L9ijslLZEWesQYnJaVx9H3HKYM3eGfAy9VkftFUZezl-OzlVZJ6mHv4rZUmhSIoIxojGYcgSullzD_7ojqC9Heqjrh1lctsPxWPRBOpGQ2-OXIisLrM8rn2ixIMs7fiq/s1600/llamarvoids.JPG&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3554248320209601234/posts/default/1198130165339692291'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3554248320209601234/posts/default/1198130165339692291'/><link rel='alternate' type='text/html' href='http://netbeanspractico.blogspot.com/2013/04/numero-par-o-impar.html' title='Número Par o Impar'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjSMSOclHVgKpK3xB9RY2litrDhc0a6XCRombwDhhlvP6UERHsZwBexJISFawNhgjHQNB-n6fVknoVuK9V9Xvt89W0TtatxTLWZFk6quD6gw0mqSOv5kOb5DfH-ZqNymOTiZ7Dj1tUHnAG3/s72-c/Dibujo.JPG" height="72" width="72"/></entry><entry><id>tag:blogger.com,1999:blog-3554248320209601234.post-2855874259196022895</id><published>2013-04-16T15:45:00.000-07:00</published><updated>2013-04-28T14:04:15.339-07:00</updated><title type='text'>Operaciones Básicas por Consola</title><content type='html'>&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhBypeUlLZlkEDXpjXlMsAAr5Z7SgNLgRzlfhSmgnz3S-k5wLVm6Nx_-Ob8pPbExYXWCkejMlqvWRhuHmAxdi8Tdz2IoM_SctnLNwwH4U2DtRB1CMc443vd26q0K-rjGUK9mdMPriD-vpWB/s1600/Dibujo.JPG&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhBypeUlLZlkEDXpjXlMsAAr5Z7SgNLgRzlfhSmgnz3S-k5wLVm6Nx_-Ob8pPbExYXWCkejMlqvWRhuHmAxdi8Tdz2IoM_SctnLNwwH4U2DtRB1CMc443vd26q0K-rjGUK9mdMPriD-vpWB/s1600/Dibujo.JPG&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;/div&gt;
&lt;br /&gt;
&lt;span style=&quot;color: red;&quot;&gt;En este ejercicio ingresaremos dos números cualquiera y el sistema nos devolverá las operaciones básicas con esos números. Usaremos System.out.&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;a name=&#39;more&#39;&gt;&lt;/a&gt;&lt;br /&gt;
&lt;a href=&quot;https://www.blogger.com/null&quot; name=&quot;more&quot;&gt;&lt;/a&gt;&lt;i&gt;&lt;span style=&quot;color: red;&quot;&gt;&lt;span style=&quot;color: black;&quot;&gt;&lt;i&gt;La programación la haremos dentro del método &lt;b&gt;main&lt;/b&gt; de nuestro proyecto. importaremos la clase &lt;u&gt;Scanner&lt;/u&gt; (&lt;b&gt;java.util.Scanner&lt;/b&gt;), que nos servirá para leer los dos números ingresados. La codificación es como sigue:&lt;/i&gt;&lt;/span&gt;&lt;/span&gt;&lt;/i&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;i&gt;&lt;i&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj0VfBx7YruvOqvHrTBuHc8oW8GsdU50-YiN66Gjv3wqMVnSpdSL6Cvj66x7eIVIKF8Atev_dxKmqKdEoci_rBuOUsT37bU_LNUJmv34sjQBtbkebQyqoGrtRMnn4-IFtoc5iZyyavR-aDZ/s1600/codigo.JPG&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj0VfBx7YruvOqvHrTBuHc8oW8GsdU50-YiN66Gjv3wqMVnSpdSL6Cvj66x7eIVIKF8Atev_dxKmqKdEoci_rBuOUsT37bU_LNUJmv34sjQBtbkebQyqoGrtRMnn4-IFtoc5iZyyavR-aDZ/s1600/codigo.JPG&quot; /&gt;&lt;/a&gt;&lt;/i&gt;&lt;/i&gt;&lt;/div&gt;
&lt;i&gt;&lt;i&gt; &lt;/i&gt;&lt;/i&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3554248320209601234/posts/default/2855874259196022895'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3554248320209601234/posts/default/2855874259196022895'/><link rel='alternate' type='text/html' href='http://netbeanspractico.blogspot.com/2013/04/operaciones-basicas-por-consola.html' title='Operaciones Básicas por Consola'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhBypeUlLZlkEDXpjXlMsAAr5Z7SgNLgRzlfhSmgnz3S-k5wLVm6Nx_-Ob8pPbExYXWCkejMlqvWRhuHmAxdi8Tdz2IoM_SctnLNwwH4U2DtRB1CMc443vd26q0K-rjGUK9mdMPriD-vpWB/s72-c/Dibujo.JPG" height="72" width="72"/></entry><entry><id>tag:blogger.com,1999:blog-3554248320209601234.post-5270994952219378454</id><published>2013-04-16T14:40:00.000-07:00</published><updated>2013-04-28T14:05:40.209-07:00</updated><title type='text'>Días a Horas por Consola</title><content type='html'>&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiapQXRsiwUz16-dvyBvnUCTq4rTlFSH6rfTgEBqwOZr0OnAQUDU0pSQfKt8FTfLulqwHmKgACc7WqsWw0L29U8VEKjxY94PsRCayVNQ2kyRo-uwJN2WN66w63P8c5Mga4IE1WhL6fAj3DE/s1600/Dibujo.JPG&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiapQXRsiwUz16-dvyBvnUCTq4rTlFSH6rfTgEBqwOZr0OnAQUDU0pSQfKt8FTfLulqwHmKgACc7WqsWw0L29U8VEKjxY94PsRCayVNQ2kyRo-uwJN2WN66w63P8c5Mga4IE1WhL6fAj3DE/s1600/Dibujo.JPG&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;span style=&quot;color: red;&quot;&gt;En este ejercicio imprimiremos por consola el número de días ingresados, para convertirlos a número de horas. Usaremos System.out.&lt;/span&gt;&lt;br /&gt;
&lt;i&gt;&lt;b&gt;&lt;span style=&quot;color: red;&quot;&gt;&lt;/span&gt;&lt;/b&gt;&lt;/i&gt;&lt;br /&gt;
&lt;a name=&#39;more&#39;&gt;&lt;/a&gt;&lt;br /&gt;
&lt;i&gt;&lt;span style=&quot;color: red;&quot;&gt;&lt;span style=&quot;color: black;&quot;&gt;&lt;i&gt;La programación la haremos dentro del método &lt;b&gt;main&lt;/b&gt; de nuestro proyecto. importaremos la clase &lt;u&gt;Scanner&lt;/u&gt; (&lt;b&gt;java.util.Scanner&lt;/b&gt;), que nos servirá para leer lo que el usuario introduzca a través del teclado. La codificación es como sigue:&lt;/i&gt;&lt;/span&gt;&lt;/span&gt;&lt;/i&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEihN085rp9JgqO77jPYyKcLaefck5agoav7Kzblbz3sgCdv_4PqL2L0hhtG1AOn9NR5malhm8qtfACWX7LvI8JMza3UxgxhIMYco9sH_R3VEY3Vks4viDRJQ5biwT1jYiVaE72FoH5283td/s1600/codigo.JPG&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEihN085rp9JgqO77jPYyKcLaefck5agoav7Kzblbz3sgCdv_4PqL2L0hhtG1AOn9NR5malhm8qtfACWX7LvI8JMza3UxgxhIMYco9sH_R3VEY3Vks4viDRJQ5biwT1jYiVaE72FoH5283td/s1600/codigo.JPG&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;i&gt;&lt;span style=&quot;color: red;&quot;&gt;&lt;span style=&quot;color: black;&quot;&gt;&lt;i&gt;&amp;nbsp;&lt;/i&gt;&lt;/span&gt;&lt;/span&gt;&lt;b&gt;&lt;span style=&quot;color: red;&quot;&gt; &lt;/span&gt;&lt;/b&gt;&lt;/i&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3554248320209601234/posts/default/5270994952219378454'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3554248320209601234/posts/default/5270994952219378454'/><link rel='alternate' type='text/html' href='http://netbeanspractico.blogspot.com/2013/04/dias-horas-por-consola.html' title='Días a Horas por Consola'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiapQXRsiwUz16-dvyBvnUCTq4rTlFSH6rfTgEBqwOZr0OnAQUDU0pSQfKt8FTfLulqwHmKgACc7WqsWw0L29U8VEKjxY94PsRCayVNQ2kyRo-uwJN2WN66w63P8c5Mga4IE1WhL6fAj3DE/s72-c/Dibujo.JPG" height="72" width="72"/></entry><entry><id>tag:blogger.com,1999:blog-3554248320209601234.post-5914820578684768227</id><published>2013-04-16T14:07:00.000-07:00</published><updated>2013-04-28T14:06:59.136-07:00</updated><title type='text'>Tabla de Multiplicar por Consola</title><content type='html'>&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjOB9RP8Fl-Nrl4Tt7qRKzHyxwH8M39ewMjgiK3f8W8c6YeBXKqRI2FT93e86bcLAZLt1Bw5wKyyUBaVZG0R-fZtTfAiL15fMvOPqwt4YduZdtTOdoNKCTMR-s7XfyGrpj6Bi5SXIazMe-P/s1600/Dibujo.JPG&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjOB9RP8Fl-Nrl4Tt7qRKzHyxwH8M39ewMjgiK3f8W8c6YeBXKqRI2FT93e86bcLAZLt1Bw5wKyyUBaVZG0R-fZtTfAiL15fMvOPqwt4YduZdtTOdoNKCTMR-s7XfyGrpj6Bi5SXIazMe-P/s1600/Dibujo.JPG&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;span style=&quot;color: red;&quot;&gt;En este ejercicio, aprenderemos a imprimir por consola usando System.out. Vamos a crear una tabla de multiplicar con cualquier número ingresado.&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;a name=&#39;more&#39;&gt;&lt;/a&gt;&lt;br /&gt;
&lt;i&gt;La programación la haremos dentro del método &lt;b&gt;main&lt;/b&gt; de nuestro proyecto. importaremos la clase &lt;u&gt;Scanner&lt;/u&gt; (&lt;b&gt;java.util.Scanner&lt;/b&gt;), que nos servirá para leer lo que el usuario introduzca a través del teclado. La codificación es como sigue:&lt;/i&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj_aUPLt4coHyQwTtWtQ81RUPw7zSI471izr9yRbCxijx1hUlG95kMZ7ypmGam9DNnPPt0MHp-VEHT6KvqF7kVi8W8Oq2mMlSr653rPeon6x1scG8xgajoL08VePUz7i2zXyOo-xzmSdU8S/s1600/codigo.JPG&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj_aUPLt4coHyQwTtWtQ81RUPw7zSI471izr9yRbCxijx1hUlG95kMZ7ypmGam9DNnPPt0MHp-VEHT6KvqF7kVi8W8Oq2mMlSr653rPeon6x1scG8xgajoL08VePUz7i2zXyOo-xzmSdU8S/s1600/codigo.JPG&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3554248320209601234/posts/default/5914820578684768227'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3554248320209601234/posts/default/5914820578684768227'/><link rel='alternate' type='text/html' href='http://netbeanspractico.blogspot.com/2013/04/tabla-de-multiplicar-por-consola.html' title='Tabla de Multiplicar por Consola'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjOB9RP8Fl-Nrl4Tt7qRKzHyxwH8M39ewMjgiK3f8W8c6YeBXKqRI2FT93e86bcLAZLt1Bw5wKyyUBaVZG0R-fZtTfAiL15fMvOPqwt4YduZdtTOdoNKCTMR-s7XfyGrpj6Bi5SXIazMe-P/s72-c/Dibujo.JPG" height="72" width="72"/></entry><entry><id>tag:blogger.com,1999:blog-3554248320209601234.post-2135285433060011547</id><published>2013-04-14T19:46:00.000-07:00</published><updated>2013-04-28T14:08:37.889-07:00</updated><title type='text'>Convertir Texto de Minúsculas a Mayúsculas</title><content type='html'>&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhmzEYtV42hQBhqC6Rrs-AlCivv6F7x1IdWaM2fmhi5oXiGEts8KgdTNHi8PvIMntZB2QGT3F2lrGQnwfiIlO0WASg3zjxmqQbrZH_ufdgWnxuOCneOX5gJ6GW968bdWiZJPS9MEoj8ljp8/s1600/Dibujo.JPG&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhmzEYtV42hQBhqC6Rrs-AlCivv6F7x1IdWaM2fmhi5oXiGEts8KgdTNHi8PvIMntZB2QGT3F2lrGQnwfiIlO0WASg3zjxmqQbrZH_ufdgWnxuOCneOX5gJ6GW968bdWiZJPS9MEoj8ljp8/s1600/Dibujo.JPG&quot; height=&quot;172&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;/div&gt;
&lt;br /&gt;
&lt;span style=&quot;color: red;&quot;&gt;Ejercicio simple en el que aprenderemos a cambiar un texto de minúsculas a mayúsculas.&lt;/span&gt;&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;/div&gt;
&lt;br /&gt;
&lt;a name=&#39;more&#39;&gt;&lt;/a&gt;&lt;i&gt;Primero crearemos un método llamado &lt;b&gt;nuevo()&lt;/b&gt;, que nos limpiará la caja de texto (&lt;b&gt;&lt;span style=&quot;color: #6aa84f;&quot;&gt;txtTexto()&lt;/span&gt;&lt;/b&gt;) y el label (&lt;b&gt;&lt;span style=&quot;color: #6aa84f;&quot;&gt;lblMayuscula()&lt;/span&gt;&lt;/b&gt;) respectivamente. Luego viene el segundo método, que es &lt;b&gt;aceptar()&lt;/b&gt; y que se encargará de cambiar el texto ingresado a mayúsculas usando &lt;b&gt;toUpperCase,&lt;/b&gt; que no es más que una función de cadena que devuelve un caracter o texto a mayúsculas.&lt;/i&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhkmGzrld3dQJkD8dj4NG18HvHj4v9WUsqvjr6XYT2tb0j-M1FEPF52Htxbg9zOOdWw2rzRFrNxQTdNAe7aFmkqieNhNmKXubgXgxGueNa49slOdlAvM3omLTo1BBL6BQ7vyEA2_2UZjvbW/s1600/voids.JPG&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhkmGzrld3dQJkD8dj4NG18HvHj4v9WUsqvjr6XYT2tb0j-M1FEPF52Htxbg9zOOdWw2rzRFrNxQTdNAe7aFmkqieNhNmKXubgXgxGueNa49slOdlAvM3omLTo1BBL6BQ7vyEA2_2UZjvbW/s1600/voids.JPG&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;i&gt;Luego programamos nuestro botones &lt;b&gt;Aceptar&lt;/b&gt; y &lt;b&gt;Nuevo&lt;/b&gt; respectivamente, para llamar a nuestros métodos creados. Como vemos, no es cosa del otro mundo. Algo muy simple ¿Verdad?.&lt;/i&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgnD6oSx_OUolXBSUopuRM4rza7T1KV8oYtkUAvMAn_p3lmibWeEU9UPqg84WWu3TiFbCZkOzHVrVM77Qd-dW6RL8fCVV9sdW2_fKUfEydrDfCCXkn4uhOmrsOeAc5UOiQ6qF4pAhlpKogs/s1600/llamar.JPG&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgnD6oSx_OUolXBSUopuRM4rza7T1KV8oYtkUAvMAn_p3lmibWeEU9UPqg84WWu3TiFbCZkOzHVrVM77Qd-dW6RL8fCVV9sdW2_fKUfEydrDfCCXkn4uhOmrsOeAc5UOiQ6qF4pAhlpKogs/s1600/llamar.JPG&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;i&gt;&lt;br /&gt;&lt;/i&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3554248320209601234/posts/default/2135285433060011547'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3554248320209601234/posts/default/2135285433060011547'/><link rel='alternate' type='text/html' href='http://netbeanspractico.blogspot.com/2013/04/convertir-texto-de-minusculas-mayusculas.html' title='Convertir Texto de Minúsculas a Mayúsculas'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhmzEYtV42hQBhqC6Rrs-AlCivv6F7x1IdWaM2fmhi5oXiGEts8KgdTNHi8PvIMntZB2QGT3F2lrGQnwfiIlO0WASg3zjxmqQbrZH_ufdgWnxuOCneOX5gJ6GW968bdWiZJPS9MEoj8ljp8/s72-c/Dibujo.JPG" height="72" width="72"/></entry><entry><id>tag:blogger.com,1999:blog-3554248320209601234.post-3995449683335469677</id><published>2013-04-14T16:07:00.002-07:00</published><updated>2013-04-28T14:09:51.303-07:00</updated><title type='text'>Ejecutar el Bloc de Notas de Windows</title><content type='html'>&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi45trMv8PXL5bccHo9re-IyE7KlLqzm30gXvYTJ7hifccSHVSms-88aLhQpNvmlRxJ42YUKA3D5-j5Un6U1ZUzPfOaceC0oA-v6gYlZIvxoO7UBiUcs4K2ZB0nB4r1cjDQhHf5jGb0Cou3/s1600/Dibujo.JPG&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi45trMv8PXL5bccHo9re-IyE7KlLqzm30gXvYTJ7hifccSHVSms-88aLhQpNvmlRxJ42YUKA3D5-j5Un6U1ZUzPfOaceC0oA-v6gYlZIvxoO7UBiUcs4K2ZB0nB4r1cjDQhHf5jGb0Cou3/s1600/Dibujo.JPG&quot; height=&quot;320&quot; width=&quot;226&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;/div&gt;
&lt;span style=&quot;color: red;&quot;&gt;Este ejercicio nos enseña cómo ejecutar el Bloc de Notas (Notepad) de &lt;a href=&quot;http://comandoswindows7.blogspot.com/&quot; target=&quot;_blank&quot;&gt;Windows&lt;/a&gt; desde Netbeans.&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;a name=&#39;more&#39;&gt;&lt;/a&gt;&lt;i&gt;&amp;nbsp;Primero vamos a importar el &lt;b&gt;paquete de excepciones&lt;/b&gt;, tal como indica la imagen:&lt;/i&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjRECJRfrwszVNuw8cJNAuD6P9TWaUqE0FAL2Y6BIxQh4ByNdga8YPC80CckX9nRe7XsDeiS3rCaoJEgonbIwOh9nIWUr2lv_NtyW_hdqounkPABudZAKT1cEukIR1QeOVLokWgdrKKO5-C/s1600/excepcion.JPG&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjRECJRfrwszVNuw8cJNAuD6P9TWaUqE0FAL2Y6BIxQh4ByNdga8YPC80CckX9nRe7XsDeiS3rCaoJEgonbIwOh9nIWUr2lv_NtyW_hdqounkPABudZAKT1cEukIR1QeOVLokWgdrKKO5-C/s1600/excepcion.JPG&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;i&gt;&lt;i&gt;Luego programamos nuestro botón (&lt;b&gt;btnBlocnotaswin&lt;/b&gt;) con el siguiente código:&lt;/i&gt;&lt;/i&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh0jEAOpYzSmd_6gT0oxLerNowWUv1lZI2feKq_dC4NLbB9I02z_x-l78XWgnhirAsBegQbDCwNRRxdv87oT31BjY_38mBx2inA33fMbDHR9QgTY_4jAkHcyNOeC0ZtjNRjaCV4SWUJhSyZ/s1600/boton.JPG&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh0jEAOpYzSmd_6gT0oxLerNowWUv1lZI2feKq_dC4NLbB9I02z_x-l78XWgnhirAsBegQbDCwNRRxdv87oT31BjY_38mBx2inA33fMbDHR9QgTY_4jAkHcyNOeC0ZtjNRjaCV4SWUJhSyZ/s1600/boton.JPG&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;i&gt;&lt;i&gt;&amp;nbsp;&lt;/i&gt; &lt;/i&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3554248320209601234/posts/default/3995449683335469677'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3554248320209601234/posts/default/3995449683335469677'/><link rel='alternate' type='text/html' href='http://netbeanspractico.blogspot.com/2013/04/ejecutar-el-block-de-notas-de-windows.html' title='Ejecutar el Bloc de Notas de Windows'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi45trMv8PXL5bccHo9re-IyE7KlLqzm30gXvYTJ7hifccSHVSms-88aLhQpNvmlRxJ42YUKA3D5-j5Un6U1ZUzPfOaceC0oA-v6gYlZIvxoO7UBiUcs4K2ZB0nB4r1cjDQhHf5jGb0Cou3/s72-c/Dibujo.JPG" height="72" width="72"/></entry><entry><id>tag:blogger.com,1999:blog-3554248320209601234.post-5563627559014986513</id><published>2013-04-14T15:39:00.000-07:00</published><updated>2013-04-28T14:11:36.887-07:00</updated><title type='text'>Ejecutar la Calculadora de Windows</title><content type='html'>&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEggJXMv7lNcMc5iaJ1U94IEkK2uL9jYXUIR45rdLbNM8Nw57BHVDfH-9erOTEXtfyJ5vrLnrML1sZaWi1IOvibNuLcMJqGmJEYHTbDTieh1zHsCX3I2TNabM5L7P78FGKzIzFsXHAj1Cc_S/s1600/Dibujo.JPG&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEggJXMv7lNcMc5iaJ1U94IEkK2uL9jYXUIR45rdLbNM8Nw57BHVDfH-9erOTEXtfyJ5vrLnrML1sZaWi1IOvibNuLcMJqGmJEYHTbDTieh1zHsCX3I2TNabM5L7P78FGKzIzFsXHAj1Cc_S/s1600/Dibujo.JPG&quot; height=&quot;320&quot; width=&quot;208&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;span style=&quot;color: red;&quot;&gt;Este ejercicio nos enseña cómo ejecutar la calculadora de &lt;a href=&quot;http://comandoswindows7.blogspot.com/&quot; target=&quot;_blank&quot;&gt;Windows&lt;/a&gt; desde Netbeans.&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;a name=&#39;more&#39;&gt;&lt;/a&gt;&lt;br /&gt;
&lt;i&gt;Primero vamos a importar el &lt;b&gt;paquete de excepciones&lt;/b&gt;, tal como indica la imagen:&lt;/i&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhv7MhXMywqWvB5K8E7xZy7pzkL4m9i9OMyvbUuOK6cVEgXX_hzdrrzfTrPiqbh79bOkGjPvY4e45NLb7lZBPY6R56YXg0Zty8JYVPCQ1idnPR6hN9Gbbidka8IzCG12i0zlmHP9aCd0aOa/s1600/excepcion.JPG&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhv7MhXMywqWvB5K8E7xZy7pzkL4m9i9OMyvbUuOK6cVEgXX_hzdrrzfTrPiqbh79bOkGjPvY4e45NLb7lZBPY6R56YXg0Zty8JYVPCQ1idnPR6hN9Gbbidka8IzCG12i0zlmHP9aCd0aOa/s1600/excepcion.JPG&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;i&gt;Luego programamos nuestro botón (&lt;b&gt;btnCalculadora&lt;/b&gt;) con el siguiente código:&lt;/i&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhZ38bpnmgRZWzi3fw669NoGf_H6yko-Gd6lymO5j2dZH5LYYlncCoUVsReWad353Xlo_KqO6w5TAnnJcoRqkWBNV0Uhg46jedhfcFSRFwE8NalAdwk-VpEWVFPsFq7tfx5bZBn_fys7DtV/s1600/boton.JPG&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhZ38bpnmgRZWzi3fw669NoGf_H6yko-Gd6lymO5j2dZH5LYYlncCoUVsReWad353Xlo_KqO6w5TAnnJcoRqkWBNV0Uhg46jedhfcFSRFwE8NalAdwk-VpEWVFPsFq7tfx5bZBn_fys7DtV/s1600/boton.JPG&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;/div&gt;
&lt;br /&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3554248320209601234/posts/default/5563627559014986513'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3554248320209601234/posts/default/5563627559014986513'/><link rel='alternate' type='text/html' href='http://netbeanspractico.blogspot.com/2013/04/ejecutar-la-calculadora-de-windows.html' title='Ejecutar la Calculadora de Windows'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEggJXMv7lNcMc5iaJ1U94IEkK2uL9jYXUIR45rdLbNM8Nw57BHVDfH-9erOTEXtfyJ5vrLnrML1sZaWi1IOvibNuLcMJqGmJEYHTbDTieh1zHsCX3I2TNabM5L7P78FGKzIzFsXHAj1Cc_S/s72-c/Dibujo.JPG" height="72" width="72"/></entry><entry><id>tag:blogger.com,1999:blog-3554248320209601234.post-6126278873306158520</id><published>2013-04-12T21:47:00.001-07:00</published><updated>2013-04-28T14:13:16.167-07:00</updated><title type='text'>Número Entero a BINARIO</title><content type='html'>&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhKSfFnD0BGcrRkCU2UMiU6xXDdYM8gcR0g3R5LJH-sfH0_5r2DSnn4vV5Tb0A8osP30hvORNlBfJUCFv3EmGaFl8zPxIDER0_V0Z0ELZ-tefks8xOhvRrLMjpeyM6YT1Iuz_gtcN-Qx_i_/s1600/Dibujo1.JPG&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhKSfFnD0BGcrRkCU2UMiU6xXDdYM8gcR0g3R5LJH-sfH0_5r2DSnn4vV5Tb0A8osP30hvORNlBfJUCFv3EmGaFl8zPxIDER0_V0Z0ELZ-tefks8xOhvRrLMjpeyM6YT1Iuz_gtcN-Qx_i_/s1600/Dibujo1.JPG&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgQtx3JUUSrJ7OQz8V38eYz_bL2ozFlS1o62XKJl7Q5OlMijvsv9iPVAWpaIR0pUWyp1FnLllBYgfVKiXFsDmd8qYxZ_4hmyOBnXaCFyZ2yqMoFuat6hO3nqMeLA-fkZLlnSPqsBf4mhv6v/s1600/Dibujo2.JPG&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgQtx3JUUSrJ7OQz8V38eYz_bL2ozFlS1o62XKJl7Q5OlMijvsv9iPVAWpaIR0pUWyp1FnLllBYgfVKiXFsDmd8qYxZ_4hmyOBnXaCFyZ2yqMoFuat6hO3nqMeLA-fkZLlnSPqsBf4mhv6v/s1600/Dibujo2.JPG&quot; height=&quot;81&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;span style=&quot;color: red;&quot;&gt;En este ejercicio ingresaremos un número entero, para que cuando aceptemos, el programa lo convierta a sistema binario.&lt;/span&gt;&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;/div&gt;
&lt;br /&gt;
&lt;a name=&#39;more&#39;&gt;&lt;/a&gt;&lt;br /&gt;
&lt;i&gt;Como verán la codificación es muy simple. Crearemos un método llamado &lt;b&gt;busqueda()&lt;/b&gt;, que nos hará los cálculos necesarios de conversión y, luego lo llamaremos mediante nuestro boton Calcular (&lt;b&gt;btnCalcular()&lt;/b&gt;). Condicionaremos también el entero y diremos que sea menor a 256, caso contrario&amp;nbsp; nos mostrará un mensaje con el texto &lt;b&gt;&quot;INGRESE NUMERO MENOR A 256&quot;&lt;/b&gt;.&lt;/i&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh1N_z3OqV-AfP-s4u34PVRmr6MAyn5l679R7hpbu3JxWGjCsmcIQZnPy6RCan8T6LTuvF8vPm8pWfWBDLsUdb7v-SXKTs5QXjB91boci164gqQu46tzRPMLTuaE3FHZGIAtxx1Wnx-8RLt/s1600/llamarmetodo1.JPG&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh1N_z3OqV-AfP-s4u34PVRmr6MAyn5l679R7hpbu3JxWGjCsmcIQZnPy6RCan8T6LTuvF8vPm8pWfWBDLsUdb7v-SXKTs5QXjB91boci164gqQu46tzRPMLTuaE3FHZGIAtxx1Wnx-8RLt/s1600/llamarmetodo1.JPG&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjnBAVxXwnGqvFMqVfoDVuytuI3qWwGFJYNaB1__VcPtj2uiwUQ8yVtvh3lSNGzNo-ljHKfny5RN4C4pcudJ0cz6kESrEy9ksiwGcnuLrW36ynUuSls6xFVqrnfwFvzNueMIiNPTMFixgGp/s1600/voidBusqueda1.JPG&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjnBAVxXwnGqvFMqVfoDVuytuI3qWwGFJYNaB1__VcPtj2uiwUQ8yVtvh3lSNGzNo-ljHKfny5RN4C4pcudJ0cz6kESrEy9ksiwGcnuLrW36ynUuSls6xFVqrnfwFvzNueMIiNPTMFixgGp/s1600/voidBusqueda1.JPG&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgqAPEjQ2V2ZRXVQdcLTMLvKagRs8TB8XH9m75-8HKKLvuuPzo0mGxfWZQrDAMqcw6QHiHImp28g-sLLFCJ6gI_DIV0U36ldGRNMnaSzwBJBJk45Pwdu1vfW7J0439F6Rf9UGWUH35_hAUP/s1600/voidBusqueda2.JPG&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgqAPEjQ2V2ZRXVQdcLTMLvKagRs8TB8XH9m75-8HKKLvuuPzo0mGxfWZQrDAMqcw6QHiHImp28g-sLLFCJ6gI_DIV0U36ldGRNMnaSzwBJBJk45Pwdu1vfW7J0439F6Rf9UGWUH35_hAUP/s1600/voidBusqueda2.JPG&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjngxxA8TNBiVT3umAHsTapeZHAQLv5f6K1y6UEdkICs4ffFu07YsKJI-l1vB6WHFA-Pa57gUPx7OYCM0LjoF6Ev-s-sKOdP5kfRaZ7Eo_dnccr4r2-pgvVInc5YMT-1ahs8Ez0-LZtcNBg/s1600/voidBusqueda3.JPG&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjngxxA8TNBiVT3umAHsTapeZHAQLv5f6K1y6UEdkICs4ffFu07YsKJI-l1vB6WHFA-Pa57gUPx7OYCM0LjoF6Ev-s-sKOdP5kfRaZ7Eo_dnccr4r2-pgvVInc5YMT-1ahs8Ez0-LZtcNBg/s1600/voidBusqueda3.JPG&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiANFOhEaI2ygruPlr77qpXuMYluXDmJpR7tRFy9fucEJTrzVIiNmA2M_dQI9KpzTkqj_oQGd1_dMrbagcaPpZsGlMc_Lvts7eNC5RDpG23vWWbp2LDH524eeKSytx3FL6aXPxCkQfZ1rmB/s1600/labbbel.JPG&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiANFOhEaI2ygruPlr77qpXuMYluXDmJpR7tRFy9fucEJTrzVIiNmA2M_dQI9KpzTkqj_oQGd1_dMrbagcaPpZsGlMc_Lvts7eNC5RDpG23vWWbp2LDH524eeKSytx3FL6aXPxCkQfZ1rmB/s1600/labbbel.JPG&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3554248320209601234/posts/default/6126278873306158520'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3554248320209601234/posts/default/6126278873306158520'/><link rel='alternate' type='text/html' href='http://netbeanspractico.blogspot.com/2013/04/numero-entero-binario.html' title='Número Entero a BINARIO'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhKSfFnD0BGcrRkCU2UMiU6xXDdYM8gcR0g3R5LJH-sfH0_5r2DSnn4vV5Tb0A8osP30hvORNlBfJUCFv3EmGaFl8zPxIDER0_V0Z0ELZ-tefks8xOhvRrLMjpeyM6YT1Iuz_gtcN-Qx_i_/s72-c/Dibujo1.JPG" height="72" width="72"/></entry><entry><id>tag:blogger.com,1999:blog-3554248320209601234.post-170024635573184033</id><published>2013-04-12T20:12:00.000-07:00</published><updated>2013-04-28T14:14:29.211-07:00</updated><title type='text'>Datos de Trabajador a un JTable (vectores y clases)</title><content type='html'>&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgjCOGkf_j_35sqlcmESJh4RlTbE6ScnlwLLd7eg7CY4LMMhAKjNt93Xdo7CXHe1rgtKVS7BDt-Jt2EHORbvMOrxaKBcgyU4DUU79qfLaWA6uuryATV2VKxUI-qmR5DPPYhBBfm3Gf5n5Lm/s1600/Dibujo.JPG&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgjCOGkf_j_35sqlcmESJh4RlTbE6ScnlwLLd7eg7CY4LMMhAKjNt93Xdo7CXHe1rgtKVS7BDt-Jt2EHORbvMOrxaKBcgyU4DUU79qfLaWA6uuryATV2VKxUI-qmR5DPPYhBBfm3Gf5n5Lm/s1600/Dibujo.JPG&quot; height=&quot;215&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;span style=&quot;color: red;&quot;&gt;Este ejercicio nos enseña cómo ingresar datos a un JTable. Ingresaremos los datos de un trabajador (DNI, Nombre, Apellidos y Sueldo). Si su sueldo es mayor a 1000, su bonificación será del 10%, caso contrario su bonificación será del 20%. Los datos se agregarán y se presentarán como registros en una Tabla (JTable). Los datos ingresados en minúsculas, se presentarán en mayúsculas.&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;a name=&#39;more&#39;&gt;&lt;/a&gt;Crearemos &lt;u&gt;&lt;b&gt;3 clases&lt;/b&gt;&lt;/u&gt; (&lt;b&gt;Persona&lt;/b&gt;, &lt;b&gt;Trabajador&lt;/b&gt; y&lt;b&gt; Traba&lt;/b&gt;).Vamos en orden. Aquí la &lt;b&gt;&lt;u&gt;clase Persona&lt;/u&gt;&lt;/b&gt;:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhu_yhTqJvjsynQmCCQmSNo7lr1Lhyj_jrA0gqGbJiJNmKvLvq8mWBKg1athgSNOSeWrCv-ZpT7vUuwSq7tOsv_c35-GSPzkDVilXT3qm4Xb8fbUs46JErercdkPSVP17gP9t8aRyp0fDYw/s1600/clasePersona1.JPG&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhu_yhTqJvjsynQmCCQmSNo7lr1Lhyj_jrA0gqGbJiJNmKvLvq8mWBKg1athgSNOSeWrCv-ZpT7vUuwSq7tOsv_c35-GSPzkDVilXT3qm4Xb8fbUs46JErercdkPSVP17gP9t8aRyp0fDYw/s1600/clasePersona1.JPG&quot; /&gt;&lt;span id=&quot;goog_1109572609&quot;&gt;&lt;/span&gt;&lt;span id=&quot;goog_1109572610&quot;&gt;&lt;/span&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhp8k2j-D_c-Kjz1fIqr23XZPqoUCwYjxveaV4M4CWg4ZBsD6DDGfj9TZcbDAik2PlO8X4ZZCz-pKhcINxDhS2_vaA6vMtZegD_67zddzHCcQUy9Hm44hkbZ6aBA56s7H3iat8MEeRGHtwV/s1600/clasePersona2.JPG&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhp8k2j-D_c-Kjz1fIqr23XZPqoUCwYjxveaV4M4CWg4ZBsD6DDGfj9TZcbDAik2PlO8X4ZZCz-pKhcINxDhS2_vaA6vMtZegD_67zddzHCcQUy9Hm44hkbZ6aBA56s7H3iat8MEeRGHtwV/s1600/clasePersona2.JPG&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;/div&gt;
&lt;i&gt;En nuestra clase &lt;b&gt;Persona&lt;/b&gt;, declaramos las variables (dni, nombre, apellido) como &lt;span style=&quot;color: blue;&quot;&gt;private&lt;/span&gt;. Luego para cada variable haremos su &lt;b&gt;Get&lt;/b&gt; (tomar el valor) y &lt;b&gt;Set &lt;/b&gt;(mostrar el valor)&lt;/i&gt;&lt;b&gt;&lt;i&gt;. &lt;/i&gt;&lt;/b&gt;&lt;i&gt;Una vez hecho esto,&lt;/i&gt;&lt;b&gt;&lt;i&gt; &lt;/i&gt;&lt;/b&gt;&lt;i&gt;usaremos &lt;b&gt;toUpperCase&lt;/b&gt;, que nos ayudará a devolver el texto ingresado en &lt;u&gt;&lt;b&gt;minúsculas para convertirlo en mayúsculas&lt;/b&gt;&lt;/u&gt;, concatenando (+&quot; &quot;+) los valores ingresados en las cajas de texto de &lt;b&gt;Nombres&lt;/b&gt; y &lt;b&gt;Apellidos&lt;/b&gt; respectivamente, para presentarlos como uno solo en el JTable.&lt;/i&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;i&gt;Ahora nuestra &lt;b&gt;clase Trabajador&lt;/b&gt;:&amp;nbsp;&lt;/i&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhbd3yjpgGZJpyquHqQHcT4F7bGUqCHfQLYbCPb5l_s3QTsgefCebBSqbyXGwnQ8y-2cXhrQ7hsJMTTNBs-e4vfVEm4_HKGdabQdbmlSuU7j_Wq88TMzcBqszAMERir0zc3gSo-fIgJQZYj/s1600/clase.JPG&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhbd3yjpgGZJpyquHqQHcT4F7bGUqCHfQLYbCPb5l_s3QTsgefCebBSqbyXGwnQ8y-2cXhrQ7hsJMTTNBs-e4vfVEm4_HKGdabQdbmlSuU7j_Wq88TMzcBqszAMERir0zc3gSo-fIgJQZYj/s1600/clase.JPG&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;i&gt;A nuestra &lt;b&gt;clase Trabajador&lt;/b&gt; &lt;span style=&quot;color: red;&quot;&gt;&lt;u&gt;la extenderemos hacia la &lt;b&gt;clase Persona&lt;/b&gt;&lt;/u&gt;&lt;/span&gt; (&lt;span style=&quot;color: blue;&quot;&gt;extends &lt;/span&gt;Persona), puesto que &lt;b&gt;también haremos uso de los objetos de esa clase&lt;/b&gt;. También leeremos el sueldo y la bonificación, haremos los cálculos correspondientes según el tenor del ejercicio y mostraremos sus respectivos valores.&lt;/i&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;i&gt;Ahora la &lt;b&gt;clase Traba&lt;/b&gt;:&lt;/i&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi0LBkPR6L3zyvUCfCTmNGmXO35M15xPTyMGI9WG8TleMelV0Oeq6fg066fc4bsXTWrkFw93CvPNyoFgtTEx27CR21mNUUQRa7R2U_SJQjpWB35vRe9cPDLt7ufs2LxQi8R0k3BOEgD7sBv/s1600/traba.JPG&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi0LBkPR6L3zyvUCfCTmNGmXO35M15xPTyMGI9WG8TleMelV0Oeq6fg066fc4bsXTWrkFw93CvPNyoFgtTEx27CR21mNUUQRa7R2U_SJQjpWB35vRe9cPDLt7ufs2LxQi8R0k3BOEgD7sBv/s1600/traba.JPG&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;i&gt;Creamos un vector llamado &lt;b&gt;&lt;span style=&quot;color: #6aa84f;&quot;&gt;Trab&lt;/span&gt;&lt;/b&gt;, el cual será el &quot;repositorio&quot; de&amp;nbsp; todos los elementos ingresados para agregarlos al JTable. &lt;/i&gt;&lt;i&gt;&lt;i&gt;&amp;nbsp;&lt;/i&gt;&lt;/i&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;i&gt;&lt;i&gt;Luego en nuestro form importaremos nuestras clases y las librerias necesarias. Después&lt;/i&gt; crearemos un objeto llamado &lt;b&gt;&lt;span style=&quot;color: #6aa84f;&quot;&gt;oTraba&lt;/span&gt;&lt;/b&gt;. Crearemos también el método &lt;b&gt;verDni()&lt;/b&gt;, que nos devolverá un mensaje de error, si es que no se ha ingresado correctamente el DNI.&lt;/i&gt;&lt;br /&gt;
&lt;i&gt;&lt;br /&gt;&lt;/i&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj_9dr2MjNnwyWfmcbNXXo_HyCr18J-IVzgh4iFhAm3e-IqFrGLFI1x-U4sf6gIcD1Ps1sFO0XmOlRDvGhsyIYmk3o64CZ3BIKHPT5r9tFpgCu4kyjNSSpTbTvRs7vr29kp4zly8A197004/s1600/fomr1.JPG&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj_9dr2MjNnwyWfmcbNXXo_HyCr18J-IVzgh4iFhAm3e-IqFrGLFI1x-U4sf6gIcD1Ps1sFO0XmOlRDvGhsyIYmk3o64CZ3BIKHPT5r9tFpgCu4kyjNSSpTbTvRs7vr29kp4zly8A197004/s1600/fomr1.JPG&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;i&gt;En nuestro método &lt;b&gt;verSueldo()&lt;/b&gt; diremos que nos muestre un mensaje si la caja de texto Sueldo (&lt;b&gt;&lt;span style=&quot;color: #6aa84f;&quot;&gt;txtSuel&lt;/span&gt;&lt;/b&gt;) está vacía. Programaremos también un método &lt;b&gt;limpiar()&lt;/b&gt;, que borrará el contenido de las cajas de texto; otro método &lt;b&gt;mostrarTrabajadores()&lt;/b&gt;, que nos mostrará los trabajadores en el JTable y; otro método más &lt;b&gt;agregaTrabajadores()&lt;/b&gt;, que servirá para agregar los datos ingresados desde las cajas de texto hacia el JTable, con un aviso que nos dirá que los datos han sido guardados.&lt;/i&gt;&lt;br /&gt;
&lt;i&gt;&lt;br /&gt;&lt;/i&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhaQ7T7dyofnyNZz0UriGHHYpecyVFd0ekOwOoELoostfmgWkPtlH3vYE23Q6FrSBWBQKjRJfmRTammsCyD2KEeY6Cvymld4nJLUTrFG9QboBAAJAd8GhyphenhyphenGausj5qHnVjqHuPaA2maEaFvE/s1600/void1.JPG&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhaQ7T7dyofnyNZz0UriGHHYpecyVFd0ekOwOoELoostfmgWkPtlH3vYE23Q6FrSBWBQKjRJfmRTammsCyD2KEeY6Cvymld4nJLUTrFG9QboBAAJAd8GhyphenhyphenGausj5qHnVjqHuPaA2maEaFvE/s1600/void1.JPG&quot; /&gt;&lt;/a&gt;&lt;i&gt; &lt;/i&gt;&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;i&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgVJdUDaMybYOxBdkHCbvDW-NZrfoyQvTmb9ZSZdfccDbgULgCkxpPkUzxoJoZKUEfQvHImnGIyVq9j3paf9kAxoAzaBnsmf_sBuIxxpOeo894UPFnzTZn3K98USXrjxkpO4uVXA7OOleum/s1600/void2.JPG&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgVJdUDaMybYOxBdkHCbvDW-NZrfoyQvTmb9ZSZdfccDbgULgCkxpPkUzxoJoZKUEfQvHImnGIyVq9j3paf9kAxoAzaBnsmf_sBuIxxpOeo894UPFnzTZn3K98USXrjxkpO4uVXA7OOleum/s1600/void2.JPG&quot; /&gt;&lt;/a&gt;&lt;/i&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;i&gt;Luego programaremos la caja de texto DNI (&lt;b&gt;&lt;span style=&quot;color: #6aa84f;&quot;&gt;txtDni&lt;/span&gt;&lt;/b&gt;) en su evento &lt;b&gt;KeyPressed&lt;/b&gt;, &lt;span style=&quot;color: red;&quot;&gt;&lt;u&gt;para que acepte sólo 8 dígitos&lt;/u&gt;&lt;/span&gt; y al botón Aceptar (&lt;b&gt;&lt;span style=&quot;color: #6aa84f;&quot;&gt;btnAceptar&lt;/span&gt;&lt;/b&gt;), para agregar y mostrar a los trabajadores a través del llamado a nuestros métodos (&lt;b&gt;agregaTrabajadores()&lt;/b&gt; y &lt;b&gt;mostrarTrabajadores()&lt;/b&gt;) anteriormente creados y; en caso se omita ingresar el sueldo y/o DNI llame a nuestro/s método/s &lt;b&gt;verSueldo() &lt;/b&gt;y&lt;b&gt;/&lt;/b&gt;o&lt;b&gt; verDni() &lt;/b&gt;respectivamente, que nos mostrará un/os mensaje/s para ingresar el/los dato/s.&amp;nbsp; &lt;/i&gt;&lt;br /&gt;
&lt;i&gt;&lt;br /&gt;&lt;/i&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh0n4lzATA1GgFrevVGFDdFcczQ9Qzl4MIGRlee3If7iTiAbjj0uspMo7cBNuigwm3c8-md-RZN7BD4HclUHW0oCGsdDtlxnmX1ZT-ANZbvrzr2W3nYQf-rJG8CBdou8d5HmrNohT0_uKNP/s1600/txtDNIKP.JPG&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh0n4lzATA1GgFrevVGFDdFcczQ9Qzl4MIGRlee3If7iTiAbjj0uspMo7cBNuigwm3c8-md-RZN7BD4HclUHW0oCGsdDtlxnmX1ZT-ANZbvrzr2W3nYQf-rJG8CBdou8d5HmrNohT0_uKNP/s1600/txtDNIKP.JPG&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhERKkQ02NwvRMi8XphHSQXKsm9DXkt6cymEWQuh8RhPLBZMFhRYsKdtXXjtZOla5ZnCQjiChebZ4dAIc6xnN0YTrfOibADgf5D5J5Op9R8u5l8U6yaecnt5Gfllpzxd6eZ9aWBTYNP132S/s1600/btnAceptar.JPG&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhERKkQ02NwvRMi8XphHSQXKsm9DXkt6cymEWQuh8RhPLBZMFhRYsKdtXXjtZOla5ZnCQjiChebZ4dAIc6xnN0YTrfOibADgf5D5J5Op9R8u5l8U6yaecnt5Gfllpzxd6eZ9aWBTYNP132S/s1600/btnAceptar.JPG&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;i&gt;&lt;br /&gt;&lt;/i&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgJwUw2gmf2KcPl7TiYandYqLGLG8CS7_i23O5ICHuLgcl5i-cmUYBKVJkgC8xwcDiZzIFIwIhOyzFOIiLYf9-QTmkIPVRKPkG0_FKM6yiggGtBT2ohRpqz_D7X3issbUHekwGJfNchXsoz/s1600/fin.JPG&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgJwUw2gmf2KcPl7TiYandYqLGLG8CS7_i23O5ICHuLgcl5i-cmUYBKVJkgC8xwcDiZzIFIwIhOyzFOIiLYf9-QTmkIPVRKPkG0_FKM6yiggGtBT2ohRpqz_D7X3issbUHekwGJfNchXsoz/s1600/fin.JPG&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi_-Hmmf6THu67YYOzS4gfTNiErN6eC2q2nt9xJBmZEl5NgBM3moHVa0DhUQvF9adnLkyz67wbbCr75_fxBvCHBIwhyphenhyphenUrWPurW8Ts-4ml8zZgJtZ_RQsrF-y8r_HoiwzJJsxWpu1E7t_eBC/s1600/kprssd.JPG&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi_-Hmmf6THu67YYOzS4gfTNiErN6eC2q2nt9xJBmZEl5NgBM3moHVa0DhUQvF9adnLkyz67wbbCr75_fxBvCHBIwhyphenhyphenUrWPurW8Ts-4ml8zZgJtZ_RQsrF-y8r_HoiwzJJsxWpu1E7t_eBC/s1600/kprssd.JPG&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;i&gt;Por último, programamos el botón Salir (&lt;b&gt;btnSalir&lt;/b&gt;) para que cierre el programa y nuevamente la caja de texto DNI (&lt;b&gt;txtDni&lt;/b&gt;) ahora en su evento &lt;b&gt;KeyTyped&lt;/b&gt;, para que acepte sólo dígitos, además de la caja de texto Sueldo (&lt;b&gt;txtSuel&lt;/b&gt;) en su evento &lt;b&gt;KeyTyped&lt;/b&gt; para el mismo fin.&lt;/i&gt;&lt;br /&gt;
&lt;i&gt;&lt;br /&gt;&lt;/i&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;/div&gt;
&lt;i&gt;&lt;br /&gt;&lt;/i&gt;
&lt;i&gt;&lt;br /&gt;&lt;/i&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3554248320209601234/posts/default/170024635573184033'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3554248320209601234/posts/default/170024635573184033'/><link rel='alternate' type='text/html' href='http://netbeanspractico.blogspot.com/2013/04/ingresar-datos-un-jtable.html' title='Datos de Trabajador a un JTable (vectores y clases)'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgjCOGkf_j_35sqlcmESJh4RlTbE6ScnlwLLd7eg7CY4LMMhAKjNt93Xdo7CXHe1rgtKVS7BDt-Jt2EHORbvMOrxaKBcgyU4DUU79qfLaWA6uuryATV2VKxUI-qmR5DPPYhBBfm3Gf5n5Lm/s72-c/Dibujo.JPG" height="72" width="72"/></entry><entry><id>tag:blogger.com,1999:blog-3554248320209601234.post-4554129328027219189</id><published>2013-04-12T15:31:00.000-07:00</published><updated>2013-04-28T14:15:42.301-07:00</updated><title type='text'>Datos Personales a un TextArea (clases)</title><content type='html'>&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi6pShchExoElezLHug-MgZsjM7r6NE9Vr4ymj3jZRXxyRpo8HUZXJY1g-BeXT15KStYFIW_VKmmiracJPmUMD9wOrzZwrrw7oYU7ZdUNERhZmJi2_uYjbGUR5lDREO00APYg7MC2bc0h05/s1600/Dibujo.JPG&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi6pShchExoElezLHug-MgZsjM7r6NE9Vr4ymj3jZRXxyRpo8HUZXJY1g-BeXT15KStYFIW_VKmmiracJPmUMD9wOrzZwrrw7oYU7ZdUNERhZmJi2_uYjbGUR5lDREO00APYg7MC2bc0h05/s1600/Dibujo.JPG&quot; height=&quot;248&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;span style=&quot;color: red;&quot;&gt;En este ejercicio aprenderemos a: Ingresar Datos a un TextArea, Convertir de Minúsculas a Mayúsculas, Ingresar sólo dígitos y exactos de un DNI, en caso contrario nos aparecerá un Mensaje pidiendo un &quot;DNI válido&quot; y no dejará ingresar los datos. Usaremos clases para desarrollar este ejercicio.&lt;/span&gt;&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;/div&gt;
&lt;a name=&#39;more&#39;&gt;&lt;/a&gt;&lt;i&gt;Crearemos nuestra clase &lt;b&gt;Persona&lt;/b&gt;, dentro de ella declaramos las variables como &lt;span style=&quot;color: blue;&quot;&gt;private&lt;/span&gt;. Luego por cada variable haremos su &lt;b&gt;Get&lt;/b&gt; (tomar el valor) y &lt;b&gt;Set &lt;/b&gt;(mostrar el valor)&lt;/i&gt;&lt;b&gt;&lt;i&gt;.&lt;/i&gt; &lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhu_yhTqJvjsynQmCCQmSNo7lr1Lhyj_jrA0gqGbJiJNmKvLvq8mWBKg1athgSNOSeWrCv-ZpT7vUuwSq7tOsv_c35-GSPzkDVilXT3qm4Xb8fbUs46JErercdkPSVP17gP9t8aRyp0fDYw/s1600/clasePersona1.JPG&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhu_yhTqJvjsynQmCCQmSNo7lr1Lhyj_jrA0gqGbJiJNmKvLvq8mWBKg1athgSNOSeWrCv-ZpT7vUuwSq7tOsv_c35-GSPzkDVilXT3qm4Xb8fbUs46JErercdkPSVP17gP9t8aRyp0fDYw/s1600/clasePersona1.JPG&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhp8k2j-D_c-Kjz1fIqr23XZPqoUCwYjxveaV4M4CWg4ZBsD6DDGfj9TZcbDAik2PlO8X4ZZCz-pKhcINxDhS2_vaA6vMtZegD_67zddzHCcQUy9Hm44hkbZ6aBA56s7H3iat8MEeRGHtwV/s1600/clasePersona2.JPG&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhp8k2j-D_c-Kjz1fIqr23XZPqoUCwYjxveaV4M4CWg4ZBsD6DDGfj9TZcbDAik2PlO8X4ZZCz-pKhcINxDhS2_vaA6vMtZegD_67zddzHCcQUy9Hm44hkbZ6aBA56s7H3iat8MEeRGHtwV/s1600/clasePersona2.JPG&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;i&gt;Luego usaremos &lt;b&gt;toUpperCase&lt;/b&gt;, que nos ayudará a devolver el texto ingresado en &lt;u&gt;&lt;b&gt;minúsculas para convertirlo en mayúsculas&lt;/b&gt;&lt;/u&gt;, concatenando (+&quot; &quot;+) los valores ingresados en las cajas de texto de &lt;b&gt;Nombres&lt;/b&gt; y &lt;b&gt;Apellidos&lt;/b&gt; respectivamente.&lt;/i&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhBr-W9HTJljZndt1zKK-bQ6pR_9aNQdwWfEqzZjZvs8p8TkuT3e4D0Fr42mJ3ESQLfWgrgb4uysb53CbZhTN0LTGBgo3cS0mu11cwfb_UDeiUn3hBNbrBnLhn0wz3JXIN66sevVACHzpNG/s1600/form1.JPG&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhBr-W9HTJljZndt1zKK-bQ6pR_9aNQdwWfEqzZjZvs8p8TkuT3e4D0Fr42mJ3ESQLfWgrgb4uysb53CbZhTN0LTGBgo3cS0mu11cwfb_UDeiUn3hBNbrBnLhn0wz3JXIN66sevVACHzpNG/s1600/form1.JPG&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;/div&gt;
&lt;i&gt;En nuestro método &lt;b&gt;verDni()&lt;/b&gt;, trabajaremos con una condicional &lt;b&gt;&lt;span style=&quot;color: blue;&quot;&gt;if&lt;/span&gt;&lt;/b&gt;, a la cual diremos que si el tamaño ingresado en&lt;span style=&quot;color: #6aa84f;&quot;&gt; &lt;b&gt;txtDni&lt;/b&gt;&lt;/span&gt; es menor o igual a 7 (dado que un DNI tiene 8 dígitos) nos devuelva un aviso con un mensaje que diga &lt;b&gt;&lt;span style=&quot;color: orange;&quot;&gt;&quot;Ingrese DNI Válido&quot;&lt;/span&gt;.&lt;/b&gt;&lt;/i&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgZ082WNkpP0Wo-pIXRtucwr_bZbC6wxvchVpOzitsV8Y7qCD9H8dLc9AaJC-Ox6mEYpemWlDcEykQHbxkcgR1wOcnf-8qRvZWXCmkk3ADsc70h4aZ5aT10bFgC_NqzjAhWWz8Z7ELjguRq/s1600/aceptar.JPG&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgZ082WNkpP0Wo-pIXRtucwr_bZbC6wxvchVpOzitsV8Y7qCD9H8dLc9AaJC-Ox6mEYpemWlDcEykQHbxkcgR1wOcnf-8qRvZWXCmkk3ADsc70h4aZ5aT10bFgC_NqzjAhWWz8Z7ELjguRq/s1600/aceptar.JPG&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;i&gt;En nuestro método &lt;b&gt;aceptar()&lt;/b&gt;, crearemos los datos para el objeto a partir de los valores ingresados dentro de nuestras cajas de texto, que luego se mostrarán en el JTextArea (&lt;b&gt;&lt;span style=&quot;color: #6aa84f;&quot;&gt;tblLista&lt;/span&gt;&lt;/b&gt;). También usaremos &lt;b&gt;&lt;span style=&quot;color: orange;&quot;&gt;&quot;\n&quot;&lt;/span&gt;&lt;/b&gt; para que nos dé un salto y los textos no salgan como uno solo cuando ingresemos un segundo dato.&lt;/i&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjOaOVlkhu68ciegqo92gbdSvmz3ZKN-tYz3TSbzY2zLUpMQp3VRF7Zw_0VWtMzB6LQscm6TjEXXJJuG2VoQBBg-qkuKCVxDRFwhD2L_ZTEkPoA-2vWjw50YvhlUjfxZT3rRNFi8E6_GM7p/s1600/btnSalirAceptar.JPG&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjOaOVlkhu68ciegqo92gbdSvmz3ZKN-tYz3TSbzY2zLUpMQp3VRF7Zw_0VWtMzB6LQscm6TjEXXJJuG2VoQBBg-qkuKCVxDRFwhD2L_ZTEkPoA-2vWjw50YvhlUjfxZT3rRNFi8E6_GM7p/s1600/btnSalirAceptar.JPG&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;i&gt;Programaremos el &lt;b&gt;botón Salir &lt;/b&gt;para que cuando demos clic se cierre el programa. En nuestro &lt;b&gt;botón Aceptar&lt;/b&gt; usaremos un&lt;b&gt;&lt;span style=&quot;color: blue;&quot;&gt; if&lt;/span&gt;&lt;/b&gt; y&lt;span style=&quot;color: blue;&quot;&gt;&lt;b&gt; else&lt;/b&gt;&lt;/span&gt;, para condicionar que &lt;u&gt;&lt;b&gt;si los dígitos ingresados son 8&lt;/b&gt;&lt;/u&gt;, se ejecuten nuestros métodos &lt;b&gt;aceptar()&lt;/b&gt; y &lt;b&gt;limpiar()&lt;/b&gt;, en caso contrario se ejecute nuestro método &lt;b&gt;verDni()&lt;/b&gt;, el cual nos avisa mediante un mensaje que ingresemos un DNI válido.&lt;/i&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg9bv0bqQdLPKg6eikWqB0JswviBpLqi1BpiI5Eu4AAP5Y8QSiaSYBOFddhzVyizM67oGGpPbusYURmdPQsCMdWqQDEPeX_pWx1Ww42KuyPY0m_SLXENW_RXYE1ll0rgd2k0EfNKyDdleDT/s1600/ktyped.JPG&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg9bv0bqQdLPKg6eikWqB0JswviBpLqi1BpiI5Eu4AAP5Y8QSiaSYBOFddhzVyizM67oGGpPbusYURmdPQsCMdWqQDEPeX_pWx1Ww42KuyPY0m_SLXENW_RXYE1ll0rgd2k0EfNKyDdleDT/s1600/ktyped.JPG&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;i&gt;Por último, programaremos también nuestro &lt;span style=&quot;color: #6aa84f;&quot;&gt;&lt;b&gt;txtDni&lt;/b&gt;&lt;/span&gt; en sus eventos &lt;/i&gt;&lt;i&gt;&lt;i&gt;&lt;b&gt;KeyTyped &lt;/b&gt;y&lt;b&gt; Key Pressed &lt;/b&gt;respectivamente, para que&lt;/i&gt; al momento de tipear no acepte más que sólo dígitos y luego una vez completados (los 8 dígitos), el cursor se ubique en &lt;b&gt;&lt;span style=&quot;color: #6aa84f;&quot;&gt;txtNom&lt;/span&gt;&lt;/b&gt; (Nombre).&lt;/i&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhu_yhTqJvjsynQmCCQmSNo7lr1Lhyj_jrA0gqGbJiJNmKvLvq8mWBKg1athgSNOSeWrCv-ZpT7vUuwSq7tOsv_c35-GSPzkDVilXT3qm4Xb8fbUs46JErercdkPSVP17gP9t8aRyp0fDYw/s1600/clasePersona1.JPG&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;br /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhp8k2j-D_c-Kjz1fIqr23XZPqoUCwYjxveaV4M4CWg4ZBsD6DDGfj9TZcbDAik2PlO8X4ZZCz-pKhcINxDhS2_vaA6vMtZegD_67zddzHCcQUy9Hm44hkbZ6aBA56s7H3iat8MEeRGHtwV/s1600/clasePersona2.JPG&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;br /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;/div&gt;
</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3554248320209601234/posts/default/4554129328027219189'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3554248320209601234/posts/default/4554129328027219189'/><link rel='alternate' type='text/html' href='http://netbeanspractico.blogspot.com/2013/04/ingresar-datos-un-textarea-usando-clases.html' title='Datos Personales a un TextArea (clases)'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi6pShchExoElezLHug-MgZsjM7r6NE9Vr4ymj3jZRXxyRpo8HUZXJY1g-BeXT15KStYFIW_VKmmiracJPmUMD9wOrzZwrrw7oYU7ZdUNERhZmJi2_uYjbGUR5lDREO00APYg7MC2bc0h05/s72-c/Dibujo.JPG" height="72" width="72"/></entry><entry><id>tag:blogger.com,1999:blog-3554248320209601234.post-4616454212360107768</id><published>2013-04-12T00:31:00.000-07:00</published><updated>2013-04-28T14:17:03.734-07:00</updated><title type='text'>Registro de Socios (usando vectores)</title><content type='html'>&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiGN8L2H3VD-zpwoHNxV63mraNMOuq3KcL0puJFrtHP5xfw_uG5reLzIYV4S5cojci7e5u3rPZe9nRM_r6Ln11P8LP63ThDIk6H0WyKikUXTGBTmDhxLvLlOFx3WnYnZXkr1CfmeyxIWWu8/s1600/Dibujo1.JPG&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiGN8L2H3VD-zpwoHNxV63mraNMOuq3KcL0puJFrtHP5xfw_uG5reLzIYV4S5cojci7e5u3rPZe9nRM_r6Ln11P8LP63ThDIk6H0WyKikUXTGBTmDhxLvLlOFx3WnYnZXkr1CfmeyxIWWu8/s1600/Dibujo1.JPG&quot; height=&quot;239&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgMuS-erv31BLiE0v3f5cCmk5VMTxtDJho3pW-yNRyqF86HPxRzVrkXI2tuRKE29KAItAl69VTA53Rrlyq7GEw8IUUbEpZqUXOsZmy6cxiwlRp57_tgUg_tKJPQSAJACgRF6ZLHRsxr3br6/s1600/Dibujo2.JPG&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgMuS-erv31BLiE0v3f5cCmk5VMTxtDJho3pW-yNRyqF86HPxRzVrkXI2tuRKE29KAItAl69VTA53Rrlyq7GEw8IUUbEpZqUXOsZmy6cxiwlRp57_tgUg_tKJPQSAJACgRF6ZLHRsxr3br6/s1600/Dibujo2.JPG&quot; height=&quot;237&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;span style=&quot;color: red;&quot;&gt;Un buen ejemplo del uso de vectores. En este ejercicio ingresaremos datos de varias personas; como el Nombre, Apellido, Sexo y el Tipo de Socio (Activo, Cesante o Particular), luego realizaremos las consultas de socios por sexo (Masculino o Femenino o Todos los socios ingresados). También podremos filtrarlos por Activos, Cesantes o Particulares.&lt;/span&gt;&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;/div&gt;
&lt;br /&gt;
&lt;a name=&#39;more&#39;&gt;&lt;/a&gt;&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEghSNooXXH2xyHYPh7DWdSSv0P8qqwlpYBj0SX76WebYVPGH7LWyd-fk8SqhmAypN9UCZ1o2tTiUB0Rce0UB9BmTjcs668Qe8XcF4iB6DyXwvYcsi_JRd4Q74rDMZN3GxfIc5OmZ7CoNVWg/s1600/vectoryagregasocio.JPG&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEghSNooXXH2xyHYPh7DWdSSv0P8qqwlpYBj0SX76WebYVPGH7LWyd-fk8SqhmAypN9UCZ1o2tTiUB0Rce0UB9BmTjcs668Qe8XcF4iB6DyXwvYcsi_JRd4Q74rDMZN3GxfIc5OmZ7CoNVWg/s1600/vectoryagregasocio.JPG&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjxyMq_MkDwhSvWSoxoIg3KXVso7mzmWXfYsukQsngHtPhsQ2FQDyDq4HLeIvmRL7QAO3MwL6TlOo_YTFzpre3eC0WRAYhCrrBIEKAOKMR9cfIIPU6XfvAlx_Ho5vUl9YxyssgQ_Dkw9Dl2/s1600/voidnuevoycontroles.JPG&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjxyMq_MkDwhSvWSoxoIg3KXVso7mzmWXfYsukQsngHtPhsQ2FQDyDq4HLeIvmRL7QAO3MwL6TlOo_YTFzpre3eC0WRAYhCrrBIEKAOKMR9cfIIPU6XfvAlx_Ho5vUl9YxyssgQ_Dkw9Dl2/s1600/voidnuevoycontroles.JPG&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;i&gt;&lt;u&gt;&lt;b&gt;Mucho Ojo&lt;/b&gt;&lt;/u&gt;: El método a continuación va a trabajar con los vectores y va a tener que llegar al JTable para que nosotros podamos visualizarlo. Pero el JTable necesita un formato y la data necesita un modelo, para eso llamamos a la clase &lt;u&gt;DefaultTableModel&lt;/u&gt;. El modelo lo vamos a llenar fila por fila y necesitaremos pasar todas las filas al modelo, para eso hacemos un ciclo de FOR desde 0 hasta que &quot;i&quot; sea menor al tamaño (size) que es un método que devuelve el tamaño o la cantidad de filas de un vector.&lt;/i&gt; Esto quiere decir que si tuvieramos 3 registros (0,1,2) llenos o terminados, entonces pasan al TABLE.&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhrvMB4JhLWIX1c-iwkKPHEPA8Wgljt_n8G1sYGwQi-pHcXTBElkvcqcVfGt0AHkrUlQLqI_uyAZGJNiZFHfwDOTmWIp-PCpwbhRWd1X4UPeDbioP7gvrhf5tBIJSg1qiEOIw7X2McOSq9F/s1600/listasocio.JPG&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhrvMB4JhLWIX1c-iwkKPHEPA8Wgljt_n8G1sYGwQi-pHcXTBElkvcqcVfGt0AHkrUlQLqI_uyAZGJNiZFHfwDOTmWIp-PCpwbhRWd1X4UPeDbioP7gvrhf5tBIJSg1qiEOIw7X2McOSq9F/s1600/listasocio.JPG&quot; /&gt;&amp;nbsp;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;i&gt;Creamos un método llamado &lt;b&gt;masculino()&lt;/b&gt;, que nos filtrará por sexo Masculino.&lt;/i&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgpHCfpt_v7pLD0cW8zthwogmWpQYZLezvGInuEkpzqDZY4DbTxABhTj9DgzYU_ysVcCZO54ISX0Jq27qz8s-x6SmJh_YWy-7IdLfTzerRVGJiwMkvj6F3c5VrVmJ_xp06HTpUrj5Kaikyy/s1600/masculino.JPG&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgpHCfpt_v7pLD0cW8zthwogmWpQYZLezvGInuEkpzqDZY4DbTxABhTj9DgzYU_ysVcCZO54ISX0Jq27qz8s-x6SmJh_YWy-7IdLfTzerRVGJiwMkvj6F3c5VrVmJ_xp06HTpUrj5Kaikyy/s1600/masculino.JPG&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;i&gt;Al usar &lt;b&gt;Object data y los corchetes&lt;/b&gt; diremos que no va a tener un tamaño especifico y &lt;b&gt;elementAt &lt;/b&gt;nos sirve para extraer el valor de un elemento del arreglo o vector. Para los métodos &lt;b&gt;femenino(), activos(), cesantes() y particulares()&lt;/b&gt; la codificación es casi la misma que &lt;b&gt;masculino()&lt;/b&gt;.&lt;/i&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiOb5DdBaHPSuCbmTvESWd_TyFq9p8uZbfbzN4ZJafl1w7_-fApkbM1CvsRszYCSObbtfErKBwykfHU7BNJmNiNMTSPjuNwg1qmyYWHOuBFavAWUb_18lciUqnjPNhtUf05FFG8SjMMP-sR/s1600/femenino.JPG&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiOb5DdBaHPSuCbmTvESWd_TyFq9p8uZbfbzN4ZJafl1w7_-fApkbM1CvsRszYCSObbtfErKBwykfHU7BNJmNiNMTSPjuNwg1qmyYWHOuBFavAWUb_18lciUqnjPNhtUf05FFG8SjMMP-sR/s1600/femenino.JPG&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiN6v7abysMwqnUonNIyzoQc8JMkefrRx5kocFlAPK6DPh56bUlKly6sYQ-A0W5H3A6Ib52kGiGd_apZEB1r3U1aEcuC_PeOVOCq5xgdwE6xes60yfgOIm9JIHSuKxOb1Yorl7A9qjU8ynV/s1600/activos.JPG&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiN6v7abysMwqnUonNIyzoQc8JMkefrRx5kocFlAPK6DPh56bUlKly6sYQ-A0W5H3A6Ib52kGiGd_apZEB1r3U1aEcuC_PeOVOCq5xgdwE6xes60yfgOIm9JIHSuKxOb1Yorl7A9qjU8ynV/s1600/activos.JPG&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgzXUnPfpZ2EO36HX-AR2wUFbDZ-mAI7BLhLSffK0x4_TBkdOwZgpS4NGoEpaOu5xc8Dh-kE4gw6NiPsD8HRkvqZHfPOKPbls5Ju7F7zDxiCi99mH5tkZ358Ib6GyDk3E6YN8MkSFVffp8_/s1600/cesantes.JPG&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgzXUnPfpZ2EO36HX-AR2wUFbDZ-mAI7BLhLSffK0x4_TBkdOwZgpS4NGoEpaOu5xc8Dh-kE4gw6NiPsD8HRkvqZHfPOKPbls5Ju7F7zDxiCi99mH5tkZ358Ib6GyDk3E6YN8MkSFVffp8_/s1600/cesantes.JPG&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhQlJOiFdRsUmA6XvqpuOz7sEb5raBRwjSuYxOE8tRkfu2Yq6QLShvv8PwbSUofsnRl88SZzpdmcucwIw-X5C3huDVLvQ5bwzaq1QVWISqx94KwuAA0hc9ybDCFOPf9R4808xcpSKKkk2Xi/s1600/particulares.JPG&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhQlJOiFdRsUmA6XvqpuOz7sEb5raBRwjSuYxOE8tRkfu2Yq6QLShvv8PwbSUofsnRl88SZzpdmcucwIw-X5C3huDVLvQ5bwzaq1QVWISqx94KwuAA0hc9ybDCFOPf9R4808xcpSKKkk2Xi/s1600/particulares.JPG&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;i&gt;Ahora programamos el botón &lt;b&gt;Nuevo&lt;/b&gt; y le decimos que mientras no se ingrese el primer dato aparezca el texto &lt;b&gt;&quot;Cancelar&quot;&lt;/b&gt; en el botón, pero una vez agregado el primer dato aparezca &lt;b&gt;&quot;Nuevo&quot;&lt;/b&gt;. Habilitamos el botón &lt;b&gt;Guardar&lt;/b&gt; (&lt;span style=&quot;color: #6aa84f;&quot;&gt;btnGuardar&lt;/span&gt;) y luego hacemos que el cursor se sitúe en la caja de texto &lt;b&gt;Nombre&lt;/b&gt; (&lt;span style=&quot;color: #6aa84f;&quot;&gt;txtNombre&lt;/span&gt;.requestFocus).&lt;/i&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhPq547vjxsCCrNpxPeY9qJwC4ha2CSFyhpa0HzaD20nMXIP1TR1z4VXW0Ec6yBATwT5J9-1rBnFcSE9zuU-hkh8MKC2kFjt-X2bK67CQitXHpfHLF13WPmStQOm8OP5AEKuOAb_6zmwlEf/s1600/btnnuevo.JPG&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhPq547vjxsCCrNpxPeY9qJwC4ha2CSFyhpa0HzaD20nMXIP1TR1z4VXW0Ec6yBATwT5J9-1rBnFcSE9zuU-hkh8MKC2kFjt-X2bK67CQitXHpfHLF13WPmStQOm8OP5AEKuOAb_6zmwlEf/s1600/btnnuevo.JPG&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;i&gt;Luego programamos el botón Guardar para que cuando completemos un registro y lo guardemos nos salga un mensaje de &lt;b&gt;&lt;u&gt;&quot;Socio Registrado&quot;&lt;/u&gt;&lt;/b&gt;. Ponemos además a &lt;span style=&quot;color: blue;&quot;&gt;false&lt;/span&gt; el método activarcontroles y &lt;span style=&quot;color: #6aa84f;&quot;&gt;btnGuardar&lt;/span&gt;. En nuestro &lt;span style=&quot;color: #6aa84f;&quot;&gt;btnNuevo&lt;/span&gt; haremos mostrar como texto &lt;b&gt;&quot;Nuevo&quot;&lt;/b&gt;, dado que ya ingresamos un registro.&lt;/i&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgAOFj8ekXIpVU1qwGnwWBSWayiabwRaMQDAl5WbpxNJL0uV4AsLKnDwaYHweinbCIhbVS9T6_tnV5RtnyUdaShJQT_75BXHHPD9W9rm3rhlxc-XxL0_4y8cvyp39UBoUVElkBj5RkZ7dwL/s1600/btnGuardar.JPG&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgAOFj8ekXIpVU1qwGnwWBSWayiabwRaMQDAl5WbpxNJL0uV4AsLKnDwaYHweinbCIhbVS9T6_tnV5RtnyUdaShJQT_75BXHHPD9W9rm3rhlxc-XxL0_4y8cvyp39UBoUVElkBj5RkZ7dwL/s1600/btnGuardar.JPG&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;i&gt;En el paso siguiente, &quot;llamaremos&quot; a nuestros métodos &lt;b&gt;masculino()&lt;/b&gt;, &lt;b&gt;femenino()&lt;/b&gt; y &lt;b&gt;listasocio()&lt;/b&gt; dentro de su correspondiente botón.&lt;/i&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiIOgV6F4SsrrGFIIT7TNbLpUHYokDrQzZUe-fmMKxK7jsa058ap6UrTS5KI1HMs1WR0aMTFrr2i5IFZPvGcwQrgLocgnlV9qzDuuOmsje8pBgWU6o_0P7o1GB_wis0Rxd5Vu6jU5G6Z39N/s1600/llamado.JPG&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiIOgV6F4SsrrGFIIT7TNbLpUHYokDrQzZUe-fmMKxK7jsa058ap6UrTS5KI1HMs1WR0aMTFrr2i5IFZPvGcwQrgLocgnlV9qzDuuOmsje8pBgWU6o_0P7o1GB_wis0Rxd5Vu6jU5G6Z39N/s1600/llamado.JPG&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;i&gt;Por último programaremos el combo (&lt;span style=&quot;color: #6aa84f;&quot;&gt;cboTipo1&lt;/span&gt;) para que en nuestra &lt;b&gt;pestaña Consulta&lt;/b&gt; la &lt;b&gt;consulta por Tipo de Socio&lt;/b&gt; (Activos, Cesantes o Particulares) nos dé el filtro deseado. Llamaremos por cada ítem a nuestros métodos (&lt;b&gt;activos(), cesantes() y particulares()&lt;/b&gt;). &lt;/i&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhjLDdVoVlTbNW301I_mAJJUXJeYATVBYh8yreINdXHaClPXszfuZF95PpKGSC0vMnH96nzQaH6_o-A4NGpfaZSPklqNmhSgUV5tZnD9yzl9OtFl3k36jSoLkyFOwUB2tnyrTHR6T9c1Os3/s1600/cboTipo1.JPG&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhjLDdVoVlTbNW301I_mAJJUXJeYATVBYh8yreINdXHaClPXszfuZF95PpKGSC0vMnH96nzQaH6_o-A4NGpfaZSPklqNmhSgUV5tZnD9yzl9OtFl3k36jSoLkyFOwUB2tnyrTHR6T9c1Os3/s1600/cboTipo1.JPG&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;br /&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3554248320209601234/posts/default/4616454212360107768'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3554248320209601234/posts/default/4616454212360107768'/><link rel='alternate' type='text/html' href='http://netbeanspractico.blogspot.com/2013/04/registro-de-socios-usando-vectores.html' title='Registro de Socios (usando vectores)'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiGN8L2H3VD-zpwoHNxV63mraNMOuq3KcL0puJFrtHP5xfw_uG5reLzIYV4S5cojci7e5u3rPZe9nRM_r6Ln11P8LP63ThDIk6H0WyKikUXTGBTmDhxLvLlOFx3WnYnZXkr1CfmeyxIWWu8/s72-c/Dibujo1.JPG" height="72" width="72"/></entry></feed>