<?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: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-4083012570879898065</id><updated>2011-07-28T22:22:41.319-07:00</updated><title type='text'>José Romero (ING. MECATRÓNICA 3"B")</title><subtitle type='html'></subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://joseromero495.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4083012570879898065/posts/default?max-results=100'/><link rel='alternate' type='text/html' href='http://joseromero495.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><author><name>José Romero</name><uri>http://www.blogger.com/profile/16359757080751416618</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>21</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>100</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-4083012570879898065.post-4575698399962073575</id><published>2010-01-12T17:33:00.000-08:00</published><updated>2010-01-12T17:35:13.698-08:00</updated><title type='text'>Trabajo Final (Ejerc. 1) AWT y SWING</title><content type='html'>&lt;p class="MsoNormal" style="margin-top:4.8pt;margin-right:0cm;margin-bottom:6.0pt; margin-left:0cm;text-align:justify;line-height:18.0pt"&gt;&lt;span style="font-size: 18pt; font-family: Arial, sans-serif; "&gt;Awt&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-top:4.8pt;margin-right:0cm;margin-bottom:6.0pt; margin-left:0cm;text-align:justify;line-height:18.0pt"&gt;&lt;span class="apple-style-span"&gt;&lt;span style="font-size: 10pt; font-family: Cambria, serif; "&gt;La&lt;/span&gt;&lt;/span&gt;&lt;span class="apple-converted-space"&gt;&lt;span style="font-size: 10pt; font-family: Cambria, serif; "&gt; &lt;/span&gt;&lt;/span&gt;&lt;span class="apple-style-span"&gt;&lt;b&gt;&lt;span style="font-size: 10pt; font-family: Cambria, serif; "&gt;Abstract Window Toolkit&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;span class="apple-converted-space"&gt;&lt;span style="font-size: 10pt; font-family: Cambria, serif; "&gt; &lt;/span&gt;&lt;/span&gt;&lt;span class="apple-style-span"&gt;&lt;span style="font-size: 10pt; font-family: Cambria, serif; "&gt;(AWT, en español Kit de Herramientas de Ventana Abstracta) es un kit de herramientas de&lt;/span&gt;&lt;/span&gt;&lt;span class="apple-converted-space"&gt;&lt;span style="font-size: 10pt; font-family: Cambria, serif; "&gt; &lt;/span&gt;&lt;/span&gt;&lt;a href="http://es.wikipedia.org/wiki/Gr%C3%A1ficos" title="Gráficos"&gt;&lt;span style="font-size: 10pt; font-family: Cambria, serif; "&gt;&lt;span class="Apple-style-span"  style="color:#000000;"&gt;gráficos&lt;/span&gt;&lt;/span&gt;&lt;/a&gt;&lt;span class="apple-style-span"&gt;&lt;span style="font-size: 10pt; font-family: Cambria, serif; "&gt;,&lt;/span&gt;&lt;/span&gt;&lt;span class="apple-converted-space"&gt;&lt;span style="font-size: 10pt; font-family: Cambria, serif; "&gt; &lt;/span&gt;&lt;/span&gt;&lt;a href="http://es.wikipedia.org/wiki/Interfaz_de_usuario" title="Interfaz de usuario"&gt;&lt;span style="font-size: 10pt; font-family: Cambria, serif; "&gt;&lt;span class="Apple-style-span"  style="color:#000000;"&gt;interfaz de usuario&lt;/span&gt;&lt;/span&gt;&lt;/a&gt;&lt;span class="apple-style-span"&gt;&lt;span style="font-size: 10pt; font-family: Cambria, serif; "&gt;, y sistema de ventanas independiente de la plataforma original de&lt;/span&gt;&lt;/span&gt;&lt;span class="apple-converted-space"&gt;&lt;span style="font-size: 10pt; font-family: Cambria, serif; "&gt; &lt;/span&gt;&lt;/span&gt;&lt;a href="http://es.wikipedia.org/wiki/Java_(lenguaje_de_programaci%C3%B3n)" title="Java (lenguaje de programación)"&gt;&lt;span style="font-size: 10pt; font-family: Cambria, serif; "&gt;&lt;span class="Apple-style-span"  style="color:#000000;"&gt;Java&lt;/span&gt;&lt;/span&gt;&lt;/a&gt;&lt;span class="apple-style-span"&gt;&lt;span style="font-size: 10pt; font-family: Cambria, serif; "&gt;.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-top:4.8pt;margin-right:0cm;margin-bottom:6.0pt; margin-left:0cm;text-align:justify;line-height:18.0pt"&gt;&lt;span style="font-size: 10pt; font-family: Cambria, serif; "&gt;Sus principales ventajas son que viene con cada versión de la tecnología Java, incluyendo aplicaciones de Java en navegadores web antiguos, y es muy estable.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-top:4.8pt;margin-right:0cm;margin-bottom:6.0pt; margin-left:0cm;text-align:justify;line-height:18.0pt"&gt;&lt;span style="font-size: 10pt; font-family: Cambria, serif; "&gt;AWT es un conjunto de herramientas muy simples con pocos componentes GUI, con administradores de diseño, y eventos.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-top:4.8pt;margin-right:0cm;margin-bottom:6.0pt; margin-left:0cm;text-align:justify;line-height:18.0pt"&gt;&lt;span style="font-size: 10pt; font-family: Cambria, serif; "&gt;AWT proporciona un rico entorno gráfico, en especial en Java V1.2 y más allá. A través del objeto Graphics2D, Java3D y Java2D y servicios, muchas aplicaciones gráficas de gran alcance, tales como el dibujo y la cartografía y paquetes, junto con JavaSound, competitiva juegos interactivos, se pueden crear.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-top:4.8pt;margin-right:0cm;margin-bottom:6.0pt; margin-left:0cm;text-align:justify;line-height:18.0pt"&gt;&lt;span class="apple-style-span"&gt;&lt;span style="font-size: 10pt; font-family: Cambria, serif; "&gt;AWT continúa suministrando el núcleo del subsistema de eventos GUI y la interfaz entre el sistema de ventanas nativo y la aplicación Java, suministrando la estructura que necesita Swing. También suministra gestores de disposición básicos, un paquete de transferencia de datos para uso con el&lt;/span&gt;&lt;/span&gt;&lt;span class="apple-converted-space"&gt;&lt;span style="font-size: 10pt; font-family: Cambria, serif; "&gt; &lt;/span&gt;&lt;/span&gt;&lt;a href="http://es.wikipedia.org/wiki/Bloc_de_notas" title="Bloc de notas"&gt;&lt;span style="font-size: 10pt; font-family: Cambria, serif; "&gt;&lt;span class="Apple-style-span"  style="color:#000000;"&gt;Bloc de notas&lt;/span&gt;&lt;/span&gt;&lt;/a&gt;&lt;span class="apple-converted-space"&gt;&lt;span style="font-size: 10pt; font-family: Cambria, serif; "&gt; &lt;/span&gt;&lt;/span&gt;&lt;span class="apple-style-span"&gt;&lt;span style="font-size: 10pt; font-family: Cambria, serif; "&gt;y&lt;/span&gt;&lt;/span&gt;&lt;span class="apple-converted-space"&gt;&lt;span style="font-size: 10pt; font-family: Cambria, serif; "&gt; &lt;/span&gt;&lt;/span&gt;&lt;a href="http://es.wikipedia.org/wiki/Drag_%27n_drop" title="Drag 'n drop"&gt;&lt;span style="font-size: 10pt; font-family: Cambria, serif; "&gt;&lt;span class="Apple-style-span"  style="color:#000000;"&gt;Arrastrar y Soltar&lt;/span&gt;&lt;/span&gt;&lt;/a&gt;&lt;span class="apple-style-span"&gt;&lt;span style="font-size: 10pt; font-family: Cambria, serif; "&gt;, y la interface para los dispositivos de entrada tales como el&lt;/span&gt;&lt;/span&gt;&lt;span class="apple-converted-space"&gt;&lt;span style="font-size: 10pt; font-family: Cambria, serif; "&gt; &lt;/span&gt;&lt;/span&gt;&lt;a href="http://es.wikipedia.org/wiki/Mouse" title="Mouse"&gt;&lt;span style="font-size: 10pt; font-family: Cambria, serif; "&gt;&lt;span class="Apple-style-span"  style="color:#000000;"&gt;ratón&lt;/span&gt;&lt;/span&gt;&lt;/a&gt;&lt;span class="apple-converted-space"&gt;&lt;span style="font-size: 10pt; font-family: Cambria, serif; "&gt; &lt;/span&gt;&lt;/span&gt;&lt;span class="apple-style-span"&gt;&lt;span style="font-size: 10pt; font-family: Cambria, serif; "&gt;y el&lt;/span&gt;&lt;/span&gt;&lt;span class="apple-converted-space"&gt;&lt;span style="font-size: 10pt; font-family: Cambria, serif; "&gt; &lt;/span&gt;&lt;/span&gt;&lt;a href="http://es.wikipedia.org/wiki/Teclado_(computaci%C3%B3n)" title="Teclado (computación)"&gt;&lt;span style="font-size: 10pt; font-family: Cambria, serif; "&gt;&lt;span class="Apple-style-span"  style="color:#000000;"&gt;teclado&lt;/span&gt;&lt;/span&gt;&lt;/a&gt;&lt;span class="apple-style-span"&gt;&lt;span style="font-size: 10pt; font-family: Cambria, serif; "&gt;.&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: 10pt; font-family: Cambria, serif; "&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-top:4.8pt;margin-right:0cm;margin-bottom:6.0pt; margin-left:0cm;text-align:justify;line-height:18.0pt;tab-stops:72.75pt"&gt;&lt;span style="font-size: 18pt; font-family: Arial, sans-serif; "&gt;Swing     &lt;/span&gt;&lt;b&gt;&lt;span style="font-size: 10pt; font-family: Arial, sans-serif; "&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-bottom:0cm;margin-bottom:.0001pt;text-align: justify;line-height:18.0pt"&gt;&lt;b&gt;&lt;span style="font-size: 10pt; font-family: Cambria, serif; "&gt;Swing&lt;/span&gt;&lt;/b&gt;&lt;span style="font-size: 10pt; font-family: Cambria, serif; "&gt; es una &lt;/span&gt;&lt;a href="http://es.wikipedia.org/wiki/Biblioteca_(programaci%C3%B3n)" title="Biblioteca (programación)"&gt;&lt;span style="font-size: 10pt; font-family: Cambria, serif; "&gt;&lt;span class="Apple-style-span"  style="color:#000000;"&gt;biblioteca&lt;/span&gt;&lt;/span&gt;&lt;/a&gt;&lt;span style="font-size: 10pt; font-family: Cambria, serif; "&gt; gráfica para &lt;/span&gt;&lt;a href="http://es.wikipedia.org/wiki/Lenguaje_de_programaci%C3%B3n_Java" title="Lenguaje de programación Java"&gt;&lt;span style="font-size: 10pt; font-family: Cambria, serif; "&gt;&lt;span class="Apple-style-span"  style="color:#000000;"&gt;Java&lt;/span&gt;&lt;/span&gt;&lt;/a&gt;&lt;span style="font-size: 10pt; font-family: Cambria, serif; "&gt;. Incluye &lt;/span&gt;&lt;a href="http://es.wikipedia.org/wiki/Widget" title="Widget"&gt;&lt;span style="font-size: 10pt; font-family: Cambria, serif; "&gt;&lt;span class="Apple-style-span"  style="color:#000000;"&gt;widgets&lt;/span&gt;&lt;/span&gt;&lt;/a&gt;&lt;span style="font-size: 10pt; font-family: Cambria, serif; "&gt; para &lt;/span&gt;&lt;a href="http://es.wikipedia.org/wiki/Interfaz_gr%C3%A1fica_de_usuario" title="Interfaz gráfica de usuario"&gt;&lt;span style="font-size: 10pt; font-family: Cambria, serif; "&gt;&lt;span class="Apple-style-span"  style="color:#000000;"&gt;interfaz gráfica de usuario&lt;/span&gt;&lt;/span&gt;&lt;/a&gt;&lt;span style="font-size: 10pt; font-family: Cambria, serif; "&gt; tales como cajas de texto, botones, desplegables y tablas.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-bottom:0cm;margin-bottom:.0001pt;text-align: justify;line-height:18.0pt"&gt;&lt;span class="apple-style-span"&gt;&lt;span style="font-size: 10pt; font-family: Cambria, serif; "&gt;Es una plataforma independiente. Sigue un simple modelo de programación por hilos, y posee las siguientes características principales:&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-bottom:0cm;margin-bottom:.0001pt;text-align: justify;line-height:18.0pt"&gt;&lt;b&gt;&lt;span style="font-size: 10pt; font-family: Cambria, serif; "&gt;Independencia de plataforma.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-bottom:0cm;margin-bottom:.0001pt;text-align: justify;line-height:18.0pt"&gt;&lt;b&gt;&lt;span style="font-size: 10pt; font-family: Cambria, serif; "&gt;Extensibilidad:&lt;/span&gt;&lt;/b&gt;&lt;span style="font-size: 10pt; font-family: Cambria, serif; "&gt; es una arquitectura altamente particionada: los usuarios pueden proveer sus propias implementaciones modificadas para sobrescribir las implementaciones por defecto. &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-bottom:0cm;margin-bottom:.0001pt;text-align: justify;line-height:18.0pt"&gt;&lt;b&gt;&lt;span style="font-size: 10pt; font-family: Cambria, serif; "&gt;Personalizable:&lt;/span&gt;&lt;/b&gt;&lt;span style="font-size: 10pt; font-family: Cambria, serif; "&gt; el control permite representar diferentes estilos de apariencia.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-bottom:0cm;margin-bottom:.0001pt;text-align: justify"&gt;&lt;b&gt;&lt;span style="font-size: 10pt; line-height: 115%; font-family: Cambria, serif; "&gt;Modelo de separación de la vista y el controlador.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-bottom:0cm;margin-bottom:.0001pt;text-align: justify"&gt;&lt;span style="font-size: 10pt; line-height: 115%; font-family: Cambria, serif; "&gt;Para todos los componentes con los modelos (como botones, listas, tablas, árboles, texto enriquecido), el modelo es independiente de los componentes. &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-bottom:0cm;margin-bottom:.0001pt;text-align: justify;line-height:18.0pt"&gt;&lt;b&gt;&lt;span style="font-size: 10pt; font-family: Cambria, serif; "&gt;Aspecto Programable:&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-bottom:0cm;margin-bottom:.0001pt;text-align: justify;line-height:18.0pt"&gt;&lt;span style="font-size: 10pt; font-family: Cambria, serif; "&gt;La mirada de cada uno de los componentes es controlado por una aplicación dinámica reemplazable.&lt;br /&gt;&lt;b&gt;Accesibilidad. &lt;o:p&gt;&lt;/o:p&gt;&lt;/b&gt;&lt;/span&gt;&lt;/p&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4083012570879898065-4575698399962073575?l=joseromero495.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://joseromero495.blogspot.com/feeds/4575698399962073575/comments/default' title='Enviar comentarios'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=4083012570879898065&amp;postID=4575698399962073575' title='0 comentarios'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4083012570879898065/posts/default/4575698399962073575'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4083012570879898065/posts/default/4575698399962073575'/><link rel='alternate' type='text/html' href='http://joseromero495.blogspot.com/2010/01/trabajo-final-ejerc-1-awt-y-swing.html' title='Trabajo Final (Ejerc. 1) AWT y SWING'/><author><name>José Romero</name><uri>http://www.blogger.com/profile/16359757080751416618</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4083012570879898065.post-7748232968207378884</id><published>2010-01-12T17:25:00.000-08:00</published><updated>2010-01-12T17:32:56.258-08:00</updated><title type='text'>Trabajo final(Ejerc. 2)                     Definición y Funciónamiento de un Applet</title><content type='html'>&lt;div&gt;&lt;b&gt;¿Qué es un Applet?&lt;/b&gt;&lt;div&gt;&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;b&gt;• Definición&lt;/b&gt;: Podemos decir que un applet es un componente de unaaplicación que se ejecuta en el contexto de otro programa, por ejemplo un navegador web. El applet debe ejecutarse en un contenedor, que lo proporciona un programa anfitrión, mediante un plugin, o en aplicaciones como teléfonos móviles que soportan el modelo de programación porapplets.&lt;br /&gt;Un applet no puede ejecutarse de manera independiente. Un appletnormalmente lleva a cabo una función muy específica que carece de uso independiente.&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-weight: bold; "&gt;• Funcionamiento&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;/div&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://3.bp.blogspot.com/_OTaCcGGC-Nw/S00h6fEKOKI/AAAAAAAAAAk/ftPslVtDV4g/s1600-h/traba+fina.png"&gt;&lt;img style="display:block; margin:0px auto 10px; text-align:center;cursor:pointer; cursor:hand;width: 400px; height: 189px;" src="http://3.bp.blogspot.com/_OTaCcGGC-Nw/S00h6fEKOKI/AAAAAAAAAAk/ftPslVtDV4g/s400/traba+fina.png" border="0" alt="" id="BLOGGER_PHOTO_ID_5426030414706391202" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;div&gt;&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;/div&gt;&lt;div&gt;&lt;b&gt;&lt;br /&gt;&lt;/b&gt;Un Java applet es un código JAVA que carece de un método main, por eso se utiliza principalmente para el trabajo de páginas web, ya que es un pequeño programa que es utilizado en una página HTML y representado por una pequeña pantalla gráfica dentro de ésta.&lt;br /&gt;Un applet Java es un applet escrito en el lenguaje de programación Java. Los applets de Java pueden correr en un navegador web utilizando la Java Virtual Machine (JVM), o en el AppletViewer de Sun.&lt;/div&gt;&lt;div&gt;&lt;br /&gt;Java puede funcionar como una aplicación sola o como un "applet", que es un pequeño programa hecho en Java. Los applets de Java se pueden "pegar" a una página de Web (HTML), y con esto puedes tener un programa que cualquier persona que tenga un browser compatible podrá usar.&lt;br /&gt;Java funciona de la siguiente manera: El compilador de Java deja el programa en un Pseudo-código (no es código maquinal) y luego el intérprete de Java ejecuta el programa (lo que se conoce como el "Java Virtual Machine"). Por eso Java es multiplataforma, existe un intérprete para cada máquina diferente. &lt;/div&gt;&lt;div&gt;&lt;br /&gt;Para entender bien como funciona un applet de Java vean el siguiente ejemplo:&lt;/div&gt;&lt;div&gt;&lt;br /&gt;1. Existe un código de Java en un servidor de Web. (Los códigos de Java se caracterizan por tener la extensión *.class).&lt;/div&gt;&lt;div&gt;&lt;br /&gt;2. Una persona en Internet, con un browser compatible con Java, realiza una conección al servidor.&lt;/div&gt;&lt;div&gt;&lt;br /&gt;3. El servidor envía el documento HTML y el código en Java (*.class).&lt;br /&gt;4. En la computadora del usuario remoto llegan ambos, y la Máquina Virtual de Java, que está en el browser, transforma el código Java en un código que entienda la máquina local y se ejecuta el programa dentro de la página de Web.&lt;/div&gt;&lt;div&gt;&lt;br /&gt;5. Si el usuario realiza otra conexión a otro URL o se sale del browser, el programa se deja de ejecutar y en la computadora no queda rastro de el.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4083012570879898065-7748232968207378884?l=joseromero495.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://joseromero495.blogspot.com/feeds/7748232968207378884/comments/default' title='Enviar comentarios'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=4083012570879898065&amp;postID=7748232968207378884' title='0 comentarios'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4083012570879898065/posts/default/7748232968207378884'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4083012570879898065/posts/default/7748232968207378884'/><link rel='alternate' type='text/html' href='http://joseromero495.blogspot.com/2010/01/que-es-un-applet-definicion-podemos.html' title='Trabajo final(Ejerc. 2)                     Definición y Funciónamiento de un Applet'/><author><name>José Romero</name><uri>http://www.blogger.com/profile/16359757080751416618</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://3.bp.blogspot.com/_OTaCcGGC-Nw/S00h6fEKOKI/AAAAAAAAAAk/ftPslVtDV4g/s72-c/traba+fina.png' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4083012570879898065.post-5808529360511525724</id><published>2010-01-12T17:06:00.000-08:00</published><updated>2010-01-12T17:25:22.153-08:00</updated><title type='text'>Trabajo Final (Ejerc. 3)</title><content type='html'>&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://4.bp.blogspot.com/_OTaCcGGC-Nw/S00gJYIfS3I/AAAAAAAAAAc/b5oOBDgK7P0/s1600-h/operaciones.bmp"&gt;&lt;img style="display:block; margin:0px auto 10px; text-align:center;cursor:pointer; cursor:hand;width: 400px; height: 288px;" src="http://4.bp.blogspot.com/_OTaCcGGC-Nw/S00gJYIfS3I/AAAAAAAAAAc/b5oOBDgK7P0/s400/operaciones.bmp" border="0" alt=""id="BLOGGER_PHOTO_ID_5426028471520283506" /&gt;&lt;/a&gt;&lt;br /&gt;import javax.swing.JOptionPane;&lt;br /&gt;import java.text.DecimalFormat;&lt;br /&gt;&lt;br /&gt;public class Matriz {&lt;br /&gt;    public double[][] value=null;&lt;br /&gt;  protected String name=null;&lt;br /&gt;&lt;br /&gt;public int numeroFilas;&lt;br /&gt;public int numeroColumnas;&lt;br /&gt;public double [][]matriz;&lt;br /&gt;&lt;br /&gt;public Matriz(){&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;public Matriz(int nF, int nC){&lt;br /&gt;&lt;br /&gt;numeroFilas=nF;&lt;br /&gt;numeroColumnas=nC;&lt;br /&gt;matriz=new double[numeroFilas][numeroColumnas];//construyo un sitio para almacenar ceros&lt;br /&gt;for(int i=0;i &lt; numeroFilas;i++)&lt;br /&gt;for(int j=0; j &lt; numeroColumnas; j++)&lt;br /&gt;matriz [i][j]=0;&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;public Matriz suma(Matriz b){&lt;br /&gt;Matriz resultado;&lt;br /&gt;if((this.numeroFilas == b.numeroFilas)&amp;&amp; (this.numeroColumnas == b.numeroColumnas)){&lt;br /&gt;resultado = new Matriz(this.numeroFilas, this.numeroColumnas);&lt;br /&gt;for(int i=0; i &lt; this.numeroFilas; i++)&lt;br /&gt;for(int j=0; j &lt; this.numeroColumnas; j++)&lt;br /&gt;resultado.matriz[i][j] = this.matriz[i][j]+ b.matriz[i][j];&lt;br /&gt;return resultado;&lt;br /&gt;}&lt;br /&gt;else&lt;br /&gt;System.out.println("ERROR EN DIMENSIONES DE LAS MATRICES");&lt;br /&gt;resultado=null;&lt;br /&gt;return resultado;&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;/**&lt;br /&gt;* Metodo de resta de matrices&lt;br /&gt;* @return matriz resultado de resta&lt;br /&gt;*/&lt;br /&gt;public Matriz resta(Matriz b){&lt;br /&gt;Matriz resultado;&lt;br /&gt;if ((this.numeroFilas == b.numeroFilas)&amp;(this.numeroFilas == b.numeroColumnas)){&lt;br /&gt;resultado = new Matriz (this.numeroFilas,this.numeroColumnas);//construyo la caja donde almaceno el resultado&lt;br /&gt;for(int i = 0;i &lt; this.numeroFilas;i++)&lt;br /&gt;for(int j=0;j &lt; this.numeroColumnas;j++)&lt;br /&gt;resultado.matriz[i][j] = this.matriz[i][j]-b.matriz[i][j];&lt;br /&gt;return resultado;&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;else{&lt;br /&gt;System.out.println("ERROR EN DIMENSIONES DE LAS MATRICES");&lt;br /&gt;resultado=null;&lt;br /&gt;return resultado;&lt;br /&gt;}&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;/**&lt;br /&gt;* Metodo para transpuesta de una matriz&lt;br /&gt;* @return&lt;br /&gt;*/&lt;br /&gt;//el numero de filas se cambia al numero de columnas&lt;br /&gt;&lt;br /&gt;public Matriz Transpuesta(){&lt;br /&gt;Matriz resultado;&lt;br /&gt;resultado=new Matriz(this.numeroColumnas,this.numeroFilas);&lt;br /&gt;for(int i=0; i &lt; this.numeroFilas; i++)&lt;br /&gt;for(int j=0; j &lt; this.numeroColumnas; j++)&lt;br /&gt;resultado.matriz[j][i]=this.matriz[i][j];&lt;br /&gt;return resultado;&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;/**&lt;br /&gt;* Metodo para multiplicaci�n entre matrices&lt;br /&gt;* @return&lt;br /&gt;*/&lt;br /&gt;public Matriz Multiplicacion(Matriz b){&lt;br /&gt;Matriz resultado;&lt;br /&gt;if(this.numeroColumnas==b.numeroFilas){&lt;br /&gt;resultado=new Matriz(this.numeroFilas, b.numeroColumnas);&lt;br /&gt;for(int i=0; i &lt; this.numeroFilas; i++){&lt;br /&gt;for(int j=0; j &lt; b.numeroColumnas; j++){&lt;br /&gt;for(int k=0; k &lt; this.numeroColumnas; k++)&lt;br /&gt;resultado.matriz[i][j]+=this.matriz[i][k]*b.matriz[k][j];&lt;br /&gt;}&lt;br /&gt;}&lt;br /&gt;return resultado;&lt;br /&gt;}&lt;br /&gt;else&lt;br /&gt;System.out.println("ERROR EN DIMENSIONES DE LAS MATRICES");&lt;br /&gt;resultado=null;&lt;br /&gt;return resultado;&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;public Matriz Inversa(){&lt;br /&gt;Matriz r;&lt;br /&gt;r=new Matriz(this.numeroColumnas,this.numeroFilas);&lt;br /&gt;for(int i=0; i &lt; this.numeroFilas; i++)&lt;br /&gt;for(int j=0; j &lt; this.numeroColumnas; j++)&lt;br /&gt;r=new Matriz(this.numeroColumnas,this.numeroFilas);&lt;br /&gt;r.matriz[0][0]=((this.matriz[1][1]*this.matriz[2][2])-(this.matriz[2][1]*this.matriz[1][2]));&lt;br /&gt;r.matriz[0][1]=((this.matriz[1][0]*this.matriz[2][2])-(this.matriz[2][0]*this.matriz[1][2]));&lt;br /&gt;r.matriz[0][2]=((this.matriz[1][0]*this.matriz[2][1])-(this.matriz[2][0]*this.matriz[1][1]));&lt;br /&gt;r.matriz[1][0]=((this.matriz[0][1]*this.matriz[2][2])-(this.matriz[2][1]*this.matriz[0][2]));&lt;br /&gt;r.matriz[1][1]=((this.matriz[1][0]*this.matriz[2][2])-(this.matriz[2][0]*this.matriz[1][2]));&lt;br /&gt;r.matriz[1][2]=((this.matriz[0][0]*this.matriz[2][1])-(this.matriz[2][0]*this.matriz[0][1]));&lt;br /&gt;r.matriz[2][0]=((this.matriz[0][1]*this.matriz[1][2])-(this.matriz[1][1]*this.matriz[0][2]));&lt;br /&gt;r.matriz[2][1]=((this.matriz[0][0]*this.matriz[1][2])-(this.matriz[1][0]*this.matriz[0][2]));&lt;br /&gt;r.matriz[2][2]=((this.matriz[0][0]*this.matriz[1][1])-(this.matriz[1][0]*this.matriz[0][1]));&lt;br /&gt;return r;&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;public void leer(){&lt;br /&gt;String aux;&lt;br /&gt;for(int i=0; i &lt; this.numeroFilas; i++){&lt;br /&gt;for(int j=0; j &lt; this.numeroColumnas; j++){&lt;br /&gt;aux = JOptionPane.showInputDialog(null,"INGRESO DE VALORES","INGRESE EL VALOR: "+(i+1)+","+(j+1),JOptionPane.DEFAULT_OPTION);&lt;br /&gt;this.matriz[i][j]=Double.parseDouble(aux);&lt;br /&gt;}&lt;br /&gt;}&lt;br /&gt;}&lt;br /&gt;public double deteminantes(){&lt;br /&gt;double suma=0;&lt;br /&gt;for(int i=0; i for(int j=0; j suma = this.matriz[i][j+1]-this.matriz[i+1][j]));&lt;br /&gt;return suma;&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;public String toString(){&lt;br /&gt;&lt;br /&gt;String aux="\n";&lt;br /&gt;DecimalFormat df = new DecimalFormat("0.0000");&lt;br /&gt;for(int i=0; i &lt; numeroFilas; i++){&lt;br /&gt;for(int j=0; j &lt; numeroColumnas; j++){&lt;br /&gt;aux+=df.format(matriz[i][j])+" ";&lt;br /&gt;}&lt;br /&gt;aux+="\n";&lt;br /&gt;}&lt;br /&gt;aux+=" ";&lt;br /&gt;return aux;&lt;br /&gt;}&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;public class OperacionesMatrices extends javax.swing.JApplet {&lt;br /&gt;&lt;br /&gt;    /** Initializes the applet OperacionesMatrices */&lt;br /&gt;    public void init() {&lt;br /&gt;        try {&lt;br /&gt;            java.awt.EventQueue.invokeAndWait(new Runnable() {&lt;br /&gt;                public void run() {&lt;br /&gt;                    initComponents();&lt;br /&gt;                }&lt;br /&gt;            });&lt;br /&gt;        } catch (Exception ex) {&lt;br /&gt;            ex.printStackTrace();&lt;br /&gt;        }&lt;br /&gt;    }&lt;br /&gt;&lt;br /&gt;    /** This method is called from within the init() method to&lt;br /&gt;     * initialize the form.&lt;br /&gt;     * WARNING: Do NOT modify this code. The content of this method is&lt;br /&gt;     * always regenerated by the Form Editor.&lt;br /&gt;     */&lt;br /&gt;    @SuppressWarnings("unchecked")&lt;br /&gt;    // &lt;editor-fold defaultstate="collapsed" desc="Generated Code"&gt;&lt;br /&gt;    private void initComponents() {&lt;br /&gt;&lt;br /&gt;        jPanel1 = new javax.swing.JPanel();&lt;br /&gt;        jLabel1 = new javax.swing.JLabel();&lt;br /&gt;        jLabel2 = new javax.swing.JLabel();&lt;br /&gt;        jLabel3 = new javax.swing.JLabel();&lt;br /&gt;        jLabel4 = new javax.swing.JLabel();&lt;br /&gt;        jLabel5 = new javax.swing.JLabel();&lt;br /&gt;        jLabel6 = new javax.swing.JLabel();&lt;br /&gt;        jTextField1 = new javax.swing.JTextField();&lt;br /&gt;        jTextField2 = new javax.swing.JTextField();&lt;br /&gt;        jLabel7 = new javax.swing.JLabel();&lt;br /&gt;        jLabel8 = new javax.swing.JLabel();&lt;br /&gt;        jTextField3 = new javax.swing.JTextField();&lt;br /&gt;        jTextField4 = new javax.swing.JTextField();&lt;br /&gt;        jButton1 = new javax.swing.JButton();&lt;br /&gt;        jButton2 = new javax.swing.JButton();&lt;br /&gt;        jButton3 = new javax.swing.JButton();&lt;br /&gt;        jScrollPane1 = new javax.swing.JScrollPane();&lt;br /&gt;        jTextArea1 = new javax.swing.JTextArea();&lt;br /&gt;        jButton4 = new javax.swing.JButton();&lt;br /&gt;        jButton5 = new javax.swing.JButton();&lt;br /&gt;        jScrollPane2 = new javax.swing.JScrollPane();&lt;br /&gt;        jTextArea2 = new javax.swing.JTextArea();&lt;br /&gt;        jLabel9 = new javax.swing.JLabel();&lt;br /&gt;        jLabel10 = new javax.swing.JLabel();&lt;br /&gt;        jLabel11 = new javax.swing.JLabel();&lt;br /&gt;        jTextField5 = new javax.swing.JTextField();&lt;br /&gt;        jTextField6 = new javax.swing.JTextField();&lt;br /&gt;        jButton6 = new javax.swing.JButton();&lt;br /&gt;&lt;br /&gt;        jLabel1.setText("Operaciones de Matrices");&lt;br /&gt;&lt;br /&gt;        jLabel2.setText("Operaciones Binarias");&lt;br /&gt;&lt;br /&gt;        jLabel3.setText("Matriz 1");&lt;br /&gt;&lt;br /&gt;        jLabel4.setText("Matriz 2");&lt;br /&gt;&lt;br /&gt;        jLabel5.setText("Numero de Filas");&lt;br /&gt;&lt;br /&gt;        jLabel6.setText("Numero de Columnas");&lt;br /&gt;&lt;br /&gt;        jTextField1.addActionListener(new java.awt.event.ActionListener() {&lt;br /&gt;            public void actionPerformed(java.awt.event.ActionEvent evt) {&lt;br /&gt;                jTextField1ActionPerformed(evt);&lt;br /&gt;            }&lt;br /&gt;        });&lt;br /&gt;&lt;br /&gt;        jTextField2.addActionListener(new java.awt.event.ActionListener() {&lt;br /&gt;            public void actionPerformed(java.awt.event.ActionEvent evt) {&lt;br /&gt;                jTextField2ActionPerformed(evt);&lt;br /&gt;            }&lt;br /&gt;        });&lt;br /&gt;&lt;br /&gt;        jLabel7.setText("Numero Filas");&lt;br /&gt;&lt;br /&gt;        jLabel8.setText("Numero Columnas");&lt;br /&gt;&lt;br /&gt;        jTextField3.addActionListener(new java.awt.event.ActionListener() {&lt;br /&gt;            public void actionPerformed(java.awt.event.ActionEvent evt) {&lt;br /&gt;                jTextField3ActionPerformed(evt);&lt;br /&gt;            }&lt;br /&gt;        });&lt;br /&gt;&lt;br /&gt;        jButton1.setText("Suma");&lt;br /&gt;        jButton1.addActionListener(new java.awt.event.ActionListener() {&lt;br /&gt;            public void actionPerformed(java.awt.event.ActionEvent evt) {&lt;br /&gt;                jButton1ActionPerformed(evt);&lt;br /&gt;            }&lt;br /&gt;        });&lt;br /&gt;&lt;br /&gt;        jButton2.setText("Resta");&lt;br /&gt;        jButton2.addActionListener(new java.awt.event.ActionListener() {&lt;br /&gt;            public void actionPerformed(java.awt.event.ActionEvent evt) {&lt;br /&gt;                jButton2ActionPerformed(evt);&lt;br /&gt;            }&lt;br /&gt;        });&lt;br /&gt;&lt;br /&gt;        jButton3.setText("Multiplicación");&lt;br /&gt;        jButton3.addActionListener(new java.awt.event.ActionListener() {&lt;br /&gt;            public void actionPerformed(java.awt.event.ActionEvent evt) {&lt;br /&gt;                jButton3ActionPerformed(evt);&lt;br /&gt;            }&lt;br /&gt;        });&lt;br /&gt;&lt;br /&gt;        jTextArea1.setColumns(20);&lt;br /&gt;        jTextArea1.setRows(5);&lt;br /&gt;        jScrollPane1.setViewportView(jTextArea1);&lt;br /&gt;&lt;br /&gt;        jButton4.setText("Transpuesta");&lt;br /&gt;        jButton4.addActionListener(new java.awt.event.ActionListener() {&lt;br /&gt;            public void actionPerformed(java.awt.event.ActionEvent evt) {&lt;br /&gt;                jButton4ActionPerformed(evt);&lt;br /&gt;            }&lt;br /&gt;        });&lt;br /&gt;&lt;br /&gt;        jButton5.setText("Inversa");&lt;br /&gt;        jButton5.addActionListener(new java.awt.event.ActionListener() {&lt;br /&gt;            public void actionPerformed(java.awt.event.ActionEvent evt) {&lt;br /&gt;                jButton5ActionPerformed(evt);&lt;br /&gt;            }&lt;br /&gt;        });&lt;br /&gt;&lt;br /&gt;        jTextArea2.setColumns(20);&lt;br /&gt;        jTextArea2.setRows(5);&lt;br /&gt;        jScrollPane2.setViewportView(jTextArea2);&lt;br /&gt;&lt;br /&gt;        jLabel9.setText("Matriz");&lt;br /&gt;&lt;br /&gt;        jLabel10.setText("Numero de Filas");&lt;br /&gt;&lt;br /&gt;        jLabel11.setText("Numero de columnas");&lt;br /&gt;&lt;br /&gt;        jTextField5.addActionListener(new java.awt.event.ActionListener() {&lt;br /&gt;            public void actionPerformed(java.awt.event.ActionEvent evt) {&lt;br /&gt;                jTextField5ActionPerformed(evt);&lt;br /&gt;            }&lt;br /&gt;        });&lt;br /&gt;&lt;br /&gt;        jButton6.setText("Determinante");&lt;br /&gt;        jButton6.addActionListener(new java.awt.event.ActionListener() {&lt;br /&gt;            public void actionPerformed(java.awt.event.ActionEvent evt) {&lt;br /&gt;                jButton6ActionPerformed(evt);&lt;br /&gt;            }&lt;br /&gt;        });&lt;br /&gt;&lt;br /&gt;        javax.swing.GroupLayout jPanel1Layout = new javax.swing.GroupLayout(jPanel1);&lt;br /&gt;        jPanel1.setLayout(jPanel1Layout);&lt;br /&gt;        jPanel1Layout.setHorizontalGroup(&lt;br /&gt;            jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)&lt;br /&gt;            .addGroup(jPanel1Layout.createSequentialGroup()&lt;br /&gt;                .addContainerGap()&lt;br /&gt;                .addComponent(jButton1, javax.swing.GroupLayout.PREFERRED_SIZE, 73, javax.swing.GroupLayout.PREFERRED_SIZE)&lt;br /&gt;                .addGap(18, 18, 18)&lt;br /&gt;                .addComponent(jButton2)&lt;br /&gt;                .addGap(18, 18, 18)&lt;br /&gt;                .addComponent(jButton3)&lt;br /&gt;                .addContainerGap(880, Short.MAX_VALUE))&lt;br /&gt;            .addGroup(jPanel1Layout.createSequentialGroup()&lt;br /&gt;                .addContainerGap()&lt;br /&gt;                .addComponent(jLabel2)&lt;br /&gt;                .addContainerGap(1045, Short.MAX_VALUE))&lt;br /&gt;            .addGroup(jPanel1Layout.createSequentialGroup()&lt;br /&gt;                .addGap(345, 345, 345)&lt;br /&gt;                .addComponent(jLabel1, javax.swing.GroupLayout.PREFERRED_SIZE, 138, javax.swing.GroupLayout.PREFERRED_SIZE)&lt;br /&gt;                .addContainerGap(672, Short.MAX_VALUE))&lt;br /&gt;            .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel1Layout.createSequentialGroup()&lt;br /&gt;                .addContainerGap()&lt;br /&gt;                .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)&lt;br /&gt;                    .addGroup(jPanel1Layout.createSequentialGroup()&lt;br /&gt;                        .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)&lt;br /&gt;                            .addComponent(jLabel3)&lt;br /&gt;                            .addGroup(jPanel1Layout.createSequentialGroup()&lt;br /&gt;                                .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)&lt;br /&gt;                                    .addComponent(jLabel6)&lt;br /&gt;                                    .addComponent(jLabel5)&lt;br /&gt;                                    .addComponent(jLabel8)&lt;br /&gt;                                    .addComponent(jLabel7)&lt;br /&gt;                                    .addComponent(jLabel4))&lt;br /&gt;                                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)&lt;br /&gt;                                .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)&lt;br /&gt;                                    .addComponent(jTextField4)&lt;br /&gt;                                    .addComponent(jTextField3)&lt;br /&gt;                                    .addComponent(jTextField2)&lt;br /&gt;                                    .addComponent(jTextField1, javax.swing.GroupLayout.DEFAULT_SIZE, 61, Short.MAX_VALUE))))&lt;br /&gt;                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 135, Short.MAX_VALUE)&lt;br /&gt;                        .addComponent(jScrollPane1, javax.swing.GroupLayout.PREFERRED_SIZE, 352, javax.swing.GroupLayout.PREFERRED_SIZE))&lt;br /&gt;                    .addGroup(javax.swing.GroupLayout.Alignment.LEADING, jPanel1Layout.createSequentialGroup()&lt;br /&gt;                        .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)&lt;br /&gt;                            .addComponent(jLabel9)&lt;br /&gt;                            .addGroup(jPanel1Layout.createSequentialGroup()&lt;br /&gt;                                .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)&lt;br /&gt;                                    .addComponent(jButton4)&lt;br /&gt;                                    .addComponent(jLabel10)&lt;br /&gt;                                    .addComponent(jLabel11))&lt;br /&gt;                                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)&lt;br /&gt;                                .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)&lt;br /&gt;                                    .addComponent(jButton5)&lt;br /&gt;                                    .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING, false)&lt;br /&gt;                                        .addComponent(jTextField6, javax.swing.GroupLayout.Alignment.LEADING)&lt;br /&gt;                                        .addComponent(jTextField5, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, 46, Short.MAX_VALUE)))))&lt;br /&gt;                        .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)&lt;br /&gt;                            .addGroup(jPanel1Layout.createSequentialGroup()&lt;br /&gt;                                .addGap(128, 128, 128)&lt;br /&gt;                                .addComponent(jScrollPane2, javax.swing.GroupLayout.DEFAULT_SIZE, 353, Short.MAX_VALUE))&lt;br /&gt;                            .addGroup(jPanel1Layout.createSequentialGroup()&lt;br /&gt;                                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)&lt;br /&gt;                                .addComponent(jButton6)))))&lt;br /&gt;                .addGap(492, 492, 492))&lt;br /&gt;        );&lt;br /&gt;        jPanel1Layout.setVerticalGroup(&lt;br /&gt;            jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)&lt;br /&gt;            .addGroup(jPanel1Layout.createSequentialGroup()&lt;br /&gt;                .addContainerGap()&lt;br /&gt;                .addComponent(jLabel1, javax.swing.GroupLayout.PREFERRED_SIZE, 14, javax.swing.GroupLayout.PREFERRED_SIZE)&lt;br /&gt;                .addGap(57, 57, 57)&lt;br /&gt;                .addComponent(jLabel2)&lt;br /&gt;                .addGap(18, 18, 18)&lt;br /&gt;                .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)&lt;br /&gt;                    .addComponent(jButton1)&lt;br /&gt;                    .addComponent(jButton2)&lt;br /&gt;                    .addComponent(jButton3))&lt;br /&gt;                .addGap(45, 45, 45)&lt;br /&gt;                .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)&lt;br /&gt;                    .addGroup(jPanel1Layout.createSequentialGroup()&lt;br /&gt;                        .addComponent(jLabel3)&lt;br /&gt;                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)&lt;br /&gt;                        .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)&lt;br /&gt;                            .addComponent(jLabel5)&lt;br /&gt;                            .addComponent(jTextField1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))&lt;br /&gt;                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)&lt;br /&gt;                        .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)&lt;br /&gt;                            .addComponent(jLabel6)&lt;br /&gt;                            .addComponent(jTextField2, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))&lt;br /&gt;                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)&lt;br /&gt;                        .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)&lt;br /&gt;                            .addGroup(jPanel1Layout.createSequentialGroup()&lt;br /&gt;                                .addComponent(jLabel4)&lt;br /&gt;                                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)&lt;br /&gt;                                .addComponent(jLabel7))&lt;br /&gt;                            .addComponent(jTextField3, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))&lt;br /&gt;                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)&lt;br /&gt;                        .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)&lt;br /&gt;                            .addComponent(jLabel8)&lt;br /&gt;                            .addComponent(jTextField4, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)))&lt;br /&gt;                    .addComponent(jScrollPane1, javax.swing.GroupLayout.PREFERRED_SIZE, 158, javax.swing.GroupLayout.PREFERRED_SIZE))&lt;br /&gt;                .addGap(60, 60, 60)&lt;br /&gt;                .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)&lt;br /&gt;                    .addComponent(jButton4)&lt;br /&gt;                    .addComponent(jButton5)&lt;br /&gt;                    .addComponent(jButton6))&lt;br /&gt;                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)&lt;br /&gt;                .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)&lt;br /&gt;                    .addGroup(jPanel1Layout.createSequentialGroup()&lt;br /&gt;                        .addComponent(jLabel9)&lt;br /&gt;                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)&lt;br /&gt;                        .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)&lt;br /&gt;                            .addComponent(jLabel10)&lt;br /&gt;                            .addComponent(jTextField5, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))&lt;br /&gt;                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 11, Short.MAX_VALUE)&lt;br /&gt;                        .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)&lt;br /&gt;                            .addComponent(jLabel11)&lt;br /&gt;                            .addComponent(jTextField6, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))&lt;br /&gt;                        .addGap(113, 113, 113))&lt;br /&gt;                    .addGroup(jPanel1Layout.createSequentialGroup()&lt;br /&gt;                        .addComponent(jScrollPane2, javax.swing.GroupLayout.DEFAULT_SIZE, 173, Short.MAX_VALUE)&lt;br /&gt;                        .addContainerGap())))&lt;br /&gt;        );&lt;br /&gt;&lt;br /&gt;        javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());&lt;br /&gt;        getContentPane().setLayout(layout);&lt;br /&gt;        layout.setHorizontalGroup(&lt;br /&gt;            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)&lt;br /&gt;            .addGroup(layout.createSequentialGroup()&lt;br /&gt;                .addComponent(jPanel1, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)&lt;br /&gt;                .addGap(20, 20, 20))&lt;br /&gt;        );&lt;br /&gt;        layout.setVerticalGroup(&lt;br /&gt;            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)&lt;br /&gt;            .addGroup(layout.createSequentialGroup()&lt;br /&gt;                .addContainerGap()&lt;br /&gt;                .addComponent(jPanel1, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)&lt;br /&gt;                .addContainerGap())&lt;br /&gt;        );&lt;br /&gt;    }// &lt;/editor-fold&gt;&lt;br /&gt;&lt;br /&gt;    private void jTextField1ActionPerformed(java.awt.event.ActionEvent evt) {                                            &lt;br /&gt;        // TODO add your handling code here:&lt;br /&gt;    }                                           &lt;br /&gt;&lt;br /&gt;    private void jTextField2ActionPerformed(java.awt.event.ActionEvent evt) {                                            &lt;br /&gt;        // TODO add your handling code here:&lt;br /&gt;    }                                           &lt;br /&gt;&lt;br /&gt;    private void jTextField3ActionPerformed(java.awt.event.ActionEvent evt) {                                            &lt;br /&gt;        // TODO add your handling code here:&lt;br /&gt;    }                                           &lt;br /&gt;&lt;br /&gt;    private void jButton1ActionPerformed(java.awt.event.ActionEvent evt) {                                         &lt;br /&gt;        // TODO add your handling code here:&lt;br /&gt;        String aux = jTextField1.getText();&lt;br /&gt;        String aux1="";&lt;br /&gt;        int nF = Integer.parseInt(aux);&lt;br /&gt;        aux = jTextField2.getText();&lt;br /&gt;        int nC = Integer.parseInt(aux);&lt;br /&gt;        m1 = new Matriz(nF,nC);&lt;br /&gt;        m1.leer();&lt;br /&gt;        aux1 += m1.toString();&lt;br /&gt;        aux = jTextField3.getText();&lt;br /&gt;        nF = Integer.parseInt(aux);&lt;br /&gt;        aux = jTextField4.getText();&lt;br /&gt;        nC = Integer.parseInt(aux);&lt;br /&gt;        m2 = new Matriz(nF,nC);&lt;br /&gt;        m2.leer();&lt;br /&gt;        aux1 += m2.toString();&lt;br /&gt;        jTextArea1.setText("Suma de Matrices: \n"+aux1+(m1.suma(m2)).toString());&lt;br /&gt;    }                                        &lt;br /&gt;&lt;br /&gt;    private void jButton2ActionPerformed(java.awt.event.ActionEvent evt) {                                         &lt;br /&gt;String aux = jTextField1.getText();&lt;br /&gt;        String aux1="";&lt;br /&gt;        int nF = Integer.parseInt(aux);&lt;br /&gt;        aux = jTextField2.getText();&lt;br /&gt;        int nC = Integer.parseInt(aux);&lt;br /&gt;        m1 = new Matriz(nF,nC);&lt;br /&gt;        m1.leer();&lt;br /&gt;        aux1 += m1.toString();&lt;br /&gt;        aux = jTextField3.getText();&lt;br /&gt;        nF = Integer.parseInt(aux);&lt;br /&gt;        aux = jTextField4.getText();&lt;br /&gt;        nC = Integer.parseInt(aux);&lt;br /&gt;        m2 = new Matriz(nF,nC);&lt;br /&gt;        m2.leer();&lt;br /&gt;        aux1 += m2.toString();&lt;br /&gt;        jTextArea1.setText("Resta de Matrices: \n"+aux1+(m1.resta(m2)).toString());      &lt;br /&gt;    }                                        &lt;br /&gt;&lt;br /&gt;    private void jButton3ActionPerformed(java.awt.event.ActionEvent evt) {                                         &lt;br /&gt;String aux = jTextField1.getText();&lt;br /&gt;        String aux1="";&lt;br /&gt;        int nF = Integer.parseInt(aux);&lt;br /&gt;        aux = jTextField2.getText();&lt;br /&gt;        int nC = Integer.parseInt(aux);&lt;br /&gt;        m1 = new Matriz(nF,nC);&lt;br /&gt;        m1.leer();&lt;br /&gt;        aux1 += m1.toString();&lt;br /&gt;        aux = jTextField3.getText();&lt;br /&gt;        nF = Integer.parseInt(aux);&lt;br /&gt;        aux = jTextField4.getText();&lt;br /&gt;        nC = Integer.parseInt(aux);&lt;br /&gt;        m2 = new Matriz(nF,nC);&lt;br /&gt;        m2.leer();&lt;br /&gt;        aux1 += m2.toString();&lt;br /&gt;        jTextArea1.setText("Multiplicacion de Matrices: \n"+aux1+(m1.Multiplicacion(m2)).toString());&lt;br /&gt;    }                                        &lt;br /&gt;&lt;br /&gt;    private void jButton4ActionPerformed(java.awt.event.ActionEvent evt) {                                         &lt;br /&gt;        String aux = jTextField5.getText();&lt;br /&gt;        String aux1="";&lt;br /&gt;        int nF = Integer.parseInt(aux);&lt;br /&gt;        aux = jTextField6.getText();&lt;br /&gt;        int nC = Integer.parseInt(aux);&lt;br /&gt;        m1 = new Matriz(nF,nC);&lt;br /&gt;        m1.leer();&lt;br /&gt;        aux1+= m1.toString();&lt;br /&gt;        &lt;br /&gt;        jTextArea2.setText("Transpuesta de Matrices: \n"+aux1+(m1.Transpuesta()).toString());&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;               // TODO add your handling code here:&lt;br /&gt;    }                                        &lt;br /&gt;&lt;br /&gt;    private void jButton5ActionPerformed(java.awt.event.ActionEvent evt) {                                         &lt;br /&gt;       &lt;br /&gt;        String aux = jTextField5.getText();&lt;br /&gt;int nF = Integer.parseInt(aux);&lt;br /&gt;aux = jTextField6.getText();&lt;br /&gt;int nC = Integer.parseInt(aux);&lt;br /&gt;m1= new Matriz(nF,nC);&lt;br /&gt;m1.leer();&lt;br /&gt;jTextArea2.setText("\nMATRIZ: \n"+(m1.toString())+"INVERSA DE MATRICES: \n"+(m1.Inversa().toString()));&lt;br /&gt;&lt;br /&gt;    }                                        &lt;br /&gt;&lt;br /&gt;    private void jTextField5ActionPerformed(java.awt.event.ActionEvent evt) {                                            &lt;br /&gt;        // TODO add your handling code here:&lt;br /&gt;       &lt;br /&gt;&lt;br /&gt;    }                                           &lt;br /&gt;&lt;br /&gt;    private void jButton6ActionPerformed(java.awt.event.ActionEvent evt) {&lt;br /&gt;        // TODO add your handling code here:&lt;br /&gt;    }&lt;br /&gt;&lt;br /&gt;    public Matriz m1;&lt;br /&gt;    public Matriz m2;&lt;br /&gt;    // Variables declaration - do not modify&lt;br /&gt;    private javax.swing.JButton jButton1;&lt;br /&gt;    private javax.swing.JButton jButton2;&lt;br /&gt;    private javax.swing.JButton jButton3;&lt;br /&gt;    private javax.swing.JButton jButton4;&lt;br /&gt;    private javax.swing.JButton jButton5;&lt;br /&gt;    private javax.swing.JButton jButton6;&lt;br /&gt;    private javax.swing.JLabel jLabel1;&lt;br /&gt;    private javax.swing.JLabel jLabel10;&lt;br /&gt;    private javax.swing.JLabel jLabel11;&lt;br /&gt;    private javax.swing.JLabel jLabel2;&lt;br /&gt;    private javax.swing.JLabel jLabel3;&lt;br /&gt;    private javax.swing.JLabel jLabel4;&lt;br /&gt;    private javax.swing.JLabel jLabel5;&lt;br /&gt;    private javax.swing.JLabel jLabel6;&lt;br /&gt;    private javax.swing.JLabel jLabel7;&lt;br /&gt;    private javax.swing.JLabel jLabel8;&lt;br /&gt;    private javax.swing.JLabel jLabel9;&lt;br /&gt;    private javax.swing.JPanel jPanel1;&lt;br /&gt;    private javax.swing.JScrollPane jScrollPane1;&lt;br /&gt;    private javax.swing.JScrollPane jScrollPane2;&lt;br /&gt;    private javax.swing.JTextArea jTextArea1;&lt;br /&gt;    private javax.swing.JTextArea jTextArea2;&lt;br /&gt;    private javax.swing.JTextField jTextField1;&lt;br /&gt;    private javax.swing.JTextField jTextField2;&lt;br /&gt;    private javax.swing.JTextField jTextField3;&lt;br /&gt;    private javax.swing.JTextField jTextField4;&lt;br /&gt;    private javax.swing.JTextField jTextField5;&lt;br /&gt;    private javax.swing.JTextField jTextField6;&lt;br /&gt;    // End of variables declaration&lt;br /&gt;&lt;br /&gt;}&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4083012570879898065-5808529360511525724?l=joseromero495.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://joseromero495.blogspot.com/feeds/5808529360511525724/comments/default' title='Enviar comentarios'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=4083012570879898065&amp;postID=5808529360511525724' title='0 comentarios'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4083012570879898065/posts/default/5808529360511525724'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4083012570879898065/posts/default/5808529360511525724'/><link rel='alternate' type='text/html' href='http://joseromero495.blogspot.com/2010/01/trabajo-final-ejerc-3.html' title='Trabajo Final (Ejerc. 3)'/><author><name>José Romero</name><uri>http://www.blogger.com/profile/16359757080751416618</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://4.bp.blogspot.com/_OTaCcGGC-Nw/S00gJYIfS3I/AAAAAAAAAAc/b5oOBDgK7P0/s72-c/operaciones.bmp' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4083012570879898065.post-2286116872638367616</id><published>2010-01-12T16:12:00.000-08:00</published><updated>2010-01-12T16:34:46.482-08:00</updated><title type='text'>Trabajo Final (Ejerc. 4)</title><content type='html'>&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://4.bp.blogspot.com/_OTaCcGGC-Nw/S00SqoZKhEI/AAAAAAAAAAU/vrwYFMEq-Lg/s1600-h/Velocimetro.bmp"&gt;&lt;img style="display:block; margin:0px auto 10px; text-align:center;cursor:pointer; cursor:hand;width: 400px; height: 268px;" src="http://4.bp.blogspot.com/_OTaCcGGC-Nw/S00SqoZKhEI/AAAAAAAAAAU/vrwYFMEq-Lg/s400/Velocimetro.bmp" border="0" alt="" id="BLOGGER_PHOTO_ID_5426013649658086466" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;b&gt;&lt;/b&gt;&lt;div&gt;&lt;b&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-weight: normal;"&gt;import javax.swing.*;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-weight: normal;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-weight: normal;"&gt;public class Sensor {&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-weight: normal;"&gt;    private int vel;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-weight: normal;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-weight: normal;"&gt;    public Sensor(){&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-weight: normal;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-weight: normal;"&gt;    }&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-weight: normal;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-weight: normal;"&gt;    public void setVel(int v) {&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-weight: normal;"&gt;        vel = v;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-weight: normal;"&gt;    }&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-weight: normal;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-weight: normal;"&gt;    public int getVel(){&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-weight: normal;"&gt;        return vel;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-weight: normal;"&gt;    }&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-weight: normal;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-weight: normal;"&gt;    public void leerVel(){&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-weight: normal;"&gt;        String aux;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-weight: normal;"&gt;        aux = JOptionPane.showInputDialog("Ingrese la velocidad en Km/h");&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-weight: normal;"&gt;        vel = Integer.parseInt(aux);&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-weight: normal;"&gt;    }&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-weight: normal;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-weight: normal;"&gt;    public static void main(String args[]){&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-weight: normal;"&gt;        Sensor s = new Sensor();&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-weight: normal;"&gt;        s.leerVel();&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-weight: normal;"&gt;        System.out.println("Velocidad = "+s.getVel());&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-weight: normal;"&gt;    }&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-weight: normal;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-weight: normal;"&gt;}&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-weight: normal;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-weight: normal;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;/b&gt;&lt;div&gt;&lt;b&gt;&lt;span class="Apple-style-span" style="font-weight: normal;"&gt;&lt;div&gt;import javax.swing.*;&lt;/div&gt;&lt;div&gt;import java.awt.*;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;public class Interfase2 extends JFrame{&lt;/div&gt;&lt;div&gt;public Interfase2(){&lt;/div&gt;&lt;div&gt;super("VELOCIMETRO");&lt;/div&gt;&lt;div&gt;setSize(600,400);&lt;/div&gt;&lt;div&gt;show();&lt;/div&gt;&lt;div&gt;}&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;public void paint(Graphics g){&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;super.paint(g);&lt;/div&gt;&lt;div&gt; g.setColor(Color.BLUE);&lt;/div&gt;&lt;div&gt;        g.drawRect(50, 100, 20, 280);&lt;/div&gt;&lt;div&gt;        g.setColor(Color.BLACK);&lt;/div&gt;&lt;div&gt;        g.drawString("280 Km/h", 75, 100);&lt;/div&gt;&lt;div&gt;        g.drawString("0 Km/h", 75, 380);&lt;/div&gt;&lt;div&gt;        g.drawString("Alerta", 140, 90);&lt;/div&gt;&lt;div&gt;        g.drawOval(150, 100, 20, 20);&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;g.setColor(Color.BLACK);&lt;/div&gt;&lt;div&gt;g.drawOval(400, 150, 150, 150);&lt;/div&gt;&lt;div&gt;g.setColor(Color.BLACK);&lt;/div&gt;&lt;div&gt;g.drawString("!!!Alerta!!!", 470, 90);&lt;/div&gt;&lt;div&gt;g.drawOval(470, 100, 20, 20);&lt;/div&gt;&lt;div&gt;g.setColor(Color.gray);&lt;/div&gt;&lt;div&gt;g.fillOval(400, 150, 150, 150);&lt;/div&gt;&lt;div&gt;g.setColor(Color.BLACK);{&lt;/div&gt;&lt;div&gt;        g.drawLine(300, 0, 300, 1000);&lt;/div&gt;&lt;div&gt;        g.drawString("Sensor de Velocidad Lineal",60 , 50);&lt;/div&gt;&lt;div&gt;        g.drawString("Sensor de Velocidad", 400, 50);&lt;/div&gt;&lt;div&gt;        g.drawString("PASTEL DE PORCENTAJE", 400,70);&lt;/div&gt;&lt;div&gt;        }&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;Sensor s = new Sensor();&lt;/div&gt;&lt;div&gt;s.leerVel();&lt;/div&gt;&lt;div&gt;            &lt;/div&gt;&lt;/span&gt;&lt;/b&gt;&lt;div&gt;&lt;b&gt;&lt;span class="Apple-style-span" style="font-weight: normal;"&gt;&lt;span class="Apple-style-span" style="font-family: Helvetica, Arial, Verdana, 'Trebuchet MS', sans-serif; font-size: 13px; "&gt;if(s.getVel()&gt;0&amp;amp; s.getVel()&lt;80){&lt;/span&gt;&lt;br /&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-weight: normal;"&gt;            g.setColor(Color.YELLOW);&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-weight: normal;"&gt;            g.fillArc(400, 150, 150, 150, 210, ((((s.getVel()*100)/280)*360))/100);&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-weight: normal;"&gt;            g.setColor(Color.WHITE);&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-weight: normal;"&gt;            g.drawString(((s.getVel()*100)/280)+"% de la Vel Max", 430, 220);&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-weight: normal;"&gt;            g.setColor(Color.GREEN);&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-weight: normal;"&gt;            g.fillOval(470, 100, 20, 20);&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-weight: normal;"&gt;        }&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-family: Helvetica, Arial, Verdana, 'Trebuchet MS', sans-serif; font-size: 13px; "&gt;if(s.getVel()&gt;=80&amp;amp; s.getVel()&lt;150){&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-weight: normal;"&gt;            g.setColor(Color.ORANGE);&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-weight: normal;"&gt;            g.fillArc(400, 150, 150, 150, 210, ((((s.getVel()*100)/280)*360))/100);&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-weight: normal;"&gt;            g.setColor(Color.WHITE);&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-weight: normal;"&gt;            g.drawString(((s.getVel()*100)/280)+"% de la Vel Max", 430, 220);&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-weight: normal;"&gt;            g.setColor(Color.GREEN);&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-weight: normal;"&gt;            g.fillOval(470, 100, 20, 20);&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-weight: normal;"&gt;        }&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-weight: normal;"&gt;        if(s.getVel()&gt;=150&amp;amp; s.getVel()&lt;=280){&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-weight: normal;"&gt;            g.setColor(Color.RED);&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-weight: normal;"&gt;            g.fillArc(400, 150, 150, 150, 210, ((((s.getVel()*100)/280)*360))/100);&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-weight: normal;"&gt;            g.setColor(Color.WHITE);&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-weight: normal;"&gt;            g.drawString(((s.getVel()*100)/280)+"% de la Vel Max", 430, 220);&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-weight: normal;"&gt;            g.setColor(Color.RED);&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-weight: normal;"&gt;            g.fillOval(470, 100, 20, 20);&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-weight: normal;"&gt;        }&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-weight: normal;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-weight: normal;"&gt;if (s.getVel()&gt;0&amp;amp; s.getVel()&lt;100){&lt;br /&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-weight: normal;"&gt;            g.setColor(Color.BLUE);&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-weight: normal;"&gt;            g.fillRect(50, 380-s.getVel(), 20, s.getVel());&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-weight: normal;"&gt;            g.drawString(s.getVel()+" Km/h", 75, 380-s.getVel());&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-weight: normal;"&gt;            g.setColor(Color.GREEN);&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-weight: normal;"&gt;            g.fillOval(150, 100, 20, 20);&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-weight: normal;"&gt;        }&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-weight: normal;"&gt; if(s.getVel()&gt;=100&amp;amp; s.getVel()&lt;180){&lt;br /&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-weight: normal;"&gt;            g.setColor(Color.YELLOW);&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-weight: normal;"&gt;            g.fillRect(50, 380-s.getVel(), 20, s.getVel());&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-weight: normal;"&gt;            g.drawString(s.getVel()+" Km/h", 75, 380-s.getVel());&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-weight: normal;"&gt;            g.setColor(Color.GREEN);&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-weight: normal;"&gt;            g.fillOval(150, 100, 20, 20);&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-weight: normal;"&gt;        }&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-weight: normal;"&gt;        if(s.getVel()&gt;=180&amp;amp; s.getVel()&lt;=280){&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-weight: normal;"&gt;            g.setColor(Color.RED);&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-weight: normal;"&gt;            g.fillRect(50, 380-s.getVel(), 20, s.getVel());&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-weight: normal;"&gt;            g.drawString(s.getVel()+" Km/h", 75, 380-s.getVel());&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-weight: normal;"&gt;            g.setColor(Color.RED);&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-weight: normal;"&gt;            g.fillOval(150, 100, 20, 20);&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-weight: normal;"&gt;        }&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-weight: normal;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-weight: normal;"&gt;}&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-weight: normal;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-weight: normal;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-weight: normal;"&gt;public static void main(String args[]){&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-weight: normal;"&gt;    Interfase2 vel  = new Interfase2();&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-weight: normal;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-weight: normal;"&gt;vel.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-weight: normal;"&gt;}&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-weight: normal;"&gt;}&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-weight: normal;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;/span&gt;&lt;/div&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4083012570879898065-2286116872638367616?l=joseromero495.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://joseromero495.blogspot.com/feeds/2286116872638367616/comments/default' title='Enviar comentarios'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=4083012570879898065&amp;postID=2286116872638367616' title='1 comentarios'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4083012570879898065/posts/default/2286116872638367616'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4083012570879898065/posts/default/2286116872638367616'/><link rel='alternate' type='text/html' href='http://joseromero495.blogspot.com/2010/01/trabajo-final-ejerc-4.html' title='Trabajo Final (Ejerc. 4)'/><author><name>José Romero</name><uri>http://www.blogger.com/profile/16359757080751416618</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://4.bp.blogspot.com/_OTaCcGGC-Nw/S00SqoZKhEI/AAAAAAAAAAU/vrwYFMEq-Lg/s72-c/Velocimetro.bmp' height='72' width='72'/><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4083012570879898065.post-4831029327066481504</id><published>2010-01-10T19:48:00.000-08:00</published><updated>2010-01-10T19:56:30.774-08:00</updated><title type='text'>VELOCIMETRO</title><content type='html'>&lt;div&gt;&lt;b&gt;//VELOCIMETRO&lt;/b&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;b&gt;&lt;div&gt;import javax.swing.*;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;public class Sensor {&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-weight: normal;"&gt;    private int vel;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-weight: normal;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-weight: normal;"&gt;    public Sensor(){&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-weight: normal;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-weight: normal;"&gt;    }&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-weight: normal;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-weight: normal;"&gt;    public void setVel(int v) {&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-weight: normal;"&gt;        vel = v;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-weight: normal;"&gt;    }&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-weight: normal;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-weight: normal;"&gt;    public int getVel(){&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-weight: normal;"&gt;        return vel;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-weight: normal;"&gt;    }&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-weight: normal;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-weight: normal;"&gt;    public void leerVel(){&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-weight: normal;"&gt;        String aux;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-weight: normal;"&gt;        aux = JOptionPane.showInputDialog("Ingrese la velocidad en Km/h");&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-weight: normal;"&gt;        vel = Integer.parseInt(aux);&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-weight: normal;"&gt;    }&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-weight: normal;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-weight: normal;"&gt;    public static void main(String args[]){&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-weight: normal;"&gt;        Sensor s = new Sensor();&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-weight: normal;"&gt;        s.leerVel();&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-weight: normal;"&gt;        System.out.println("Velocidad = "+s.getVel());&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-weight: normal;"&gt;    }&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-weight: normal;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-weight: normal;"&gt;}&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-weight: normal;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-weight: normal;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;/b&gt;&lt;div&gt;&lt;b&gt;&lt;span class="Apple-style-span" style="font-weight: normal;"&gt;&lt;div&gt;import javax.swing.*;&lt;/div&gt;&lt;div&gt;import java.awt.*;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;b&gt;public class Interfase2 extends JFrame{&lt;/b&gt;&lt;/div&gt;&lt;div&gt;public Interfase2(){&lt;/div&gt;&lt;div&gt;super("VELOCIMETRO");&lt;/div&gt;&lt;div&gt;setSize(400,400);&lt;/div&gt;&lt;div&gt;show();&lt;/div&gt;&lt;div&gt;}&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;public void paint(Graphics g){&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;super.paint(g);&lt;/div&gt;&lt;div&gt;g.setColor(Color.BLACK);&lt;/div&gt;&lt;div&gt;g.drawOval(100, 150, 150, 150);&lt;/div&gt;&lt;div&gt;g.setColor(Color.BLACK);&lt;/div&gt;&lt;div&gt;g.drawString("0 Km/h", 100, 300);&lt;/div&gt;&lt;div&gt;g.drawString("240 km/h", 210, 300);&lt;/div&gt;&lt;div&gt;g.drawString("!!!Alerta!!!", 170, 90);&lt;/div&gt;&lt;div&gt;g.drawOval(170, 100, 20, 20);&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;g.setColor(Color.gray);&lt;/div&gt;&lt;div&gt;g.fillOval(100, 150, 150, 150);&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;Sensor s = new Sensor();&lt;/div&gt;&lt;div&gt;s.leerVel();&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;if (s.getVel()&gt;0 &amp;amp; s.getVel()&lt;80{&lt;div&gt;            g.setColor(Color.BLUE);&lt;/div&gt;&lt;div&gt;            g.fillArc(100, 150,150,150,225,-(320-(315-s.getVel())));&lt;/div&gt;&lt;div&gt;            g.setColor(Color.WHITE);&lt;/div&gt;&lt;div&gt;            g.drawString(s.getVel()+" Km/h", 150, 220);&lt;/div&gt;&lt;div&gt;            g.setColor(Color.GREEN);&lt;/div&gt;&lt;div&gt;            g.fillOval(170, 100, 20, 20);&lt;/div&gt;&lt;div&gt;        }&lt;/div&gt;&lt;div&gt;        if(s.getVel()&gt;=80 &amp;amp; s.getVel()&lt;150){&lt;/div&gt;&lt;div&gt;            g.setColor(Color.YELLOW);&lt;/div&gt;&lt;div&gt;            g.fillArc(100, 150,150,150,225,-(320-(315-s.getVel())));&lt;/div&gt;&lt;div&gt;             g.setColor(Color.WHITE);&lt;/div&gt;&lt;div&gt;            g.drawString(s.getVel()+" Km/h",150, 220);&lt;/div&gt;&lt;div&gt;            g.setColor(Color.GREEN);&lt;/div&gt;&lt;div&gt;            g.fillOval(170, 100, 20, 20);&lt;/div&gt;&lt;div&gt;        }&lt;/div&gt;&lt;div&gt;        if(s.getVel()&gt;=150 &amp;amp; s.getVel()&lt;=240){&lt;/div&gt;&lt;div&gt;            g.setColor(Color.RED);&lt;/div&gt;&lt;div&gt;            g.fillArc(100, 150,150,150,225,-(320-(315-s.getVel())));&lt;/div&gt;&lt;div&gt;             g.setColor(Color.WHITE);&lt;/div&gt;&lt;div&gt;            g.drawString(s.getVel()+" Km/h", 150,220);&lt;/div&gt;&lt;div&gt;            g.setColor(Color.RED);&lt;/div&gt;&lt;div&gt;            g.fillOval(170, 100, 20, 20);&lt;/div&gt;&lt;div&gt;        }&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;}&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;public static void main(String args[]){&lt;/div&gt;&lt;div&gt;    Interfase2 vel  = new Interfase2();&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;vel.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);&lt;/div&gt;&lt;div&gt;}&lt;/div&gt;&lt;div&gt;}&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4083012570879898065-4831029327066481504?l=joseromero495.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://joseromero495.blogspot.com/feeds/4831029327066481504/comments/default' title='Enviar comentarios'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=4083012570879898065&amp;postID=4831029327066481504' title='5 comentarios'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4083012570879898065/posts/default/4831029327066481504'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4083012570879898065/posts/default/4831029327066481504'/><link rel='alternate' type='text/html' href='http://joseromero495.blogspot.com/2010/01/velocimetro.html' title='VELOCIMETRO'/><author><name>José Romero</name><uri>http://www.blogger.com/profile/16359757080751416618</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>5</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4083012570879898065.post-4028213846946672769</id><published>2009-12-13T16:36:00.000-08:00</published><updated>2009-12-13T16:38:51.354-08:00</updated><title type='text'>CALCULADORA</title><content type='html'>&lt;b&gt;public class Operaciones {&lt;/b&gt;&lt;br /&gt;   static double resultado;&lt;br /&gt;   public Operaciones(){&lt;br /&gt;       resultado = 0;&lt;br /&gt;   }&lt;br /&gt;&lt;br /&gt;   public static double seno(double x){&lt;br /&gt;       resultado = Math.sin(x);&lt;br /&gt;       return resultado;&lt;br /&gt;   }&lt;br /&gt;&lt;br /&gt;   public static double coseno(double x){&lt;br /&gt;       resultado = Math.cos(x);&lt;br /&gt;       return resultado;&lt;br /&gt;   }&lt;br /&gt;&lt;br /&gt;   public static double tangente(double x){&lt;br /&gt;       resultado = Math.tan(x);&lt;br /&gt;       return resultado;&lt;br /&gt;   }&lt;br /&gt;&lt;br /&gt;    public static double logaritmo(double x){&lt;br /&gt;       resultado = Math.log(x);&lt;br /&gt;       return resultado;&lt;br /&gt;   }&lt;br /&gt;&lt;br /&gt;   public static double raiz(double x){&lt;br /&gt;       if(x&gt;=0){&lt;br /&gt;           resultado = Math.sqrt(x);&lt;br /&gt;       }else{&lt;br /&gt;         System.out.println("Solo valores postivos");&lt;br /&gt;         resultado = 0;&lt;br /&gt;       }&lt;br /&gt;       return resultado;&lt;br /&gt;&lt;br /&gt;   }&lt;br /&gt;&lt;br /&gt;    public static double suma(double x, double y){&lt;br /&gt;&lt;br /&gt;        resultado = x+y;&lt;br /&gt;&lt;br /&gt;        return resultado;&lt;br /&gt;   }&lt;br /&gt;&lt;br /&gt;    public static double resta(double x, double y){&lt;br /&gt;&lt;br /&gt;        resultado = x-y;&lt;br /&gt;&lt;br /&gt;        return resultado;&lt;br /&gt;   }&lt;br /&gt;    public static double multiplicacion(double x, double y){&lt;br /&gt;&lt;br /&gt;        resultado = x*y;&lt;br /&gt;&lt;br /&gt;        return resultado;&lt;br /&gt;   }&lt;br /&gt;&lt;br /&gt;    public static double division(double x, double y){&lt;br /&gt;&lt;br /&gt;        resultado = x/y;&lt;br /&gt;&lt;br /&gt;        return resultado;&lt;br /&gt;   }&lt;br /&gt;&lt;br /&gt;   public static void main(String args[]){&lt;br /&gt;       double y;&lt;br /&gt;       //Operaciones p = new Operaciones();&lt;br /&gt;       y = seno(3.141516);&lt;br /&gt;       System.out.println("El seno "+y);&lt;br /&gt;   }&lt;br /&gt;&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;b&gt;public class MisOperaciones extends javax.swing.JApplet {&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;   /** Initializes the applet MisOperaciones */&lt;br /&gt;   public void init() {&lt;br /&gt;       try {&lt;br /&gt;           java.awt.EventQueue.invokeAndWait(new Runnable() {&lt;br /&gt;               public void run() {&lt;br /&gt;                   initComponents();&lt;br /&gt;               }&lt;br /&gt;           });&lt;br /&gt;       } catch (Exception ex) {&lt;br /&gt;           ex.printStackTrace();&lt;br /&gt;       }&lt;br /&gt;   }&lt;br /&gt;&lt;br /&gt;   /** This method is called from within the init() method to&lt;br /&gt;    * initialize the form.&lt;br /&gt;    * WARNING: Do NOT modify this code. The content of this method is&lt;br /&gt;    * always regenerated by the Form Editor.&lt;br /&gt;    */&lt;br /&gt;   @SuppressWarnings("unchecked")&lt;br /&gt;   // &lt;editor-fold defaultstate="collapsed" desc="Generated Code"&gt;&lt;br /&gt;   private void initComponents() {&lt;br /&gt;&lt;br /&gt;       jPanel1 = new javax.swing.JPanel();&lt;br /&gt;       jTextField1 = new javax.swing.JTextField();&lt;br /&gt;       jLabel1 = new javax.swing.JLabel();&lt;br /&gt;       jButton1 = new javax.swing.JButton();&lt;br /&gt;       jButton2 = new javax.swing.JButton();&lt;br /&gt;       jButton3 = new javax.swing.JButton();&lt;br /&gt;       jButton4 = new javax.swing.JButton();&lt;br /&gt;       jButton5 = new javax.swing.JButton();&lt;br /&gt;       jButton6 = new javax.swing.JButton();&lt;br /&gt;       jButton7 = new javax.swing.JButton();&lt;br /&gt;       jButton8 = new javax.swing.JButton();&lt;br /&gt;       jButton9 = new javax.swing.JButton();&lt;br /&gt;       jButton10 = new javax.swing.JButton();&lt;br /&gt;       jButton11 = new javax.swing.JButton();&lt;br /&gt;       jButton12 = new javax.swing.JButton();&lt;br /&gt;       jButton13 = new javax.swing.JButton();&lt;br /&gt;       jButton14 = new javax.swing.JButton();&lt;br /&gt;       jButton15 = new javax.swing.JButton();&lt;br /&gt;       jButton16 = new javax.swing.JButton();&lt;br /&gt;       jLabel2 = new javax.swing.JLabel();&lt;br /&gt;       jButton17 = new javax.swing.JButton();&lt;br /&gt;       jButton18 = new javax.swing.JButton();&lt;br /&gt;       jButton19 = new javax.swing.JButton();&lt;br /&gt;       jButton20 = new javax.swing.JButton();&lt;br /&gt;       jTextField2 = new javax.swing.JTextField();&lt;br /&gt;&lt;br /&gt;       jTextField1.addActionListener(new java.awt.event.ActionListener() {&lt;br /&gt;           public void actionPerformed(java.awt.event.ActionEvent evt) {&lt;br /&gt;               jTextField1ActionPerformed(evt);&lt;br /&gt;           }&lt;br /&gt;       });&lt;br /&gt;&lt;br /&gt;       jLabel1.setText("Variable");&lt;br /&gt;&lt;br /&gt;       jButton1.setText("seno");&lt;br /&gt;       jButton1.addActionListener(new java.awt.event.ActionListener() {&lt;br /&gt;           public void actionPerformed(java.awt.event.ActionEvent evt) {&lt;br /&gt;               jButton1ActionPerformed(evt);&lt;br /&gt;           }&lt;br /&gt;       });&lt;br /&gt;&lt;br /&gt;       jButton2.setText("coseno");&lt;br /&gt;       jButton2.addActionListener(new java.awt.event.ActionListener() {&lt;br /&gt;           public void actionPerformed(java.awt.event.ActionEvent evt) {&lt;br /&gt;               jButton2ActionPerformed(evt);&lt;br /&gt;           }&lt;br /&gt;       });&lt;br /&gt;&lt;br /&gt;       jButton3.setText("tangente");&lt;br /&gt;       jButton3.addActionListener(new java.awt.event.ActionListener() {&lt;br /&gt;           public void actionPerformed(java.awt.event.ActionEvent evt) {&lt;br /&gt;               jButton3ActionPerformed(evt);&lt;br /&gt;           }&lt;br /&gt;       });&lt;br /&gt;&lt;br /&gt;       jButton4.setText("Raiz");&lt;br /&gt;       jButton4.addActionListener(new java.awt.event.ActionListener() {&lt;br /&gt;           public void actionPerformed(java.awt.event.ActionEvent evt) {&lt;br /&gt;               jButton4ActionPerformed(evt);&lt;br /&gt;           }&lt;br /&gt;       });&lt;br /&gt;&lt;br /&gt;       jButton5.setText("1");&lt;br /&gt;       jButton5.addActionListener(new java.awt.event.ActionListener() {&lt;br /&gt;           public void actionPerformed(java.awt.event.ActionEvent evt) {&lt;br /&gt;               jButton5ActionPerformed(evt);&lt;br /&gt;           }&lt;br /&gt;       });&lt;br /&gt;&lt;br /&gt;       jButton6.setText("2");&lt;br /&gt;       jButton6.addActionListener(new java.awt.event.ActionListener() {&lt;br /&gt;           public void actionPerformed(java.awt.event.ActionEvent evt) {&lt;br /&gt;               jButton6ActionPerformed(evt);&lt;br /&gt;           }&lt;br /&gt;       });&lt;br /&gt;&lt;br /&gt;       jButton7.setText("3");&lt;br /&gt;       jButton7.addActionListener(new java.awt.event.ActionListener() {&lt;br /&gt;           public void actionPerformed(java.awt.event.ActionEvent evt) {&lt;br /&gt;               jButton7ActionPerformed(evt);&lt;br /&gt;           }&lt;br /&gt;       });&lt;br /&gt;&lt;br /&gt;       jButton8.setText("4");&lt;br /&gt;       jButton8.addActionListener(new java.awt.event.ActionListener() {&lt;br /&gt;           public void actionPerformed(java.awt.event.ActionEvent evt) {&lt;br /&gt;               jButton8ActionPerformed(evt);&lt;br /&gt;           }&lt;br /&gt;       });&lt;br /&gt;&lt;br /&gt;       jButton9.setText("5");&lt;br /&gt;       jButton9.addActionListener(new java.awt.event.ActionListener() {&lt;br /&gt;           public void actionPerformed(java.awt.event.ActionEvent evt) {&lt;br /&gt;               jButton9ActionPerformed(evt);&lt;br /&gt;           }&lt;br /&gt;       });&lt;br /&gt;&lt;br /&gt;       jButton10.setText("6");&lt;br /&gt;       jButton10.addActionListener(new java.awt.event.ActionListener() {&lt;br /&gt;           public void actionPerformed(java.awt.event.ActionEvent evt) {&lt;br /&gt;               jButton10ActionPerformed(evt);&lt;br /&gt;           }&lt;br /&gt;       });&lt;br /&gt;&lt;br /&gt;       jButton11.setText("7");&lt;br /&gt;       jButton11.addActionListener(new java.awt.event.ActionListener() {&lt;br /&gt;           public void actionPerformed(java.awt.event.ActionEvent evt) {&lt;br /&gt;               jButton11ActionPerformed(evt);&lt;br /&gt;           }&lt;br /&gt;       });&lt;br /&gt;&lt;br /&gt;       jButton12.setText("8");&lt;br /&gt;       jButton12.addActionListener(new java.awt.event.ActionListener() {&lt;br /&gt;           public void actionPerformed(java.awt.event.ActionEvent evt) {&lt;br /&gt;               jButton12ActionPerformed(evt);&lt;br /&gt;           }&lt;br /&gt;       });&lt;br /&gt;&lt;br /&gt;       jButton13.setText("9");&lt;br /&gt;       jButton13.addActionListener(new java.awt.event.ActionListener() {&lt;br /&gt;           public void actionPerformed(java.awt.event.ActionEvent evt) {&lt;br /&gt;               jButton13ActionPerformed(evt);&lt;br /&gt;           }&lt;br /&gt;       });&lt;br /&gt;&lt;br /&gt;       jButton14.setText("+");&lt;br /&gt;       jButton14.addActionListener(new java.awt.event.ActionListener() {&lt;br /&gt;           public void actionPerformed(java.awt.event.ActionEvent evt) {&lt;br /&gt;               jButton14ActionPerformed(evt);&lt;br /&gt;           }&lt;br /&gt;       });&lt;br /&gt;&lt;br /&gt;       jButton15.setText("0");&lt;br /&gt;       jButton15.addActionListener(new java.awt.event.ActionListener() {&lt;br /&gt;           public void actionPerformed(java.awt.event.ActionEvent evt) {&lt;br /&gt;               jButton15ActionPerformed(evt);&lt;br /&gt;           }&lt;br /&gt;       });&lt;br /&gt;&lt;br /&gt;       jButton16.setText(".");&lt;br /&gt;       jButton16.addActionListener(new java.awt.event.ActionListener() {&lt;br /&gt;           public void actionPerformed(java.awt.event.ActionEvent evt) {&lt;br /&gt;               jButton16ActionPerformed(evt);&lt;br /&gt;           }&lt;br /&gt;       });&lt;br /&gt;&lt;br /&gt;       jLabel2.setText("Resultados");&lt;br /&gt;&lt;br /&gt;       jButton17.setText("logaritmo");&lt;br /&gt;       jButton17.addActionListener(new java.awt.event.ActionListener() {&lt;br /&gt;           public void actionPerformed(java.awt.event.ActionEvent evt) {&lt;br /&gt;               jButton17ActionPerformed(evt);&lt;br /&gt;           }&lt;br /&gt;       });&lt;br /&gt;&lt;br /&gt;       jButton18.setText("-");&lt;br /&gt;       jButton18.addActionListener(new java.awt.event.ActionListener() {&lt;br /&gt;           public void actionPerformed(java.awt.event.ActionEvent evt) {&lt;br /&gt;               jButton18ActionPerformed(evt);&lt;br /&gt;           }&lt;br /&gt;       });&lt;br /&gt;&lt;br /&gt;       jButton19.setText("*");&lt;br /&gt;       jButton19.addActionListener(new java.awt.event.ActionListener() {&lt;br /&gt;           public void actionPerformed(java.awt.event.ActionEvent evt) {&lt;br /&gt;               jButton19ActionPerformed(evt);&lt;br /&gt;           }&lt;br /&gt;       });&lt;br /&gt;&lt;br /&gt;       jButton20.setText("/");&lt;br /&gt;       jButton20.addActionListener(new java.awt.event.ActionListener() {&lt;br /&gt;           public void actionPerformed(java.awt.event.ActionEvent evt) {&lt;br /&gt;               jButton20ActionPerformed(evt);&lt;br /&gt;           }&lt;br /&gt;       });&lt;br /&gt;&lt;br /&gt;       javax.swing.GroupLayout jPanel1Layout = new javax.swing.GroupLayout(jPanel1);&lt;br /&gt;       jPanel1.setLayout(jPanel1Layout);&lt;br /&gt;       jPanel1Layout.setHorizontalGroup(&lt;br /&gt;           jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)&lt;br /&gt;           .addGroup(jPanel1Layout.createSequentialGroup()&lt;br /&gt;               .addContainerGap()&lt;br /&gt;               .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)&lt;br /&gt;                   .addGroup(jPanel1Layout.createSequentialGroup()&lt;br /&gt;                       .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)&lt;br /&gt;                           .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING, false)&lt;br /&gt;                               .addComponent(jButton4, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)&lt;br /&gt;                               .addComponent(jButton1, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)&lt;br /&gt;                               .addComponent(jButton2, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)&lt;br /&gt;                               .addComponent(jButton3, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))&lt;br /&gt;                           .addGroup(jPanel1Layout.createSequentialGroup()&lt;br /&gt;                               .addComponent(jLabel1)&lt;br /&gt;                               .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)&lt;br /&gt;                               .addComponent(jTextField1, javax.swing.GroupLayout.PREFERRED_SIZE, 49, javax.swing.GroupLayout.PREFERRED_SIZE)))&lt;br /&gt;                       .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)&lt;br /&gt;                       .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)&lt;br /&gt;                           .addGroup(jPanel1Layout.createSequentialGroup()&lt;br /&gt;                               .addComponent(jButton8)&lt;br /&gt;                               .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)&lt;br /&gt;                               .addComponent(jButton9)&lt;br /&gt;                               .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)&lt;br /&gt;                               .addComponent(jButton10)&lt;br /&gt;                               .addGap(18, 18, 18)&lt;br /&gt;                               .addComponent(jButton18))&lt;br /&gt;                           .addGroup(jPanel1Layout.createSequentialGroup()&lt;br /&gt;                               .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)&lt;br /&gt;                                   .addComponent(jButton14)&lt;br /&gt;                                   .addComponent(jButton11))&lt;br /&gt;                               .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)&lt;br /&gt;                               .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)&lt;br /&gt;                                   .addGroup(jPanel1Layout.createSequentialGroup()&lt;br /&gt;                                       .addComponent(jButton12)&lt;br /&gt;                                       .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)&lt;br /&gt;                                       .addComponent(jButton13)&lt;br /&gt;                                       .addGap(18, 18, 18)&lt;br /&gt;                                       .addComponent(jButton19))&lt;br /&gt;                                   .addGroup(jPanel1Layout.createSequentialGroup()&lt;br /&gt;                                       .addComponent(jButton15)&lt;br /&gt;                                       .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)&lt;br /&gt;                                       .addComponent(jButton16)&lt;br /&gt;                                       .addGap(18, 18, 18)&lt;br /&gt;                                       .addComponent(jButton20))))&lt;br /&gt;                           .addGroup(jPanel1Layout.createSequentialGroup()&lt;br /&gt;                               .addComponent(jButton5)&lt;br /&gt;                               .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)&lt;br /&gt;                               .addComponent(jButton6)&lt;br /&gt;                               .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)&lt;br /&gt;                               .addComponent(jButton7)&lt;br /&gt;                               .addGap(18, 18, 18)&lt;br /&gt;                               .addComponent(jButton17))&lt;br /&gt;                           .addComponent(jTextField2, javax.swing.GroupLayout.PREFERRED_SIZE, 48, javax.swing.GroupLayout.PREFERRED_SIZE))&lt;br /&gt;                       .addContainerGap(127, Short.MAX_VALUE))&lt;br /&gt;                   .addGroup(jPanel1Layout.createSequentialGroup()&lt;br /&gt;                       .addComponent(jLabel2, javax.swing.GroupLayout.DEFAULT_SIZE, 181, Short.MAX_VALUE)&lt;br /&gt;                       .addGap(273, 273, 273))))&lt;br /&gt;       );&lt;br /&gt;       jPanel1Layout.setVerticalGroup(&lt;br /&gt;           jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)&lt;br /&gt;           .addGroup(jPanel1Layout.createSequentialGroup()&lt;br /&gt;               .addContainerGap()&lt;br /&gt;               .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)&lt;br /&gt;                   .addComponent(jLabel1)&lt;br /&gt;                   .addComponent(jTextField1, javax.swing.GroupLayout.PREFERRED_SIZE, 20, javax.swing.GroupLayout.PREFERRED_SIZE)&lt;br /&gt;                   .addComponent(jTextField2, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))&lt;br /&gt;               .addGap(26, 26, 26)&lt;br /&gt;               .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)&lt;br /&gt;                   .addComponent(jButton1)&lt;br /&gt;                   .addComponent(jButton5)&lt;br /&gt;                   .addComponent(jButton6)&lt;br /&gt;                   .addComponent(jButton7)&lt;br /&gt;                   .addComponent(jButton17))&lt;br /&gt;               .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)&lt;br /&gt;               .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)&lt;br /&gt;                   .addComponent(jButton2)&lt;br /&gt;                   .addComponent(jButton8)&lt;br /&gt;                   .addComponent(jButton9)&lt;br /&gt;                   .addComponent(jButton10)&lt;br /&gt;                   .addComponent(jButton18))&lt;br /&gt;               .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)&lt;br /&gt;               .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)&lt;br /&gt;                   .addComponent(jButton3)&lt;br /&gt;                   .addComponent(jButton11)&lt;br /&gt;                   .addComponent(jButton12)&lt;br /&gt;                   .addComponent(jButton13)&lt;br /&gt;                   .addComponent(jButton19))&lt;br /&gt;               .addGap(18, 18, 18)&lt;br /&gt;               .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)&lt;br /&gt;                   .addComponent(jButton4)&lt;br /&gt;                   .addComponent(jButton14)&lt;br /&gt;                   .addComponent(jButton15)&lt;br /&gt;                   .addComponent(jButton16)&lt;br /&gt;                   .addComponent(jButton20))&lt;br /&gt;               .addGap(18, 18, 18)&lt;br /&gt;               .addComponent(jLabel2, javax.swing.GroupLayout.PREFERRED_SIZE, 42, javax.swing.GroupLayout.PREFERRED_SIZE)&lt;br /&gt;               .addContainerGap(51, Short.MAX_VALUE))&lt;br /&gt;       );&lt;br /&gt;&lt;br /&gt;       javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());&lt;br /&gt;       getContentPane().setLayout(layout);&lt;br /&gt;       layout.setHorizontalGroup(&lt;br /&gt;           layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)&lt;br /&gt;           .addComponent(jPanel1, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)&lt;br /&gt;       );&lt;br /&gt;       layout.setVerticalGroup(&lt;br /&gt;           layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)&lt;br /&gt;           .addComponent(jPanel1, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)&lt;br /&gt;       );&lt;br /&gt;   }// &lt;/editor-fold&gt;&lt;br /&gt;&lt;br /&gt;   private void jButton5ActionPerformed(java.awt.event.ActionEvent evt) {                                        &lt;br /&gt;       // TODO add your handling code here&lt;br /&gt;       aux += 1;&lt;br /&gt;       jTextField1.setText(aux);&lt;br /&gt;   }                                       &lt;br /&gt;&lt;br /&gt;   private void jButton6ActionPerformed(java.awt.event.ActionEvent evt) {                                        &lt;br /&gt;       // TODO add your handling code here:&lt;br /&gt;        aux += 2;&lt;br /&gt;       jTextField1.setText(aux);&lt;br /&gt;   }                                       &lt;br /&gt;&lt;br /&gt;   private void jButton7ActionPerformed(java.awt.event.ActionEvent evt) {                                        &lt;br /&gt;       // TODO add your handling code here:&lt;br /&gt;        aux += 3;&lt;br /&gt;       jTextField1.setText(aux);&lt;br /&gt;   }                                       &lt;br /&gt;&lt;br /&gt;   private void jButton16ActionPerformed(java.awt.event.ActionEvent evt) {                                         &lt;br /&gt;       // TODO add your handling code here:&lt;br /&gt;       aux += ".";&lt;br /&gt;       jTextField1.setText(aux);&lt;br /&gt;   }                                        &lt;br /&gt;&lt;br /&gt;   private void jButton1ActionPerformed(java.awt.event.ActionEvent evt) {                                        &lt;br /&gt;       // TODO add your handling code here:&lt;br /&gt;       String aux1 = jTextField1.getText();&lt;br /&gt;       double r = Double.parseDouble(aux1);&lt;br /&gt;       r = Operaciones.seno(r);&lt;br /&gt;       jLabel2.setText("El seno de "+aux1+ " es :\n "+r);&lt;br /&gt;       aux = "";&lt;br /&gt;       jTextField1.setText(aux);&lt;br /&gt;   }                                       &lt;br /&gt;&lt;br /&gt;   private void jButton8ActionPerformed(java.awt.event.ActionEvent evt) {                                        &lt;br /&gt;       aux += 4;&lt;br /&gt;       jTextField1.setText(aux);        // TODO add your handling code here:&lt;br /&gt;   }                                       &lt;br /&gt;&lt;br /&gt;   private void jButton9ActionPerformed(java.awt.event.ActionEvent evt) {                                        &lt;br /&gt;    aux += 5;&lt;br /&gt;    jTextField1.setText(aux);        // TODO add your handling code here:&lt;br /&gt;   }                                       &lt;br /&gt;&lt;br /&gt;   private void jButton10ActionPerformed(java.awt.event.ActionEvent evt) {                                         &lt;br /&gt;       // TODO add your handling code here:&lt;br /&gt;        aux += 6;&lt;br /&gt;       jTextField1.setText(aux);&lt;br /&gt;   }                                        &lt;br /&gt;&lt;br /&gt;   private void jButton11ActionPerformed(java.awt.event.ActionEvent evt) {                                         &lt;br /&gt;       // TODO add your handling code here:&lt;br /&gt;        aux += 7;&lt;br /&gt;       jTextField1.setText(aux);&lt;br /&gt;   }                                        &lt;br /&gt;&lt;br /&gt;   private void jButton12ActionPerformed(java.awt.event.ActionEvent evt) {                                         &lt;br /&gt;       // TODO add your handling code here:&lt;br /&gt;        aux += 8;&lt;br /&gt;       jTextField1.setText(aux);&lt;br /&gt;   }                                        &lt;br /&gt;&lt;br /&gt;   private void jButton13ActionPerformed(java.awt.event.ActionEvent evt) {                                         &lt;br /&gt;       // TODO add your handling code here:&lt;br /&gt;        aux += 9;&lt;br /&gt;       jTextField1.setText(aux);&lt;br /&gt;   }                                        &lt;br /&gt;&lt;br /&gt;   private void jButton15ActionPerformed(java.awt.event.ActionEvent evt) {                                         &lt;br /&gt;       // TODO add your handling code here:&lt;br /&gt;       aux += 0;&lt;br /&gt;       jTextField1.setText(aux);&lt;br /&gt;   }                                        &lt;br /&gt;&lt;br /&gt;   private void jButton2ActionPerformed(java.awt.event.ActionEvent evt) {                                        &lt;br /&gt;       // TODO add your handling code here:&lt;br /&gt;       String aux1 = jTextField1.getText();&lt;br /&gt;       double r = Double.parseDouble(aux1);&lt;br /&gt;       r = Operaciones.coseno(r);&lt;br /&gt;       jLabel2.setText("El coseno de "+aux1+ " es :\n "+r);&lt;br /&gt;       aux = "";&lt;br /&gt;       jTextField1.setText(aux);&lt;br /&gt;   }                                       &lt;br /&gt;&lt;br /&gt;   private void jButton3ActionPerformed(java.awt.event.ActionEvent evt) {                                        &lt;br /&gt;       // TODO add your handling code here:&lt;br /&gt;        String aux1 = jTextField1.getText();&lt;br /&gt;       double r = Double.parseDouble(aux1);&lt;br /&gt;       r = Operaciones.tangente(r);&lt;br /&gt;       jLabel2.setText("la tangente de "+aux1+ " es :\n "+r);&lt;br /&gt;       aux = "";&lt;br /&gt;       jTextField1.setText(aux);&lt;br /&gt;   }                                       &lt;br /&gt;&lt;br /&gt;   private void jButton4ActionPerformed(java.awt.event.ActionEvent evt) {                                        &lt;br /&gt;       // TODO add your handling code here:&lt;br /&gt;        String aux1 = jTextField1.getText();&lt;br /&gt;       double r = Double.parseDouble(aux1);&lt;br /&gt;       r = Operaciones.raiz(r);&lt;br /&gt;       jLabel2.setText("La raiz de "+aux1+ " es :\n "+r);&lt;br /&gt;       aux = "";&lt;br /&gt;       jTextField1.setText(aux);&lt;br /&gt;   }                                       &lt;br /&gt;&lt;br /&gt;   private void jButton14ActionPerformed(java.awt.event.ActionEvent evt) {                                         &lt;br /&gt;       // TODO add your handling code here:&lt;br /&gt;       String aux1 = jTextField1.getText();&lt;br /&gt;       double y = Double.parseDouble(aux1);&lt;br /&gt;       String aux2 = jTextField2.getText();&lt;br /&gt;       double x = Double.parseDouble(aux2);&lt;br /&gt;&lt;br /&gt;      // double r = Double.parseDouble(aux1, aux2);&lt;br /&gt;      // r = y.Operaciones.suma(x);&lt;br /&gt;       jLabel2.setText("Suma =  es :\n "+(Operaciones.suma(x, y)));&lt;br /&gt;       aux = "";&lt;br /&gt;       jTextField1.setText(aux);&lt;br /&gt;       aux = "";&lt;br /&gt;       jTextField2.setText(aux);&lt;br /&gt;&lt;br /&gt;       &lt;br /&gt;   }                                        &lt;br /&gt;&lt;br /&gt;   private void jButton17ActionPerformed(java.awt.event.ActionEvent evt) {                                         &lt;br /&gt;       // TODO add your handling code here:&lt;br /&gt;       String aux1 = jTextField1.getText();&lt;br /&gt;       double r = Double.parseDouble(aux1);&lt;br /&gt;       r = Operaciones.logaritmo(r);&lt;br /&gt;       jLabel2.setText("El logaritmo de "+aux1+ " es :\n "+r);&lt;br /&gt;       aux = "";&lt;br /&gt;       jTextField1.setText(aux);&lt;br /&gt;   }                                        &lt;br /&gt;&lt;br /&gt;   private void jTextField1ActionPerformed(java.awt.event.ActionEvent evt) {&lt;br /&gt;       // TODO add your handling code here:&lt;br /&gt;   }&lt;br /&gt;&lt;br /&gt;   private void jButton18ActionPerformed(java.awt.event.ActionEvent evt) {&lt;br /&gt;       // TODO add your handling code here:&lt;br /&gt;&lt;br /&gt;       String aux1 = jTextField1.getText();&lt;br /&gt;       double y = Double.parseDouble(aux1);&lt;br /&gt;       String aux2 = jTextField2.getText();&lt;br /&gt;       double x = Double.parseDouble(aux2);&lt;br /&gt;&lt;br /&gt;      // double r = Double.parseDouble(aux1, aux2);&lt;br /&gt;      // r = y.Operaciones.suma(x);&lt;br /&gt;       jLabel2.setText("Resta =  es :\n "+(Operaciones.resta(x, y)));&lt;br /&gt;       aux = "";&lt;br /&gt;       jTextField1.setText(aux);&lt;br /&gt;       aux = "";&lt;br /&gt;       jTextField2.setText(aux);&lt;br /&gt;   }&lt;br /&gt;&lt;br /&gt;   private void jButton19ActionPerformed(java.awt.event.ActionEvent evt) {&lt;br /&gt;       // TODO add your handling code here:&lt;br /&gt;       String aux1 = jTextField1.getText();&lt;br /&gt;       double y = Double.parseDouble(aux1);&lt;br /&gt;       String aux2 = jTextField2.getText();&lt;br /&gt;       double x = Double.parseDouble(aux2);&lt;br /&gt;&lt;br /&gt;      // double r = Double.parseDouble(aux1, aux2);&lt;br /&gt;      // r = y.Operaciones.suma(x);&lt;br /&gt;       jLabel2.setText("Multiplicacion =  es :\n "+(Operaciones.multiplicacion(x,y)));&lt;br /&gt;       aux = "";&lt;br /&gt;       jTextField1.setText(aux);&lt;br /&gt;       aux = "";&lt;br /&gt;       jTextField2.setText(aux);&lt;br /&gt;   }&lt;br /&gt;&lt;br /&gt;   private void jButton20ActionPerformed(java.awt.event.ActionEvent evt) {&lt;br /&gt;       // TODO add your handling code here:&lt;br /&gt;       String aux1 = jTextField1.getText();&lt;br /&gt;       double y = Double.parseDouble(aux1);&lt;br /&gt;       String aux2 = jTextField2.getText();&lt;br /&gt;       double x = Double.parseDouble(aux2);&lt;br /&gt;&lt;br /&gt;      // double r = Double.parseDouble(aux1, aux2);&lt;br /&gt;      // r = y.Operaciones.suma(x);&lt;br /&gt;       jLabel2.setText("division =  es :\n "+(Operaciones.division(x, y)));&lt;br /&gt;       aux = "";&lt;br /&gt;       jTextField1.setText(aux);&lt;br /&gt;       aux = "";&lt;br /&gt;       jTextField2.setText(aux);&lt;br /&gt;   }&lt;br /&gt;public String aux="";&lt;br /&gt;public String aux3;&lt;br /&gt;&lt;br /&gt;   // Variables declaration - do not modify&lt;br /&gt;   private javax.swing.JButton jButton1;&lt;br /&gt;   private javax.swing.JButton jButton10;&lt;br /&gt;   private javax.swing.JButton jButton11;&lt;br /&gt;   private javax.swing.JButton jButton12;&lt;br /&gt;   private javax.swing.JButton jButton13;&lt;br /&gt;   private javax.swing.JButton jButton14;&lt;br /&gt;   private javax.swing.JButton jButton15;&lt;br /&gt;   private javax.swing.JButton jButton16;&lt;br /&gt;   private javax.swing.JButton jButton17;&lt;br /&gt;   private javax.swing.JButton jButton18;&lt;br /&gt;   private javax.swing.JButton jButton19;&lt;br /&gt;   private javax.swing.JButton jButton2;&lt;br /&gt;   private javax.swing.JButton jButton20;&lt;br /&gt;   private javax.swing.JButton jButton3;&lt;br /&gt;   private javax.swing.JButton jButton4;&lt;br /&gt;   private javax.swing.JButton jButton5;&lt;br /&gt;   private javax.swing.JButton jButton6;&lt;br /&gt;   private javax.swing.JButton jButton7;&lt;br /&gt;   private javax.swing.JButton jButton8;&lt;br /&gt;   private javax.swing.JButton jButton9;&lt;br /&gt;   private javax.swing.JLabel jLabel1;&lt;br /&gt;   private javax.swing.JLabel jLabel2;&lt;br /&gt;   private javax.swing.JPanel jPanel1;&lt;br /&gt;   private javax.swing.JTextField jTextField1;&lt;br /&gt;   private javax.swing.JTextField jTextField2;&lt;br /&gt;   // End of variables declaration&lt;br /&gt;&lt;br /&gt;}&lt;br /&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4083012570879898065-4028213846946672769?l=joseromero495.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://joseromero495.blogspot.com/feeds/4028213846946672769/comments/default' title='Enviar comentarios'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=4083012570879898065&amp;postID=4028213846946672769' title='4 comentarios'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4083012570879898065/posts/default/4028213846946672769'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4083012570879898065/posts/default/4028213846946672769'/><link rel='alternate' type='text/html' href='http://joseromero495.blogspot.com/2009/12/calculadora.html' title='CALCULADORA'/><author><name>José Romero</name><uri>http://www.blogger.com/profile/16359757080751416618</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>4</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4083012570879898065.post-6076353155401018170</id><published>2009-12-06T13:57:00.000-08:00</published><updated>2010-01-12T05:17:40.059-08:00</updated><title type='text'>Resta,Multiplicacion,Transpuesta...Con botones</title><content type='html'>&lt;strong&gt;//MATRIZ&lt;/strong&gt;&lt;br /&gt;&lt;strong&gt;import javax.swing.JOptionPane;&lt;br /&gt;import java.text.DecimalFormat;&lt;/strong&gt;public class Matriz {&lt;br /&gt;public int numeroFilas;&lt;br /&gt;public int numeroColumnas;&lt;br /&gt;public double [][]matriz;&lt;br /&gt;&lt;br /&gt;public Matriz(){&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;public Matriz(int nF, int nC){&lt;br /&gt;&lt;br /&gt;numeroFilas=nF;&lt;br /&gt;numeroColumnas=nC;&lt;br /&gt;matriz=new double[numeroFilas][numeroColumnas];//construyo un sitio para almacenar ceros&lt;br /&gt;for(int i=0;i &lt; numeroFilas;i++)&lt;br /&gt;for(int j=0; j &lt; numeroColumnas; j++)&lt;br /&gt;matriz [i][j]=0;&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;public Matriz suma(Matriz b){&lt;br /&gt;Matriz resultado;&lt;br /&gt;if((this.numeroFilas == b.numeroFilas)&amp;amp;&amp;amp; (this.numeroColumnas == b.numeroColumnas)){&lt;br /&gt;resultado = new Matriz(this.numeroFilas, this.numeroColumnas);&lt;br /&gt;for(int i=0; i &lt; this.numeroFilas; i++)&lt;br /&gt;for(int j=0; j &lt; this.numeroColumnas; j++)&lt;br /&gt;resultado.matriz[i][j] = this.matriz[i][j]+ b.matriz[i][j];&lt;br /&gt;return resultado;&lt;br /&gt;}&lt;br /&gt;else&lt;br /&gt;System.out.println("ERROR EN DIMENSIONES DE LAS MATRICES");&lt;br /&gt;resultado=null;&lt;br /&gt;return resultado;&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;/**&lt;br /&gt;* Metodo de resta de matrices&lt;br /&gt;* @return matriz resultado de resta&lt;br /&gt;*/&lt;br /&gt;public Matriz resta(Matriz b){&lt;br /&gt;Matriz resultado;&lt;br /&gt;if ((this.numeroFilas == b.numeroFilas)&amp;amp;(this.numeroFilas == b.numeroColumnas)){&lt;br /&gt;resultado = new Matriz (this.numeroFilas,this.numeroColumnas);//construyo la caja donde almaceno el resultado&lt;br /&gt;for(int i = 0;i &lt; this.numeroFilas;i++)&lt;br /&gt;for(int j=0;j &lt; this.numeroColumnas;j++)&lt;br /&gt;resultado.matriz[i][j] = this.matriz[i][j]-b.matriz[i][j];&lt;br /&gt;return resultado;&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;else{&lt;br /&gt;System.out.println("ERROR EN DIMENSIONES DE LAS MATRICES");&lt;br /&gt;resultado=null;&lt;br /&gt;return resultado;&lt;br /&gt;}&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;/**&lt;br /&gt;* Metodo para transpuesta de una matriz&lt;br /&gt;* @return&lt;br /&gt;*/&lt;br /&gt;//el numero de filas se cambia al numero de columnas&lt;br /&gt;&lt;br /&gt;public Matriz Transpuesta(){&lt;br /&gt;Matriz resultado;&lt;br /&gt;resultado=new Matriz(this.numeroColumnas,this.numeroFilas);&lt;br /&gt;for(int i=0; i &lt; this.numeroFilas; i++)&lt;br /&gt;for(int j=0; j &lt; this.numeroColumnas; j++)&lt;br /&gt;resultado.matriz[j][i]=this.matriz[i][j];&lt;br /&gt;return resultado;&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;/**&lt;br /&gt;* Metodo para multiplicaci�n entre matrices&lt;br /&gt;* @return&lt;br /&gt;*/&lt;br /&gt;public Matriz Multiplicacion(Matriz b){&lt;br /&gt;Matriz resultado;&lt;br /&gt;if(this.numeroColumnas==b.numeroFilas){&lt;br /&gt;resultado=new Matriz(this.numeroFilas, b.numeroColumnas);&lt;br /&gt;for(int i=0; i &lt; this.numeroFilas; i++){&lt;br /&gt;for(int j=0; j &lt; b.numeroColumnas; j++){&lt;br /&gt;for(int k=0; k &lt; this.numeroColumnas; k++)&lt;br /&gt;resultado.matriz[i][j]+=this.matriz[i][k]*b.matriz[k][j];&lt;br /&gt;}&lt;br /&gt;}&lt;br /&gt;return resultado;&lt;br /&gt;}&lt;br /&gt;else&lt;br /&gt;System.out.println("ERROR EN DIMENSIONES DE LAS MATRICES");&lt;br /&gt;resultado=null;&lt;br /&gt;return resultado;&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;public Matriz Inversa(){&lt;br /&gt;Matriz r;&lt;br /&gt;r=new Matriz(this.numeroColumnas,this.numeroFilas);&lt;br /&gt;for(int i=0; i &lt; this.numeroFilas; i++)&lt;br /&gt;for(int j=0; j &lt; this.numeroColumnas; j++)&lt;br /&gt;r=new Matriz(this.numeroColumnas,this.numeroFilas);&lt;br /&gt;r.matriz[0][0]=((this.matriz[1][1]*this.matriz[2][2])-(this.matriz[2][1]*this.matriz[1][2]));&lt;br /&gt;r.matriz[0][1]=((this.matriz[1][0]*this.matriz[2][2])-(this.matriz[2][0]*this.matriz[1][2]));&lt;br /&gt;r.matriz[0][2]=((this.matriz[1][0]*this.matriz[2][1])-(this.matriz[2][0]*this.matriz[1][1]));&lt;br /&gt;r.matriz[1][0]=((this.matriz[0][1]*this.matriz[2][2])-(this.matriz[2][1]*this.matriz[0][2]));&lt;br /&gt;r.matriz[1][1]=((this.matriz[1][0]*this.matriz[2][2])-(this.matriz[2][0]*this.matriz[1][2]));&lt;br /&gt;r.matriz[1][2]=((this.matriz[0][0]*this.matriz[2][1])-(this.matriz[2][0]*this.matriz[0][1]));&lt;br /&gt;r.matriz[2][0]=((this.matriz[0][1]*this.matriz[1][2])-(this.matriz[1][1]*this.matriz[0][2]));&lt;br /&gt;r.matriz[2][1]=((this.matriz[0][0]*this.matriz[1][2])-(this.matriz[1][0]*this.matriz[0][2]));&lt;br /&gt;r.matriz[2][2]=((this.matriz[0][0]*this.matriz[1][1])-(this.matriz[1][0]*this.matriz[0][1]));&lt;br /&gt;return r;&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;public void leer(){&lt;br /&gt;String aux;&lt;br /&gt;for(int i=0; i &lt; this.numeroFilas; i++){&lt;br /&gt;for(int j=0; j &lt; this.numeroColumnas; j++){&lt;br /&gt;aux = JOptionPane.showInputDialog(null,"INGRESO DE VALORES","INGRESE EL VALOR: "+(i+1)+","+(j+1),JOptionPane.DEFAULT_OPTION);&lt;br /&gt;this.matriz[i][j]=Double.parseDouble(aux);&lt;br /&gt;}&lt;br /&gt;}&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;public String toString(){&lt;br /&gt;&lt;br /&gt;String aux="\n";&lt;br /&gt;DecimalFormat df = new DecimalFormat("0.0000");&lt;br /&gt;for(int i=0; i &lt; numeroFilas; i++){&lt;br /&gt;for(int j=0; j &lt; numeroColumnas; j++){&lt;br /&gt;aux+=df.format(matriz[i][j])+" ";&lt;br /&gt;}&lt;br /&gt;aux+="\n";&lt;br /&gt;}&lt;br /&gt;aux+=" ";&lt;br /&gt;return aux;&lt;br /&gt;}&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;// APPLET&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;public class OperacionesMatrices extends javax.swing.JApplet {&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;/** Initializes the applet OperacionesMatrices */&lt;br /&gt;public void init() {&lt;br /&gt;try {&lt;br /&gt;java.awt.EventQueue.invokeAndWait(new Runnable() {&lt;br /&gt;public void run() {&lt;br /&gt;initComponents();&lt;br /&gt;}&lt;br /&gt;});&lt;br /&gt;} catch (Exception ex) {&lt;br /&gt;ex.printStackTrace();&lt;br /&gt;}&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;/** This method is called from within the init() method to&lt;br /&gt;* initialize the form.&lt;br /&gt;* WARNING: Do NOT modify this code. The content of this method is&lt;br /&gt;* always regenerated by the Form Editor.&lt;br /&gt;*/&lt;br /&gt;@SuppressWarnings("unchecked")&lt;br /&gt;//&lt;br /&gt;private void initComponents() {&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;jPanel1 = new javax.swing.JPanel();&lt;br /&gt;jLabel1 = new javax.swing.JLabel();&lt;br /&gt;jLabel2 = new javax.swing.JLabel();&lt;br /&gt;jLabel3 = new javax.swing.JLabel();&lt;br /&gt;jLabel4 = new javax.swing.JLabel();&lt;br /&gt;jLabel5 = new javax.swing.JLabel();&lt;br /&gt;jLabel6 = new javax.swing.JLabel();&lt;br /&gt;jTextField1 = new javax.swing.JTextField();&lt;br /&gt;jTextField2 = new javax.swing.JTextField();&lt;br /&gt;jLabel7 = new javax.swing.JLabel();&lt;br /&gt;jLabel8 = new javax.swing.JLabel();&lt;br /&gt;jTextField3 = new javax.swing.JTextField();&lt;br /&gt;jTextField4 = new javax.swing.JTextField();&lt;br /&gt;jButton1 = new javax.swing.JButton();&lt;br /&gt;jButton2 = new javax.swing.JButton();&lt;br /&gt;jButton3 = new javax.swing.JButton();&lt;br /&gt;jScrollPane1 = new javax.swing.JScrollPane();&lt;br /&gt;jTextArea1 = new javax.swing.JTextArea();&lt;br /&gt;jButton4 = new javax.swing.JButton();&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;jLabel1.setText("Operaciones de Matrices");&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;jLabel2.setText("Operaciones Binarias");&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;jLabel3.setText("Matriz 1");&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;jLabel4.setText("Matriz 2");&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;jLabel5.setText("Numero de Filas");&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;jLabel6.setText("Numero de Columnas");&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;jTextField1.addActionListener(new java.awt.event.ActionListener() {&lt;br /&gt;public void actionPerformed(java.awt.event.ActionEvent evt) {&lt;br /&gt;jTextField1ActionPerformed(evt);&lt;br /&gt;}&lt;br /&gt;});&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;jTextField2.addActionListener(new java.awt.event.ActionListener() {&lt;br /&gt;public void actionPerformed(java.awt.event.ActionEvent evt) {&lt;br /&gt;jTextField2ActionPerformed(evt);&lt;br /&gt;}&lt;br /&gt;});&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;jLabel7.setText("Numero Filas");&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;jLabel8.setText("Numero Columnas");&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;jTextField3.addActionListener(new java.awt.event.ActionListener() {&lt;br /&gt;public void actionPerformed(java.awt.event.ActionEvent evt) {&lt;br /&gt;jTextField3ActionPerformed(evt);&lt;br /&gt;}&lt;br /&gt;});&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;jButton1.setText("Suma");&lt;br /&gt;jButton1.addActionListener(new java.awt.event.ActionListener() {&lt;br /&gt;public void actionPerformed(java.awt.event.ActionEvent evt) {&lt;br /&gt;jButton1ActionPerformed(evt);&lt;br /&gt;}&lt;br /&gt;});&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;jButton2.setText("Resta");&lt;br /&gt;jButton2.addActionListener(new java.awt.event.ActionListener() {&lt;br /&gt;public void actionPerformed(java.awt.event.ActionEvent evt) {&lt;br /&gt;jButton2ActionPerformed(evt);&lt;br /&gt;}&lt;br /&gt;});&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;jButton3.setText("Multiplicación");&lt;br /&gt;jButton3.addActionListener(new java.awt.event.ActionListener() {&lt;br /&gt;public void actionPerformed(java.awt.event.ActionEvent evt) {&lt;br /&gt;jButton3ActionPerformed(evt);&lt;br /&gt;}&lt;br /&gt;});&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;jTextArea1.setColumns(20);&lt;br /&gt;jTextArea1.setRows(5);&lt;br /&gt;jScrollPane1.setViewportView(jTextArea1);&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;jButton4.setText("Transpuesta");&lt;br /&gt;jButton4.addActionListener(new java.awt.event.ActionListener() {&lt;br /&gt;public void actionPerformed(java.awt.event.ActionEvent evt) {&lt;br /&gt;jButton4ActionPerformed(evt);&lt;br /&gt;}&lt;br /&gt;});&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;javax.swing.GroupLayout jPanel1Layout = new javax.swing.GroupLayout(jPanel1);&lt;br /&gt;jPanel1.setLayout(jPanel1Layout);&lt;br /&gt;jPanel1Layout.setHorizontalGroup(&lt;br /&gt;jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)&lt;br /&gt;.addGroup(jPanel1Layout.createSequentialGroup()&lt;br /&gt;.addGap(65, 65, 65)&lt;br /&gt;.addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)&lt;br /&gt;.addGroup(jPanel1Layout.createSequentialGroup()&lt;br /&gt;.addComponent(jButton4)&lt;br /&gt;.addContainerGap())&lt;br /&gt;.addGroup(jPanel1Layout.createSequentialGroup()&lt;br /&gt;.addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)&lt;br /&gt;.addGroup(jPanel1Layout.createSequentialGroup()&lt;br /&gt;.addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)&lt;br /&gt;.addComponent(jLabel1, javax.swing.GroupLayout.PREFERRED_SIZE, 138, javax.swing.GroupLayout.PREFERRED_SIZE)&lt;br /&gt;.addGroup(jPanel1Layout.createSequentialGroup()&lt;br /&gt;.addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)&lt;br /&gt;.addComponent(jLabel3)&lt;br /&gt;.addComponent(jLabel5)&lt;br /&gt;.addComponent(jLabel6)&lt;br /&gt;.addGroup(jPanel1Layout.createSequentialGroup()&lt;br /&gt;.addComponent(jButton1, javax.swing.GroupLayout.PREFERRED_SIZE, 73, javax.swing.GroupLayout.PREFERRED_SIZE)&lt;br /&gt;.addGap(18, 18, 18)&lt;br /&gt;.addComponent(jButton2)))&lt;br /&gt;.addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)&lt;br /&gt;.addGroup(jPanel1Layout.createSequentialGroup()&lt;br /&gt;.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)&lt;br /&gt;.addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)&lt;br /&gt;.addComponent(jTextField2)&lt;br /&gt;.addComponent(jTextField1, javax.swing.GroupLayout.DEFAULT_SIZE, 47, Short.MAX_VALUE))&lt;br /&gt;.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)&lt;br /&gt;.addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)&lt;br /&gt;.addComponent(jLabel7)&lt;br /&gt;.addComponent(jLabel8)&lt;br /&gt;.addComponent(jLabel4)))&lt;br /&gt;.addGroup(jPanel1Layout.createSequentialGroup()&lt;br /&gt;.addGap(35, 35, 35)&lt;br /&gt;.addComponent(jButton3)))))&lt;br /&gt;.addGap(39, 39, 39)&lt;br /&gt;.addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)&lt;br /&gt;.addComponent(jTextField3)&lt;br /&gt;.addComponent(jTextField4, javax.swing.GroupLayout.DEFAULT_SIZE, 47, Short.MAX_VALUE)))&lt;br /&gt;.addComponent(jLabel2)&lt;br /&gt;.addComponent(jScrollPane1, javax.swing.GroupLayout.DEFAULT_SIZE, 523, Short.MAX_VALUE))&lt;br /&gt;.addGap(22, 22, 22))))&lt;br /&gt;);&lt;br /&gt;jPanel1Layout.setVerticalGroup(&lt;br /&gt;jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)&lt;br /&gt;.addGroup(jPanel1Layout.createSequentialGroup()&lt;br /&gt;.addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)&lt;br /&gt;.addGroup(jPanel1Layout.createSequentialGroup()&lt;br /&gt;.addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)&lt;br /&gt;.addGroup(jPanel1Layout.createSequentialGroup()&lt;br /&gt;.addGap(26, 26, 26)&lt;br /&gt;.addComponent(jLabel2))&lt;br /&gt;.addGroup(jPanel1Layout.createSequentialGroup()&lt;br /&gt;.addContainerGap()&lt;br /&gt;.addComponent(jLabel1, javax.swing.GroupLayout.PREFERRED_SIZE, 14, javax.swing.GroupLayout.PREFERRED_SIZE)))&lt;br /&gt;.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)&lt;br /&gt;.addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)&lt;br /&gt;.addComponent(jLabel3)&lt;br /&gt;.addComponent(jLabel4))&lt;br /&gt;.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)&lt;br /&gt;.addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)&lt;br /&gt;.addComponent(jLabel5)&lt;br /&gt;.addComponent(jTextField1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)&lt;br /&gt;.addComponent(jLabel7))&lt;br /&gt;.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)&lt;br /&gt;.addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)&lt;br /&gt;.addComponent(jLabel6)&lt;br /&gt;.addComponent(jTextField2, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)&lt;br /&gt;.addComponent(jLabel8))&lt;br /&gt;.addGap(31, 31, 31)&lt;br /&gt;.addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)&lt;br /&gt;.addComponent(jButton1)&lt;br /&gt;.addComponent(jButton2)&lt;br /&gt;.addComponent(jButton3)))&lt;br /&gt;.addGroup(jPanel1Layout.createSequentialGroup()&lt;br /&gt;.addGap(58, 58, 58)&lt;br /&gt;.addComponent(jTextField3, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)&lt;br /&gt;.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)&lt;br /&gt;.addComponent(jTextField4, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)))&lt;br /&gt;.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)&lt;br /&gt;.addComponent(jButton4)&lt;br /&gt;.addGap(15, 15, 15)&lt;br /&gt;.addComponent(jScrollPane1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)&lt;br /&gt;.addContainerGap(57, Short.MAX_VALUE))&lt;br /&gt;);&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());&lt;br /&gt;getContentPane().setLayout(layout);&lt;br /&gt;layout.setHorizontalGroup(&lt;br /&gt;layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)&lt;br /&gt;.addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup()&lt;br /&gt;.addContainerGap()&lt;br /&gt;.addComponent(jPanel1, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)&lt;br /&gt;.addContainerGap())&lt;br /&gt;);&lt;br /&gt;layout.setVerticalGroup(&lt;br /&gt;layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)&lt;br /&gt;.addGroup(layout.createSequentialGroup()&lt;br /&gt;.addComponent(jPanel1, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)&lt;br /&gt;.addContainerGap())&lt;br /&gt;);&lt;br /&gt;}//&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;private void jTextField1ActionPerformed(java.awt.event.ActionEvent evt) {&lt;br /&gt;// TODO add your handling code here:&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;private void jTextField2ActionPerformed(java.awt.event.ActionEvent evt) {&lt;br /&gt;// TODO add your handling code here:&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;private void jTextField3ActionPerformed(java.awt.event.ActionEvent evt) {&lt;br /&gt;// TODO add your handling code here:&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;private void jButton1ActionPerformed(java.awt.event.ActionEvent evt) {&lt;br /&gt;// TODO add your handling code here:&lt;br /&gt;String aux = jTextField1.getText();&lt;br /&gt;String aux1="";&lt;br /&gt;int nF = Integer.parseInt(aux);&lt;br /&gt;aux = jTextField2.getText();&lt;br /&gt;int nC = Integer.parseInt(aux);&lt;br /&gt;m1 = new Matriz(nF,nC);&lt;br /&gt;m1.leer();&lt;br /&gt;aux1 += m1.toString();&lt;br /&gt;aux = jTextField3.getText();&lt;br /&gt;nF = Integer.parseInt(aux);&lt;br /&gt;aux = jTextField4.getText();&lt;br /&gt;nC = Integer.parseInt(aux);&lt;br /&gt;m2 = new Matriz(nF,nC);&lt;br /&gt;m2.leer();&lt;br /&gt;aux1 += m2.toString();&lt;br /&gt;jTextArea1.setText("Suma de Matrices: \n"+aux1+(m1.suma(m2)).toString());&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;private void jButton2ActionPerformed(java.awt.event.ActionEvent evt) {&lt;br /&gt;String aux = jTextField1.getText();&lt;br /&gt;String aux1="";&lt;br /&gt;int nF = Integer.parseInt(aux);&lt;br /&gt;aux = jTextField2.getText();&lt;br /&gt;int nC = Integer.parseInt(aux);&lt;br /&gt;m1 = new Matriz(nF,nC);&lt;br /&gt;m1.leer();&lt;br /&gt;aux1 += m1.toString();&lt;br /&gt;aux = jTextField3.getText();&lt;br /&gt;nF = Integer.parseInt(aux);&lt;br /&gt;aux = jTextField4.getText();&lt;br /&gt;nC = Integer.parseInt(aux);&lt;br /&gt;m2 = new Matriz(nF,nC);&lt;br /&gt;m2.leer();&lt;br /&gt;aux1 += m2.toString();&lt;br /&gt;jTextArea1.setText("Resta de Matrices: \n"+aux1+(m1.resta(m2)).toString());&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;private void jButton3ActionPerformed(java.awt.event.ActionEvent evt) {&lt;br /&gt;String aux = jTextField1.getText();&lt;br /&gt;String aux1="";&lt;br /&gt;int nF = Integer.parseInt(aux);&lt;br /&gt;aux = jTextField2.getText();&lt;br /&gt;int nC = Integer.parseInt(aux);&lt;br /&gt;m1 = new Matriz(nF,nC);&lt;br /&gt;m1.leer();&lt;br /&gt;aux1 += m1.toString();&lt;br /&gt;aux = jTextField3.getText();&lt;br /&gt;nF = Integer.parseInt(aux);&lt;br /&gt;aux = jTextField4.getText();&lt;br /&gt;nC = Integer.parseInt(aux);&lt;br /&gt;m2 = new Matriz(nF,nC);&lt;br /&gt;m2.leer();&lt;br /&gt;aux1 += m2.toString();&lt;br /&gt;jTextArea1.setText("Multiplicacion de Matrices: \n"+aux1+(m1.Multiplicacion(m2)).toString());&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;private void jButton4ActionPerformed(java.awt.event.ActionEvent evt) {&lt;br /&gt;String aux = jTextField1.getText();&lt;br /&gt;String aux1="";&lt;br /&gt;int nF = Integer.parseInt(aux);&lt;br /&gt;aux = jTextField2.getText();&lt;br /&gt;int nC = Integer.parseInt(aux);&lt;br /&gt;m1 = new Matriz(nF,nC);&lt;br /&gt;m1.leer();&lt;br /&gt;aux1+= m1.toString();&lt;br /&gt;jTextArea1.setText("Transpuesta de Matrices: \n"+aux1+(m1.Transpuesta()).toString());&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;// TODO add your handling code here:&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;public Matriz m1;&lt;br /&gt;public Matriz m2;&lt;br /&gt;// Variables declaration - do not modify&lt;br /&gt;private javax.swing.JButton jButton1;&lt;br /&gt;private javax.swing.JButton jButton2;&lt;br /&gt;private javax.swing.JButton jButton3;&lt;br /&gt;private javax.swing.JButton jButton4;&lt;br /&gt;private javax.swing.JLabel jLabel1;&lt;br /&gt;private javax.swing.JLabel jLabel2;&lt;br /&gt;private javax.swing.JLabel jLabel3;&lt;br /&gt;private javax.swing.JLabel jLabel4;&lt;br /&gt;private javax.swing.JLabel jLabel5;&lt;br /&gt;private javax.swing.JLabel jLabel6;&lt;br /&gt;private javax.swing.JLabel jLabel7;&lt;br /&gt;private javax.swing.JLabel jLabel8;&lt;br /&gt;private javax.swing.JPanel jPanel1;&lt;br /&gt;private javax.swing.JScrollPane jScrollPane1;&lt;br /&gt;private javax.swing.JTextArea jTextArea1;&lt;br /&gt;private javax.swing.JTextField jTextField1;&lt;br /&gt;private javax.swing.JTextField jTextField2;&lt;br /&gt;private javax.swing.JTextField jTextField3;&lt;br /&gt;private javax.swing.JTextField jTextField4;&lt;br /&gt;// End of variables declaration&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;}&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4083012570879898065-6076353155401018170?l=joseromero495.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://joseromero495.blogspot.com/feeds/6076353155401018170/comments/default' title='Enviar comentarios'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=4083012570879898065&amp;postID=6076353155401018170' title='6 comentarios'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4083012570879898065/posts/default/6076353155401018170'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4083012570879898065/posts/default/6076353155401018170'/><link rel='alternate' type='text/html' href='http://joseromero495.blogspot.com/2009/12/restamultiplicaciontranspuestacon.html' title='Resta,Multiplicacion,Transpuesta...Con botones'/><author><name>José Romero</name><uri>http://www.blogger.com/profile/16359757080751416618</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>6</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4083012570879898065.post-5684320708952751838</id><published>2009-12-01T17:51:00.000-08:00</published><updated>2009-12-01T18:59:53.191-08:00</updated><title type='text'>Applet 1 (Suma de dos Matrices)</title><content type='html'>&lt;span class="Apple-style-span"   style="  color: rgb(51, 51, 51); line-height: 19px; font-family:Verdana, sans-serif;font-size:13px;"&gt;&lt;div&gt;&lt;div&gt;&lt;div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-weight: normal; "&gt;&lt;div&gt;&lt;span class="Apple-style-span"    style="font-family:Helvetica, Arial, Verdana, 'Trebuchet MS', sans-serif;font-size:100%;color:#000000;"&gt;&lt;span class="Apple-style-span" style="font-size: 13px; line-height: normal;"&gt;&lt;b&gt;//MATRIZ&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"    style="font-family:Helvetica, Arial, Verdana, 'Trebuchet MS', sans-serif;font-size:100%;color:#000000;"&gt;&lt;span class="Apple-style-span" style="font-size: 13px; line-height: normal;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"    style="font-family:Helvetica, Arial, Verdana, 'Trebuchet MS', sans-serif;font-size:100%;color:#000000;"&gt;&lt;span class="Apple-style-span" style="font-size: 13px; line-height: normal;"&gt;import javax.swing.JOptionPane;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"    style="font-family:Helvetica, Arial, Verdana, 'Trebuchet MS', sans-serif;font-size:100%;color:#000000;"&gt;&lt;span class="Apple-style-span" style="font-size: 13px; line-height: normal;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-family:'times new roman';"&gt;&lt;span class="Apple-style-span" style="font-size: medium; "&gt;&lt;b&gt;&lt;span class="Apple-style-span" style="font-family: Helvetica, Arial, Verdana, 'Trebuchet MS', sans-serif; font-weight: normal; line-height: normal; font-size: 13px; "&gt;&lt;span class="Apple-style-span"  style="color:#000000;"&gt;public class Matriz {&lt;br /&gt;public int numeroFilas;&lt;br /&gt;public int numeroColumnas;&lt;br /&gt;public double [][]matriz;&lt;br /&gt;&lt;br /&gt;/**&lt;br /&gt;* constructor sin parametros&lt;br /&gt;*/&lt;br /&gt;public Matriz(){//arreglo de filas y columnas&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;/**&lt;br /&gt;* Constructor de parametros&lt;br /&gt;* @param nF numero de Filas&lt;br /&gt;* @param nC numero de Columnas&lt;br /&gt;*/&lt;br /&gt;&lt;br /&gt;public Matriz(int nF, int nC){&lt;br /&gt;&lt;br /&gt;numeroFilas=nF;&lt;br /&gt;numeroColumnas=nC;&lt;br /&gt;matriz=new double[numeroFilas][numeroColumnas];//construyo un sitio para almacenar ceros&lt;br /&gt;for(int i=0;i &lt; numeroFilas;i++)&lt;br /&gt;for(int j=0; j &lt; numeroColumnas; j++)&lt;br /&gt;matriz [i][j]=0;&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;/**&lt;br /&gt;* Metodo de suma de matrices&lt;br /&gt;* @param B primer sumando&lt;br /&gt;* @return matriz resultado de suma&lt;br /&gt;*/&lt;br /&gt;public Matriz suma(Matriz b){&lt;br /&gt;Matriz resultado;&lt;br /&gt;//probar q el numero de fila y columnas de la primera matriz sea = al numero de&lt;br /&gt;//filas y columnas de la segunda&lt;br /&gt;//this referencia a un objeto que aun no esta creado pero que alguien algun momento lo va a crear&lt;br /&gt;if((this.numeroFilas == b.numeroFilas)&amp;amp;&amp;amp; (this.numeroColumnas == b.numeroColumnas)){&lt;br /&gt;resultado = new Matriz(this.numeroFilas, this.numeroColumnas);&lt;br /&gt;for(int i=0; i &lt; this.numeroFilas; i++)&lt;br /&gt;for(int j=0; j &lt; this.numeroColumnas; j++)&lt;br /&gt;resultado.matriz[i][j] = this.matriz[i][j]+ b.matriz[i][j];&lt;br /&gt;return resultado;&lt;br /&gt;}&lt;br /&gt;else&lt;br /&gt;System.out.println("ERROR EN DIMENSIONES DE LAS MATRICES");&lt;br /&gt;resultado=null;&lt;br /&gt;return resultado;&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;/**&lt;br /&gt;* Metodo de resta de matrices&lt;br /&gt;* @return matriz resultado de resta&lt;br /&gt;*/&lt;br /&gt;public Matriz resta(Matriz b){&lt;br /&gt;Matriz resultado;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;if ((this.numeroFilas == b.numeroFilas)&amp;amp;(this.numeroFilas == b.numeroColumnas)){&lt;br /&gt;resultado = new Matriz (this.numeroFilas,this.numeroColumnas);//construyo la caja donde almaceno el resultado&lt;br /&gt;for(int i = 0;i &lt; this.numeroFilas;i++)&lt;br /&gt;for(int j=0;j &lt; this.numeroColumnas;j++)&lt;br /&gt;resultado.matriz[i][j] = this.matriz[i][j]-b.matriz[i][j];&lt;br /&gt;return resultado;&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;else{&lt;br /&gt;System.out.println("ERROR EN DIMENSIONES DE LAS MATRICES");&lt;br /&gt;resultado=null;&lt;br /&gt;return resultado;&lt;br /&gt;}&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;/**&lt;br /&gt;* Metodo para transpuesta de una matriz&lt;br /&gt;* @return&lt;br /&gt;*/&lt;br /&gt;//el numero de filas se cambia al numero de columnas&lt;br /&gt;&lt;br /&gt;public Matriz Transpuesta(){&lt;br /&gt;Matriz resultado;&lt;br /&gt;resultado=new Matriz(this.numeroColumnas,this.numeroFilas);&lt;br /&gt;for(int i=0; i &lt; this.numeroFilas; i++)&lt;br /&gt;for(int j=0; j &lt; this.numeroColumnas; j++)&lt;br /&gt;resultado.matriz[j][i]=this.matriz[i][j];&lt;br /&gt;return resultado;&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;/**&lt;br /&gt;* Metodo para multiplicaci�n entre matrices&lt;br /&gt;* @return&lt;br /&gt;*/&lt;br /&gt;public Matriz Multiplicacion(Matriz b){&lt;br /&gt;Matriz resultado;&lt;br /&gt;if(this.numeroColumnas==b.numeroFilas){&lt;br /&gt;resultado=new Matriz(this.numeroFilas, b.numeroColumnas);&lt;br /&gt;for(int i=0; i &lt; this.numeroFilas; i++){&lt;br /&gt;for(int j=0; j &lt; b.numeroColumnas; j++){&lt;br /&gt;for(int k=0; k &lt; this.numeroColumnas; k++)&lt;br /&gt;resultado.matriz[i][j]+=this.matriz[i][k]*b.matriz[k][j];&lt;br /&gt;}&lt;br /&gt;}&lt;br /&gt;return resultado;&lt;br /&gt;}&lt;br /&gt;else&lt;br /&gt;System.out.println("ERROR EN DIMENSIONES DE LAS MATRICES");&lt;br /&gt;resultado=null;&lt;br /&gt;return resultado;&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;public void leer(){&lt;br /&gt;String aux;&lt;br /&gt;for(int i=0; i &lt; this.numeroFilas; i++){&lt;br /&gt;for(int j=0; j &lt; this.numeroColumnas; j++){&lt;br /&gt;aux = JOptionPane.showInputDialog(null,"INGRESO DE VALORES","INGRESE EL VALOR: "+(i+1)+","+(j+1),JOptionPane.DEFAULT_OPTION);&lt;br /&gt;this.matriz[i][j]=Double.parseDouble(aux);&lt;br /&gt;}&lt;br /&gt;}&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;/**&lt;br /&gt;* Devuelve el objeto matriz en texto&lt;br /&gt;* @return&lt;br /&gt;*/&lt;br /&gt;public String toString(){&lt;br /&gt;String aux="\n\n";&lt;br /&gt;for(int i=0; i &lt; numeroFilas; i++){&lt;br /&gt;for(int j=0; j &lt; numeroColumnas; j++){&lt;br /&gt;aux+=matriz[i][j]+" ";&lt;br /&gt;}&lt;br /&gt;aux+="\n";&lt;br /&gt;}&lt;br /&gt;aux+=" ";&lt;br /&gt;return aux;&lt;br /&gt;}&lt;br /&gt;}&lt;/span&gt;&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"    style="font-family:Helvetica, Arial, Verdana, 'Trebuchet MS', sans-serif;font-size:100%;color:#000000;"&gt;&lt;span class="Apple-style-span" style="font-size: 13px; line-height: normal;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"    style="font-family:Helvetica, Arial, Verdana, 'Trebuchet MS', sans-serif;font-size:100%;color:#000000;"&gt;&lt;span class="Apple-style-span" style="font-size: 13px; line-height: normal;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"    style="font-family:Helvetica, Arial, Verdana, 'Trebuchet MS', sans-serif;font-size:100%;color:#000000;"&gt;&lt;span class="Apple-style-span" style="font-size: 13px; line-height: normal;"&gt;&lt;b&gt;//APPLET&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"    style="font-family:Helvetica, Arial, Verdana, 'Trebuchet MS', sans-serif;font-size:100%;color:#000000;"&gt;&lt;span class="Apple-style-span" style="font-size: 13px; line-height: normal;"&gt;&lt;b&gt;&lt;div&gt;public class AppletSumMat extends javax.swing.JApplet {&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;    /** Initializes the applet Applet2 */&lt;/div&gt;&lt;div&gt;    public void init() {&lt;/div&gt;&lt;div&gt;        try {&lt;/div&gt;&lt;div&gt;            java.awt.EventQueue.invokeAndWait(new Runnable() {&lt;/div&gt;&lt;div&gt;                public void run() {&lt;/div&gt;&lt;div&gt;                    initComponents();&lt;/div&gt;&lt;div&gt;                }&lt;/div&gt;&lt;div&gt;            });&lt;/div&gt;&lt;div&gt;        } catch (Exception ex) {&lt;/div&gt;&lt;div&gt;            ex.printStackTrace();&lt;/div&gt;&lt;div&gt;        }&lt;/div&gt;&lt;div&gt;    }&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;    /** This method is called from within the init() method to&lt;/div&gt;&lt;div&gt;     * initialize the form.&lt;/div&gt;&lt;div&gt;     * WARNING: Do NOT modify this code. The content of this method is&lt;/div&gt;&lt;div&gt;     * always regenerated by the Form Editor.&lt;/div&gt;&lt;div&gt;     */&lt;/div&gt;&lt;div&gt;    @SuppressWarnings("unchecked")&lt;/div&gt;&lt;div&gt;    // &lt;editor-fold defaultstate="collapsed" desc="Generated Code"&gt;                          &lt;/div&gt;&lt;div&gt;    private void initComponents() {&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;        jPanel1 = new javax.swing.JPanel();&lt;/div&gt;&lt;div&gt;        jLabel1 = new javax.swing.JLabel();&lt;/div&gt;&lt;div&gt;        jLabel2 = new javax.swing.JLabel();&lt;/div&gt;&lt;div&gt;        jLabel3 = new javax.swing.JLabel();&lt;/div&gt;&lt;div&gt;        jButton1 = new javax.swing.JButton();&lt;/div&gt;&lt;div&gt;        jTextField1 = new javax.swing.JTextField();&lt;/div&gt;&lt;div&gt;        jTextField2 = new javax.swing.JTextField();&lt;/div&gt;&lt;div&gt;        jScrollPane1 = new javax.swing.JScrollPane();&lt;/div&gt;&lt;div&gt;        jTextArea1 = new javax.swing.JTextArea();&lt;/div&gt;&lt;div&gt;        jLabel4 = new javax.swing.JLabel();&lt;/div&gt;&lt;div&gt;        jButton2 = new javax.swing.JButton();&lt;/div&gt;&lt;div&gt;        jLabel5 = new javax.swing.JLabel();&lt;/div&gt;&lt;div&gt;        jLabel6 = new javax.swing.JLabel();&lt;/div&gt;&lt;div&gt;        jButton3 = new javax.swing.JButton();&lt;/div&gt;&lt;div&gt;        jTextField3 = new javax.swing.JTextField();&lt;/div&gt;&lt;div&gt;        jTextField4 = new javax.swing.JTextField();&lt;/div&gt;&lt;div&gt;        jScrollPane2 = new javax.swing.JScrollPane();&lt;/div&gt;&lt;div&gt;        jTextArea2 = new javax.swing.JTextArea();&lt;/div&gt;&lt;div&gt;        jScrollPane3 = new javax.swing.JScrollPane();&lt;/div&gt;&lt;div&gt;        jTextArea3 = new javax.swing.JTextArea();&lt;/div&gt;&lt;div&gt;        jButton4 = new javax.swing.JButton();&lt;/div&gt;&lt;div&gt;        jButton5 = new javax.swing.JButton();&lt;/div&gt;&lt;div&gt;        jLabel7 = new javax.swing.JLabel();&lt;/div&gt;&lt;div&gt;        jLabel8 = new javax.swing.JLabel();&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;        jLabel1.setFont(new java.awt.Font("Arial", 0, 14));&lt;/div&gt;&lt;div&gt;        jLabel1.setForeground(new java.awt.Color(51, 102, 0));&lt;/div&gt;&lt;div&gt;        jLabel1.setText("Suma de dos Matrices");&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;        jLabel2.setText("Numero de filas Matriz1");&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;        jLabel3.setText("Numero de columnas Matriz1");&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;        jButton1.setText("Leer");&lt;/div&gt;&lt;div&gt;        jButton1.addActionListener(new java.awt.event.ActionListener() {&lt;/div&gt;&lt;div&gt;            public void actionPerformed(java.awt.event.ActionEvent evt) {&lt;/div&gt;&lt;div&gt;                jButton1ActionPerformed(evt);&lt;/div&gt;&lt;div&gt;            }&lt;/div&gt;&lt;div&gt;        });&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;        jTextField1.addActionListener(new java.awt.event.ActionListener() {&lt;/div&gt;&lt;div&gt;            public void actionPerformed(java.awt.event.ActionEvent evt) {&lt;/div&gt;&lt;div&gt;                jTextField1ActionPerformed(evt);&lt;/div&gt;&lt;div&gt;            }&lt;/div&gt;&lt;div&gt;        });&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;        jTextArea1.setColumns(20);&lt;/div&gt;&lt;div&gt;        jTextArea1.setRows(5);&lt;/div&gt;&lt;div&gt;        jScrollPane1.setViewportView(jTextArea1);&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;        jLabel4.setText("Suma de Matriz 1 y 2");&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;        jButton2.setText("Imprimir");&lt;/div&gt;&lt;div&gt;        jButton2.addActionListener(new java.awt.event.ActionListener() {&lt;/div&gt;&lt;div&gt;            public void actionPerformed(java.awt.event.ActionEvent evt) {&lt;/div&gt;&lt;div&gt;                jButton2ActionPerformed(evt);&lt;/div&gt;&lt;div&gt;            }&lt;/div&gt;&lt;div&gt;        });&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;        jLabel5.setText("Numero de filas Matriz2");&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;        jLabel6.setText("Numero de columnas Matriz2");&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;        jButton3.setText("Leer");&lt;/div&gt;&lt;div&gt;        jButton3.addActionListener(new java.awt.event.ActionListener() {&lt;/div&gt;&lt;div&gt;            public void actionPerformed(java.awt.event.ActionEvent evt) {&lt;/div&gt;&lt;div&gt;                jButton3ActionPerformed(evt);&lt;/div&gt;&lt;div&gt;            }&lt;/div&gt;&lt;div&gt;        });&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;        jTextArea2.setColumns(20);&lt;/div&gt;&lt;div&gt;        jTextArea2.setRows(5);&lt;/div&gt;&lt;div&gt;        jScrollPane2.setViewportView(jTextArea2);&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;        jTextArea3.setColumns(20);&lt;/div&gt;&lt;div&gt;        jTextArea3.setRows(5);&lt;/div&gt;&lt;div&gt;        jScrollPane3.setViewportView(jTextArea3);&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;        jButton4.setText("Imprimir");&lt;/div&gt;&lt;div&gt;        jButton4.addActionListener(new java.awt.event.ActionListener() {&lt;/div&gt;&lt;div&gt;            public void actionPerformed(java.awt.event.ActionEvent evt) {&lt;/div&gt;&lt;div&gt;                jButton4ActionPerformed(evt);&lt;/div&gt;&lt;div&gt;            }&lt;/div&gt;&lt;div&gt;        });&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;        jButton5.setText("Imprimir");&lt;/div&gt;&lt;div&gt;        jButton5.addActionListener(new java.awt.event.ActionListener() {&lt;/div&gt;&lt;div&gt;            public void actionPerformed(java.awt.event.ActionEvent evt) {&lt;/div&gt;&lt;div&gt;                jButton5ActionPerformed(evt);&lt;/div&gt;&lt;div&gt;            }&lt;/div&gt;&lt;div&gt;        });&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;        jLabel7.setText("Matriz 1 ");&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;        jLabel8.setText("Matriz 2 ");&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;        javax.swing.GroupLayout jPanel1Layout = new javax.swing.GroupLayout(jPanel1);&lt;/div&gt;&lt;div&gt;        jPanel1.setLayout(jPanel1Layout);&lt;/div&gt;&lt;div&gt;        jPanel1Layout.setHorizontalGroup(&lt;/div&gt;&lt;div&gt;            jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)&lt;/div&gt;&lt;div&gt;            .addGroup(jPanel1Layout.createSequentialGroup()&lt;/div&gt;&lt;div&gt;                .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)&lt;/div&gt;&lt;div&gt;                    .addGroup(jPanel1Layout.createSequentialGroup()&lt;/div&gt;&lt;div&gt;                        .addContainerGap()&lt;/div&gt;&lt;div&gt;                        .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)&lt;/div&gt;&lt;div&gt;                            .addGroup(jPanel1Layout.createSequentialGroup()&lt;/div&gt;&lt;div&gt;                                .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)&lt;/div&gt;&lt;div&gt;                                    .addComponent(jLabel2)&lt;/div&gt;&lt;div&gt;                                    .addComponent(jLabel3))&lt;/div&gt;&lt;div&gt;                                .addGap(24, 24, 24)&lt;/div&gt;&lt;div&gt;                                .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)&lt;/div&gt;&lt;div&gt;                                    .addComponent(jTextField1)&lt;/div&gt;&lt;div&gt;                                    .addComponent(jTextField2, javax.swing.GroupLayout.DEFAULT_SIZE, 69, Short.MAX_VALUE)))&lt;/div&gt;&lt;div&gt;                            .addComponent(jButton1)&lt;/div&gt;&lt;div&gt;                            .addGroup(jPanel1Layout.createSequentialGroup()&lt;/div&gt;&lt;div&gt;                                .addComponent(jButton2)&lt;/div&gt;&lt;div&gt;                                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)&lt;/div&gt;&lt;div&gt;                                .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)&lt;/div&gt;&lt;div&gt;                                    .addComponent(jLabel7)&lt;/div&gt;&lt;div&gt;                                    .addComponent(jScrollPane2, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))))&lt;/div&gt;&lt;div&gt;                        .addGap(120, 120, 120)&lt;/div&gt;&lt;div&gt;                        .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)&lt;/div&gt;&lt;div&gt;                            .addGroup(jPanel1Layout.createSequentialGroup()&lt;/div&gt;&lt;div&gt;                                .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)&lt;/div&gt;&lt;div&gt;                                    .addComponent(jLabel5)&lt;/div&gt;&lt;div&gt;                                    .addComponent(jLabel6))&lt;/div&gt;&lt;div&gt;                                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)&lt;/div&gt;&lt;div&gt;                                .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING, false)&lt;/div&gt;&lt;div&gt;                                    .addComponent(jTextField3, javax.swing.GroupLayout.Alignment.LEADING)&lt;/div&gt;&lt;div&gt;                                    .addComponent(jTextField4, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, 74, Short.MAX_VALUE)))&lt;/div&gt;&lt;div&gt;                            .addComponent(jButton3)&lt;/div&gt;&lt;div&gt;                            .addGroup(jPanel1Layout.createSequentialGroup()&lt;/div&gt;&lt;div&gt;                                .addComponent(jButton5)&lt;/div&gt;&lt;div&gt;                                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)&lt;/div&gt;&lt;div&gt;                                .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)&lt;/div&gt;&lt;div&gt;                                    .addComponent(jLabel8)&lt;/div&gt;&lt;div&gt;                                    .addComponent(jScrollPane3, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)))))&lt;/div&gt;&lt;div&gt;                    .addGroup(jPanel1Layout.createSequentialGroup()&lt;/div&gt;&lt;div&gt;                        .addGap(235, 235, 235)&lt;/div&gt;&lt;div&gt;                        .addComponent(jLabel1, javax.swing.GroupLayout.PREFERRED_SIZE, 168, javax.swing.GroupLayout.PREFERRED_SIZE)))&lt;/div&gt;&lt;div&gt;                .addContainerGap(39, Short.MAX_VALUE))&lt;/div&gt;&lt;div&gt;            .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel1Layout.createSequentialGroup()&lt;/div&gt;&lt;div&gt;                .addContainerGap(173, Short.MAX_VALUE)&lt;/div&gt;&lt;div&gt;                .addComponent(jButton4)&lt;/div&gt;&lt;div&gt;                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)&lt;/div&gt;&lt;div&gt;                .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)&lt;/div&gt;&lt;div&gt;                    .addComponent(jLabel4)&lt;/div&gt;&lt;div&gt;                    .addComponent(jScrollPane1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))&lt;/div&gt;&lt;div&gt;                .addGap(239, 239, 239))&lt;/div&gt;&lt;div&gt;        );&lt;/div&gt;&lt;div&gt;        jPanel1Layout.setVerticalGroup(&lt;/div&gt;&lt;div&gt;            jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)&lt;/div&gt;&lt;div&gt;            .addGroup(jPanel1Layout.createSequentialGroup()&lt;/div&gt;&lt;div&gt;                .addComponent(jLabel1, javax.swing.GroupLayout.PREFERRED_SIZE, 64, javax.swing.GroupLayout.PREFERRED_SIZE)&lt;/div&gt;&lt;div&gt;                .addGap(2, 2, 2)&lt;/div&gt;&lt;div&gt;                .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)&lt;/div&gt;&lt;div&gt;                    .addComponent(jLabel2)&lt;/div&gt;&lt;div&gt;                    .addComponent(jTextField1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)&lt;/div&gt;&lt;div&gt;                    .addComponent(jLabel5)&lt;/div&gt;&lt;div&gt;                    .addComponent(jTextField3, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))&lt;/div&gt;&lt;div&gt;                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)&lt;/div&gt;&lt;div&gt;                .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)&lt;/div&gt;&lt;div&gt;                    .addGroup(jPanel1Layout.createSequentialGroup()&lt;/div&gt;&lt;div&gt;                        .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)&lt;/div&gt;&lt;div&gt;                            .addComponent(jLabel3)&lt;/div&gt;&lt;div&gt;                            .addComponent(jTextField2, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))&lt;/div&gt;&lt;div&gt;                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)&lt;/div&gt;&lt;div&gt;                        .addComponent(jButton1))&lt;/div&gt;&lt;div&gt;                    .addGroup(jPanel1Layout.createSequentialGroup()&lt;/div&gt;&lt;div&gt;                        .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)&lt;/div&gt;&lt;div&gt;                            .addComponent(jLabel6)&lt;/div&gt;&lt;div&gt;                            .addComponent(jTextField4, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))&lt;/div&gt;&lt;div&gt;                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)&lt;/div&gt;&lt;div&gt;                        .addComponent(jButton3)))&lt;/div&gt;&lt;div&gt;                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)&lt;/div&gt;&lt;div&gt;                .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)&lt;/div&gt;&lt;div&gt;                    .addComponent(jLabel7)&lt;/div&gt;&lt;div&gt;                    .addComponent(jLabel8))&lt;/div&gt;&lt;div&gt;                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)&lt;/div&gt;&lt;div&gt;                .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)&lt;/div&gt;&lt;div&gt;                    .addComponent(jButton2)&lt;/div&gt;&lt;div&gt;                    .addComponent(jScrollPane2, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)&lt;/div&gt;&lt;div&gt;                    .addComponent(jButton5)&lt;/div&gt;&lt;div&gt;                    .addComponent(jScrollPane3, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))&lt;/div&gt;&lt;div&gt;                .addGap(28, 28, 28)&lt;/div&gt;&lt;div&gt;                .addComponent(jLabel4)&lt;/div&gt;&lt;div&gt;                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)&lt;/div&gt;&lt;div&gt;                .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)&lt;/div&gt;&lt;div&gt;                    .addComponent(jScrollPane1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)&lt;/div&gt;&lt;div&gt;                    .addComponent(jButton4))&lt;/div&gt;&lt;div&gt;                .addGap(77, 77, 77))&lt;/div&gt;&lt;div&gt;        );&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;        javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());&lt;/div&gt;&lt;div&gt;        getContentPane().setLayout(layout);&lt;/div&gt;&lt;div&gt;        layout.setHorizontalGroup(&lt;/div&gt;&lt;div&gt;            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)&lt;/div&gt;&lt;div&gt;            .addComponent(jPanel1, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)&lt;/div&gt;&lt;div&gt;        );&lt;/div&gt;&lt;div&gt;        layout.setVerticalGroup(&lt;/div&gt;&lt;div&gt;            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)&lt;/div&gt;&lt;div&gt;            .addComponent(jPanel1, javax.swing.GroupLayout.DEFAULT_SIZE, 489, Short.MAX_VALUE)&lt;/div&gt;&lt;div&gt;        );&lt;/div&gt;&lt;div&gt;    }// &lt;/editor-fold&gt;                        &lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;    private void jButton1ActionPerformed(java.awt.event.ActionEvent evt) {                                         &lt;/div&gt;&lt;div&gt;        // TODO add your handling code here:&lt;/div&gt;&lt;div&gt;        String aux = jTextField1.getText();&lt;/div&gt;&lt;div&gt;        nF = Integer.parseInt(aux);&lt;/div&gt;&lt;div&gt;        aux = jTextField2.getText();&lt;/div&gt;&lt;div&gt;        nC = Integer.parseInt(aux);&lt;/div&gt;&lt;div&gt;        m = new Matriz(nF,nC);&lt;/div&gt;&lt;div&gt;        m.leer();&lt;/div&gt;&lt;div&gt;    }                                        &lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;    private void jButton2ActionPerformed(java.awt.event.ActionEvent evt) {                                         &lt;/div&gt;&lt;div&gt;        // TODO add your handling code here:&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;        &lt;/div&gt;&lt;div&gt;        jTextArea2.setText(m.toString());&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;    }                                        &lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;    private void jButton3ActionPerformed(java.awt.event.ActionEvent evt) {                                         &lt;/div&gt;&lt;div&gt; String aux = jTextField3.getText();&lt;/div&gt;&lt;div&gt;        nF = Integer.parseInt(aux);&lt;/div&gt;&lt;div&gt;        aux = jTextField4.getText();&lt;/div&gt;&lt;div&gt;        nC = Integer.parseInt(aux);&lt;/div&gt;&lt;div&gt;        s = new Matriz(nF,nC);&lt;/div&gt;&lt;div&gt;        s.leer();        // TODO add your handling code here:&lt;/div&gt;&lt;div&gt;    }                                        &lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;    private void jTextField1ActionPerformed(java.awt.event.ActionEvent evt) {                                            &lt;/div&gt;&lt;div&gt;        // TODO add your handling code here:&lt;/div&gt;&lt;div&gt;    }                                           &lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;    private void jButton4ActionPerformed(java.awt.event.ActionEvent evt) {                                         &lt;/div&gt;&lt;div&gt;        T = new Matriz(nF,nC);&lt;/div&gt;&lt;div&gt;        T = m.suma(s);&lt;/div&gt;&lt;div&gt;        jTextArea1.setText(T.toString());        // TODO add your handling code here:&lt;/div&gt;&lt;div&gt;    }                                        &lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;    private void jButton5ActionPerformed(java.awt.event.ActionEvent evt) {                                         &lt;/div&gt;&lt;div&gt; &lt;/div&gt;&lt;div&gt;        jTextArea3.setText(s.toString());        // TODO add your handling code here:&lt;/div&gt;&lt;div&gt;    }                                        &lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;    // Variables declaration - do not modify                     &lt;/div&gt;&lt;div&gt;    private javax.swing.JButton jButton1;&lt;/div&gt;&lt;div&gt;    private javax.swing.JButton jButton2;&lt;/div&gt;&lt;div&gt;    private javax.swing.JButton jButton3;&lt;/div&gt;&lt;div&gt;    private javax.swing.JButton jButton4;&lt;/div&gt;&lt;div&gt;    private javax.swing.JButton jButton5;&lt;/div&gt;&lt;div&gt;    private javax.swing.JLabel jLabel1;&lt;/div&gt;&lt;div&gt;    private javax.swing.JLabel jLabel2;&lt;/div&gt;&lt;div&gt;    private javax.swing.JLabel jLabel3;&lt;/div&gt;&lt;div&gt;    private javax.swing.JLabel jLabel4;&lt;/div&gt;&lt;div&gt;    private javax.swing.JLabel jLabel5;&lt;/div&gt;&lt;div&gt;    private javax.swing.JLabel jLabel6;&lt;/div&gt;&lt;div&gt;    private javax.swing.JLabel jLabel7;&lt;/div&gt;&lt;div&gt;    private javax.swing.JLabel jLabel8;&lt;/div&gt;&lt;div&gt;    private javax.swing.JPanel jPanel1;&lt;/div&gt;&lt;div&gt;    private javax.swing.JScrollPane jScrollPane1;&lt;/div&gt;&lt;div&gt;    private javax.swing.JScrollPane jScrollPane2;&lt;/div&gt;&lt;div&gt;    private javax.swing.JScrollPane jScrollPane3;&lt;/div&gt;&lt;div&gt;    private javax.swing.JTextArea jTextArea1;&lt;/div&gt;&lt;div&gt;    private javax.swing.JTextArea jTextArea2;&lt;/div&gt;&lt;div&gt;    private javax.swing.JTextArea jTextArea3;&lt;/div&gt;&lt;div&gt;    private javax.swing.JTextField jTextField1;&lt;/div&gt;&lt;div&gt;    private javax.swing.JTextField jTextField2;&lt;/div&gt;&lt;div&gt;    private javax.swing.JTextField jTextField3;&lt;/div&gt;&lt;div&gt;    private javax.swing.JTextField jTextField4;&lt;/div&gt;&lt;div&gt;    // End of variables declaration                   &lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;    public int nF;&lt;/div&gt;&lt;div&gt;    public int nC;&lt;/div&gt;&lt;div&gt;    public Matriz m;&lt;/div&gt;&lt;div&gt;    public Matriz s;&lt;/div&gt;&lt;div&gt;    public Matriz T;&lt;/div&gt;&lt;div&gt;}&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;//RESULTADO DEL PROGRAMA&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://2.bp.blogspot.com/_OTaCcGGC-Nw/SxXRrLli8bI/AAAAAAAAAAM/Wpe2j-PAhh0/s1600/APPLET.bmp"&gt;&lt;br /&gt;&lt;img style="display:block; margin:0px auto 10px; text-align:center;cursor:pointer; cursor:hand;width: 320px; height: 177px;" src="http://2.bp.blogspot.com/_OTaCcGGC-Nw/SxXRrLli8bI/AAAAAAAAAAM/Wpe2j-PAhh0/s320/APPLET.bmp" border="0" alt="" id="BLOGGER_PHOTO_ID_5410461067130368434" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;div&gt;&lt;b&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-weight: normal;"&gt;&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;&lt;/b&gt;&lt;/div&gt;&lt;/div&gt;&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4083012570879898065-5684320708952751838?l=joseromero495.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://joseromero495.blogspot.com/feeds/5684320708952751838/comments/default' title='Enviar comentarios'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=4083012570879898065&amp;postID=5684320708952751838' title='4 comentarios'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4083012570879898065/posts/default/5684320708952751838'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4083012570879898065/posts/default/5684320708952751838'/><link rel='alternate' type='text/html' href='http://joseromero495.blogspot.com/2009/12/applet-1-suma-de-dos-matrices.html' title='Applet 1 (Suma de dos Matrices)'/><author><name>José Romero</name><uri>http://www.blogger.com/profile/16359757080751416618</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://2.bp.blogspot.com/_OTaCcGGC-Nw/SxXRrLli8bI/AAAAAAAAAAM/Wpe2j-PAhh0/s72-c/APPLET.bmp' height='72' width='72'/><thr:total>4</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4083012570879898065.post-4830717835635005189</id><published>2009-11-24T16:35:00.000-08:00</published><updated>2009-11-24T16:36:53.654-08:00</updated><title type='text'>CONSULTA SOBRE UN APPLET</title><content type='html'>&lt;p class="MsoNormal" style="text-align: justify;margin-bottom: 1.2pt; line-height: 14.4pt; "&gt;&lt;span style="font-size:14.0pt;font-family:&amp;quot;Arial&amp;quot;,&amp;quot;sans-serif&amp;quot;; mso-fareast-font-family:&amp;quot;Times New Roman&amp;quot;;color:black;mso-font-kerning:18.0pt; mso-fareast-language:ES"&gt;¿Qué es un Applet?&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-top:4.8pt;margin-right:0cm;margin-bottom:6.0pt; margin-left:0cm;text-align:justify;line-height:18.0pt"&gt;&lt;/p&gt;&lt;ul&gt;&lt;li style="text-align: justify;"&gt;&lt;span style="font-size: 10.0pt;font-family:&amp;quot;Arial&amp;quot;,&amp;quot;sans-serif&amp;quot;;mso-fareast-font-family:&amp;quot;Times New Roman&amp;quot;; color:black;mso-fareast-language:ES"&gt;&lt;span style="mso-spacerun:yes"&gt; &lt;/span&gt;&lt;b style="mso-bidi-font-weight:normal"&gt;Definición: &lt;/b&gt;Podemos decir que &lt;span style="mso-spacerun:yes"&gt; &lt;/span&gt;un&lt;/span&gt;&lt;span style="font-size:10.0pt; mso-bidi-font-size:11.0pt;font-family:&amp;quot;Arial&amp;quot;,&amp;quot;sans-serif&amp;quot;;mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;;color:black;mso-fareast-language:ES"&gt; &lt;/span&gt;&lt;i&gt;&lt;span style="font-size:10.0pt;font-family:&amp;quot;Arial&amp;quot;,&amp;quot;sans-serif&amp;quot;;mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;;color:black;mso-fareast-language:ES;mso-bidi-font-weight: bold"&gt;applet&lt;/span&gt;&lt;/i&gt;&lt;span style="font-size:10.0pt;mso-bidi-font-size:11.0pt; font-family:&amp;quot;Arial&amp;quot;,&amp;quot;sans-serif&amp;quot;;mso-fareast-font-family:&amp;quot;Times New Roman&amp;quot;; color:black;mso-fareast-language:ES"&gt; &lt;/span&gt;&lt;span style="font-size:10.0pt; font-family:&amp;quot;Arial&amp;quot;,&amp;quot;sans-serif&amp;quot;;mso-fareast-font-family:&amp;quot;Times New Roman&amp;quot;; color:black;mso-fareast-language:ES"&gt;es un componente de una&lt;/span&gt;&lt;span style="font-size:10.0pt;mso-bidi-font-size:11.0pt;font-family:&amp;quot;Arial&amp;quot;,&amp;quot;sans-serif&amp;quot;; mso-fareast-font-family:&amp;quot;Times New Roman&amp;quot;;color:black;mso-fareast-language: ES"&gt; &lt;/span&gt;&lt;i&gt;&lt;span style="font-size:10.0pt;font-family:&amp;quot;Arial&amp;quot;,&amp;quot;sans-serif&amp;quot;; mso-fareast-font-family:&amp;quot;Times New Roman&amp;quot;;color:black;mso-fareast-language: ES"&gt;&lt;a href="http://es.wikipedia.org/wiki/Software" title="Software"&gt;&lt;span style="mso-bidi-font-size:11.0pt;color:#5A3696"&gt;aplicación&lt;/span&gt;&lt;/a&gt;&lt;/span&gt;&lt;/i&gt;&lt;span style="font-size:10.0pt;mso-bidi-font-size:11.0pt;font-family:&amp;quot;Arial&amp;quot;,&amp;quot;sans-serif&amp;quot;; mso-fareast-font-family:&amp;quot;Times New Roman&amp;quot;;color:black;mso-fareast-language: ES"&gt; &lt;/span&gt;&lt;span style="font-size:10.0pt;font-family:&amp;quot;Arial&amp;quot;,&amp;quot;sans-serif&amp;quot;; mso-fareast-font-family:&amp;quot;Times New Roman&amp;quot;;color:black;mso-fareast-language: ES"&gt;que se ejecuta en el contexto de otro programa, por ejemplo un&lt;/span&gt;&lt;span style="font-size:10.0pt;mso-bidi-font-size:11.0pt;font-family:&amp;quot;Arial&amp;quot;,&amp;quot;sans-serif&amp;quot;; mso-fareast-font-family:&amp;quot;Times New Roman&amp;quot;;color:black;mso-fareast-language: ES"&gt; &lt;/span&gt;&lt;span style="font-size:10.0pt;font-family:&amp;quot;Arial&amp;quot;,&amp;quot;sans-serif&amp;quot;; mso-fareast-font-family:&amp;quot;Times New Roman&amp;quot;;color:black;mso-fareast-language: ES"&gt;&lt;a href="http://es.wikipedia.org/wiki/Navegador_web" title="Navegador web"&gt;&lt;span style="mso-bidi-font-size:11.0pt;color:#002BB8"&gt;navegador web&lt;/span&gt;&lt;/a&gt;. El&lt;/span&gt;&lt;span style="font-size:10.0pt;mso-bidi-font-size:11.0pt;font-family:&amp;quot;Arial&amp;quot;,&amp;quot;sans-serif&amp;quot;; mso-fareast-font-family:&amp;quot;Times New Roman&amp;quot;;color:black;mso-fareast-language: ES"&gt; &lt;/span&gt;&lt;i&gt;&lt;span style="font-size:10.0pt;font-family:&amp;quot;Arial&amp;quot;,&amp;quot;sans-serif&amp;quot;; mso-fareast-font-family:&amp;quot;Times New Roman&amp;quot;;color:black;mso-fareast-language: ES"&gt;applet&lt;/span&gt;&lt;/i&gt;&lt;span style="font-size:10.0pt;mso-bidi-font-size:11.0pt; font-family:&amp;quot;Arial&amp;quot;,&amp;quot;sans-serif&amp;quot;;mso-fareast-font-family:&amp;quot;Times New Roman&amp;quot;; color:black;mso-fareast-language:ES"&gt; &lt;/span&gt;&lt;span style="font-size:10.0pt; font-family:&amp;quot;Arial&amp;quot;,&amp;quot;sans-serif&amp;quot;;mso-fareast-font-family:&amp;quot;Times New Roman&amp;quot;; color:black;mso-fareast-language:ES"&gt;debe ejecutarse en un&lt;/span&gt;&lt;span style="font-size:10.0pt;mso-bidi-font-size:11.0pt;font-family:&amp;quot;Arial&amp;quot;,&amp;quot;sans-serif&amp;quot;; mso-fareast-font-family:&amp;quot;Times New Roman&amp;quot;;color:black;mso-fareast-language: ES"&gt; &lt;/span&gt;&lt;i&gt;&lt;span style="font-size:10.0pt;font-family:&amp;quot;Arial&amp;quot;,&amp;quot;sans-serif&amp;quot;; mso-fareast-font-family:&amp;quot;Times New Roman&amp;quot;;color:black;mso-fareast-language: ES"&gt;contenedor&lt;/span&gt;&lt;/i&gt;&lt;span style="font-size:10.0pt;font-family:&amp;quot;Arial&amp;quot;,&amp;quot;sans-serif&amp;quot;; mso-fareast-font-family:&amp;quot;Times New Roman&amp;quot;;color:black;mso-fareast-language: ES"&gt;, que lo proporciona un programa anfitrión, mediante un&lt;/span&gt;&lt;span style="font-size:10.0pt;mso-bidi-font-size:11.0pt;font-family:&amp;quot;Arial&amp;quot;,&amp;quot;sans-serif&amp;quot;; mso-fareast-font-family:&amp;quot;Times New Roman&amp;quot;;color:black;mso-fareast-language: ES"&gt; &lt;/span&gt;&lt;i&gt;&lt;span style="font-size:10.0pt;font-family:&amp;quot;Arial&amp;quot;,&amp;quot;sans-serif&amp;quot;; mso-fareast-font-family:&amp;quot;Times New Roman&amp;quot;;color:black;mso-fareast-language: ES"&gt;&lt;a href="http://es.wikipedia.org/wiki/Plugin" title="Plugin"&gt;&lt;span style="mso-bidi-font-size:11.0pt;color:#002BB8"&gt;plugin&lt;/span&gt;&lt;/a&gt;,&lt;/span&gt;&lt;/i&gt;&lt;span style="font-size:10.0pt;mso-bidi-font-size:11.0pt;font-family:&amp;quot;Arial&amp;quot;,&amp;quot;sans-serif&amp;quot;; mso-fareast-font-family:&amp;quot;Times New Roman&amp;quot;;color:black;mso-fareast-language: ES"&gt; &lt;/span&gt;&lt;span style="font-size:10.0pt;font-family:&amp;quot;Arial&amp;quot;,&amp;quot;sans-serif&amp;quot;; mso-fareast-font-family:&amp;quot;Times New Roman&amp;quot;;color:black;mso-fareast-language: ES"&gt;o en aplicaciones como teléfonos móviles que soportan el modelo de programación por&lt;/span&gt;&lt;span style="font-size:10.0pt;mso-bidi-font-size:11.0pt; font-family:&amp;quot;Arial&amp;quot;,&amp;quot;sans-serif&amp;quot;;mso-fareast-font-family:&amp;quot;Times New Roman&amp;quot;; color:black;mso-fareast-language:ES"&gt; &lt;/span&gt;&lt;i&gt;&lt;span style="font-size: 10.0pt;font-family:&amp;quot;Arial&amp;quot;,&amp;quot;sans-serif&amp;quot;;mso-fareast-font-family:&amp;quot;Times New Roman&amp;quot;; color:black;mso-fareast-language:ES"&gt;applets&lt;/span&gt;&lt;/i&gt;&lt;span style="font-size: 10.0pt;font-family:&amp;quot;Arial&amp;quot;,&amp;quot;sans-serif&amp;quot;;mso-fareast-font-family:&amp;quot;Times New Roman&amp;quot;; color:black;mso-fareast-language:ES"&gt;.&lt;/span&gt;&lt;/li&gt;&lt;/ul&gt;&lt;p&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;margin-top: 4.8pt; margin-right: 0cm; margin-bottom: 6pt; margin-left: 0cm; line-height: 18pt; "&gt;&lt;span style="font-size: 10.0pt;font-family:&amp;quot;Arial&amp;quot;,&amp;quot;sans-serif&amp;quot;;mso-fareast-font-family:&amp;quot;Times New Roman&amp;quot;; color:black;mso-fareast-language:ES"&gt;Un&lt;/span&gt;&lt;span style="font-size:10.0pt; mso-bidi-font-size:11.0pt;font-family:&amp;quot;Arial&amp;quot;,&amp;quot;sans-serif&amp;quot;;mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;;color:black;mso-fareast-language:ES"&gt; &lt;/span&gt;&lt;i&gt;&lt;span style="font-size:10.0pt;font-family:&amp;quot;Arial&amp;quot;,&amp;quot;sans-serif&amp;quot;;mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;;color:black;mso-fareast-language:ES"&gt;applet&lt;/span&gt;&lt;/i&gt;&lt;span style="font-size:10.0pt;mso-bidi-font-size:11.0pt;font-family:&amp;quot;Arial&amp;quot;,&amp;quot;sans-serif&amp;quot;; mso-fareast-font-family:&amp;quot;Times New Roman&amp;quot;;color:black;mso-fareast-language: ES"&gt; &lt;/span&gt;&lt;span style="font-size:10.0pt;font-family:&amp;quot;Arial&amp;quot;,&amp;quot;sans-serif&amp;quot;; mso-fareast-font-family:&amp;quot;Times New Roman&amp;quot;;color:black;mso-fareast-language: ES"&gt;no puede ejecutarse de manera independiente. Un&lt;/span&gt;&lt;span style="font-size:10.0pt;mso-bidi-font-size:11.0pt;font-family:&amp;quot;Arial&amp;quot;,&amp;quot;sans-serif&amp;quot;; mso-fareast-font-family:&amp;quot;Times New Roman&amp;quot;;color:black;mso-fareast-language: ES"&gt; &lt;/span&gt;&lt;i&gt;&lt;span style="font-size:10.0pt;font-family:&amp;quot;Arial&amp;quot;,&amp;quot;sans-serif&amp;quot;; mso-fareast-font-family:&amp;quot;Times New Roman&amp;quot;;color:black;mso-fareast-language: ES"&gt;applet&lt;/span&gt;&lt;/i&gt;&lt;span style="font-size:10.0pt;mso-bidi-font-size:11.0pt; font-family:&amp;quot;Arial&amp;quot;,&amp;quot;sans-serif&amp;quot;;mso-fareast-font-family:&amp;quot;Times New Roman&amp;quot;; color:black;mso-fareast-language:ES"&gt; &lt;/span&gt;&lt;span style="font-size:10.0pt; font-family:&amp;quot;Arial&amp;quot;,&amp;quot;sans-serif&amp;quot;;mso-fareast-font-family:&amp;quot;Times New Roman&amp;quot;; color:black;mso-fareast-language:ES"&gt;normalmente lleva a cabo una función muy específica que carece de uso independiente. &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-top:4.8pt;margin-right:0cm;margin-bottom:6.0pt; margin-left:0cm;text-align:justify;line-height:18.0pt"&gt;&lt;/p&gt;&lt;ul&gt;&lt;li style="text-align: justify;"&gt;&lt;span class="Apple-style-span" style="font-family: Arial, sans-serif; font-size: 13px; font-weight: bold; "&gt;Aplicación&lt;/span&gt;&lt;/li&gt;&lt;/ul&gt;&lt;p&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;margin-top: 4.8pt; margin-right: 0cm; margin-bottom: 6pt; margin-left: 0cm; line-height: 18pt; "&gt;&lt;span style="font-size: 10.0pt;font-family:&amp;quot;Arial&amp;quot;,&amp;quot;sans-serif&amp;quot;;mso-fareast-font-family:&amp;quot;Times New Roman&amp;quot;; color:black;mso-fareast-language:ES"&gt;Un&lt;/span&gt;&lt;span style="font-size:10.0pt; mso-bidi-font-size:11.0pt;font-family:&amp;quot;Arial&amp;quot;,&amp;quot;sans-serif&amp;quot;;mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;;color:black;mso-fareast-language:ES"&gt; &lt;/span&gt;&lt;span style="font-size:10.0pt;font-family:&amp;quot;Arial&amp;quot;,&amp;quot;sans-serif&amp;quot;;mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;;color:black;mso-fareast-language:ES"&gt;&lt;a href="http://es.wikipedia.org/wiki/Java_applet" title="Java applet"&gt;&lt;span style="mso-bidi-font-size:11.0pt;color:#002BB8"&gt;Java applet&lt;/span&gt;&lt;/a&gt;&lt;/span&gt;&lt;span style="font-size:10.0pt;mso-bidi-font-size:11.0pt;font-family:&amp;quot;Arial&amp;quot;,&amp;quot;sans-serif&amp;quot;; mso-fareast-font-family:&amp;quot;Times New Roman&amp;quot;;color:black;mso-fareast-language: ES"&gt; &lt;/span&gt;&lt;span style="font-size:10.0pt;font-family:&amp;quot;Arial&amp;quot;,&amp;quot;sans-serif&amp;quot;; mso-fareast-font-family:&amp;quot;Times New Roman&amp;quot;;color:black;mso-fareast-language: ES"&gt;es un código JAVA que carece de un método main, por eso se utiliza principalmente para el trabajo de páginas web, ya que es un pequeño programa que es utilizado en una página HTML y representado por una pequeña pantalla gráfica dentro de ésta.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;margin-top: 4.8pt; margin-right: 0cm; margin-bottom: 6pt; margin-left: 0cm; line-height: 18pt; "&gt;&lt;span style="font-size: 10.0pt;font-family:&amp;quot;Arial&amp;quot;,&amp;quot;sans-serif&amp;quot;;mso-fareast-font-family:&amp;quot;Times New Roman&amp;quot;; color:black;mso-fareast-language:ES"&gt;Un&lt;/span&gt;&lt;span style="font-size:10.0pt; mso-bidi-font-size:11.0pt;font-family:&amp;quot;Arial&amp;quot;,&amp;quot;sans-serif&amp;quot;;mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;;color:black;mso-fareast-language:ES"&gt; &lt;/span&gt;&lt;b&gt;&lt;span style="font-size:10.0pt;font-family:&amp;quot;Arial&amp;quot;,&amp;quot;sans-serif&amp;quot;;mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;;color:black;mso-fareast-language:ES"&gt;applet Java&lt;/span&gt;&lt;/b&gt;&lt;span style="font-size:10.0pt;mso-bidi-font-size:11.0pt;font-family:&amp;quot;Arial&amp;quot;,&amp;quot;sans-serif&amp;quot;; mso-fareast-font-family:&amp;quot;Times New Roman&amp;quot;;color:black;mso-fareast-language: ES"&gt; &lt;/span&gt;&lt;span style="font-size:10.0pt;font-family:&amp;quot;Arial&amp;quot;,&amp;quot;sans-serif&amp;quot;; mso-fareast-font-family:&amp;quot;Times New Roman&amp;quot;;color:black;mso-fareast-language: ES"&gt;es un&lt;/span&gt;&lt;span style="font-size:10.0pt;mso-bidi-font-size:11.0pt; font-family:&amp;quot;Arial&amp;quot;,&amp;quot;sans-serif&amp;quot;;mso-fareast-font-family:&amp;quot;Times New Roman&amp;quot;; color:black;mso-fareast-language:ES"&gt; &lt;/span&gt;&lt;span style="font-size:10.0pt; font-family:&amp;quot;Arial&amp;quot;,&amp;quot;sans-serif&amp;quot;;mso-fareast-font-family:&amp;quot;Times New Roman&amp;quot;; color:black;mso-fareast-language:ES"&gt;&lt;a href="http://es.wikipedia.org/wiki/Applet" title="Applet"&gt;&lt;span style="mso-bidi-font-size: 11.0pt;color:#5A3696"&gt;applet&lt;/span&gt;&lt;/a&gt;&lt;/span&gt;&lt;span style="font-size:10.0pt; mso-bidi-font-size:11.0pt;font-family:&amp;quot;Arial&amp;quot;,&amp;quot;sans-serif&amp;quot;;mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;;color:black;mso-fareast-language:ES"&gt; &lt;/span&gt;&lt;span style="font-size:10.0pt;font-family:&amp;quot;Arial&amp;quot;,&amp;quot;sans-serif&amp;quot;;mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;;color:black;mso-fareast-language:ES"&gt;escrito en el&lt;/span&gt;&lt;span style="font-size:10.0pt;mso-bidi-font-size:11.0pt;font-family:&amp;quot;Arial&amp;quot;,&amp;quot;sans-serif&amp;quot;; mso-fareast-font-family:&amp;quot;Times New Roman&amp;quot;;color:black;mso-fareast-language: ES"&gt; &lt;/span&gt;&lt;span style="font-size:10.0pt;font-family:&amp;quot;Arial&amp;quot;,&amp;quot;sans-serif&amp;quot;; mso-fareast-font-family:&amp;quot;Times New Roman&amp;quot;;color:black;mso-fareast-language: ES"&gt;&lt;a href="http://es.wikipedia.org/wiki/Lenguaje_de_programaci%C3%B3n_Java" title="Lenguaje de programación Java"&gt;&lt;span style="mso-bidi-font-size:11.0pt; color:#002BB8"&gt;lenguaje de programación Java&lt;/span&gt;&lt;/a&gt;. Los applets de Java pueden correr en un&lt;/span&gt;&lt;span style="font-size:10.0pt;mso-bidi-font-size: 11.0pt;font-family:&amp;quot;Arial&amp;quot;,&amp;quot;sans-serif&amp;quot;;mso-fareast-font-family:&amp;quot;Times New Roman&amp;quot;; color:black;mso-fareast-language:ES"&gt; &lt;/span&gt;&lt;span style="font-size:10.0pt; font-family:&amp;quot;Arial&amp;quot;,&amp;quot;sans-serif&amp;quot;;mso-fareast-font-family:&amp;quot;Times New Roman&amp;quot;; color:black;mso-fareast-language:ES"&gt;&lt;a href="http://es.wikipedia.org/wiki/Navegador_web" title="Navegador web"&gt;&lt;span style="mso-bidi-font-size:11.0pt;color:#002BB8"&gt;navegador web&lt;/span&gt;&lt;/a&gt;&lt;/span&gt;&lt;span style="font-size:10.0pt;mso-bidi-font-size:11.0pt;font-family:&amp;quot;Arial&amp;quot;,&amp;quot;sans-serif&amp;quot;; mso-fareast-font-family:&amp;quot;Times New Roman&amp;quot;;color:black;mso-fareast-language: ES"&gt; &lt;/span&gt;&lt;span style="font-size:10.0pt;font-family:&amp;quot;Arial&amp;quot;,&amp;quot;sans-serif&amp;quot;; mso-fareast-font-family:&amp;quot;Times New Roman&amp;quot;;color:black;mso-fareast-language: ES"&gt;utilizando la&lt;/span&gt;&lt;span style="font-size:10.0pt;mso-bidi-font-size:11.0pt; font-family:&amp;quot;Arial&amp;quot;,&amp;quot;sans-serif&amp;quot;;mso-fareast-font-family:&amp;quot;Times New Roman&amp;quot;; color:black;mso-fareast-language:ES"&gt; &lt;/span&gt;&lt;span style="font-size:10.0pt; font-family:&amp;quot;Arial&amp;quot;,&amp;quot;sans-serif&amp;quot;;mso-fareast-font-family:&amp;quot;Times New Roman&amp;quot;; color:black;mso-fareast-language:ES"&gt;&lt;a href="http://es.wikipedia.org/wiki/Java_Virtual_Machine" title="Java Virtual Machine"&gt;&lt;span style="mso-bidi-font-size:11.0pt;color:#002BB8"&gt;Java Virtual Machine&lt;/span&gt;&lt;/a&gt;&lt;/span&gt;&lt;span style="font-size:10.0pt;mso-bidi-font-size: 11.0pt;font-family:&amp;quot;Arial&amp;quot;,&amp;quot;sans-serif&amp;quot;;mso-fareast-font-family:&amp;quot;Times New Roman&amp;quot;; color:black;mso-fareast-language:ES"&gt; &lt;/span&gt;&lt;span style="font-size:10.0pt; font-family:&amp;quot;Arial&amp;quot;,&amp;quot;sans-serif&amp;quot;;mso-fareast-font-family:&amp;quot;Times New Roman&amp;quot;; color:black;mso-fareast-language:ES"&gt;(JVM), o en el&lt;/span&gt;&lt;span style="font-size:10.0pt;mso-bidi-font-size:11.0pt;font-family:&amp;quot;Arial&amp;quot;,&amp;quot;sans-serif&amp;quot;; mso-fareast-font-family:&amp;quot;Times New Roman&amp;quot;;color:black;mso-fareast-language: ES"&gt; &lt;/span&gt;&lt;span style="font-size:10.0pt;font-family:&amp;quot;Arial&amp;quot;,&amp;quot;sans-serif&amp;quot;; mso-fareast-font-family:&amp;quot;Times New Roman&amp;quot;;color:black;mso-fareast-language: ES"&gt;&lt;a href="http://es.wikipedia.org/w/index.php?title=AppletViewer&amp;amp;action=edit&amp;amp;redlink=1" title="AppletViewer (aún no redactado)"&gt;&lt;span style="mso-bidi-font-size:11.0pt; color:#CC2200"&gt;AppletViewer&lt;/span&gt;&lt;/a&gt;&lt;/span&gt;&lt;span style="font-size:10.0pt; mso-bidi-font-size:11.0pt;font-family:&amp;quot;Arial&amp;quot;,&amp;quot;sans-serif&amp;quot;;mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;;color:black;mso-fareast-language:ES"&gt; &lt;/span&gt;&lt;span style="font-size:10.0pt;font-family:&amp;quot;Arial&amp;quot;,&amp;quot;sans-serif&amp;quot;;mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;;color:black;mso-fareast-language:ES"&gt;de&lt;/span&gt;&lt;span style="font-size:10.0pt;mso-bidi-font-size:11.0pt;font-family:&amp;quot;Arial&amp;quot;,&amp;quot;sans-serif&amp;quot;; mso-fareast-font-family:&amp;quot;Times New Roman&amp;quot;;color:black;mso-fareast-language: ES"&gt; &lt;/span&gt;&lt;span style="font-size:10.0pt;font-family:&amp;quot;Arial&amp;quot;,&amp;quot;sans-serif&amp;quot;; mso-fareast-font-family:&amp;quot;Times New Roman&amp;quot;;color:black;mso-fareast-language: ES"&gt;&lt;a href="http://es.wikipedia.org/wiki/Sun" title="Sun"&gt;&lt;span style="mso-bidi-font-size:11.0pt;color:#002BB8"&gt;Sun&lt;/span&gt;&lt;/a&gt;.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/p&gt;  &lt;h2 style="margin-top:0cm;margin-right:0cm;margin-bottom:7.2pt;margin-left: 0cm;text-align:justify;mso-line-height-alt:14.25pt"&gt;&lt;ul&gt;&lt;li style="text-align: justify;"&gt;&lt;span class="mw-headline"&gt;&lt;span style="font-size:14.5pt;font-family:&amp;quot;Arial&amp;quot;,&amp;quot;sans-serif&amp;quot;;color:black; font-weight:normal"&gt;Ciclo de vida&lt;/span&gt;&lt;/span&gt;&lt;span class="apple-converted-space"&gt;&lt;span style="font-size:14.5pt;font-family:&amp;quot;Arial&amp;quot;,&amp;quot;sans-serif&amp;quot;; color:black;font-weight:normal"&gt; &lt;/span&gt;&lt;/span&gt;&lt;/li&gt;&lt;/ul&gt;&lt;/h2&gt;  &lt;p style="text-align: justify;margin-top: 4.8pt; margin-right: 0cm; margin-bottom: 6pt; margin-left: 0cm; line-height: 18pt; "&gt;&lt;span style="font-size:10.0pt; font-family:&amp;quot;Arial&amp;quot;,&amp;quot;sans-serif&amp;quot;;color:black"&gt;Cuando un applet se inicia, se llaman en este orden a los siguientes métodos;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;margin-bottom: 1.2pt; margin-left: 38.4pt; text-indent: -18pt; line-height: 18pt; "&gt;&lt;span style="font-size:10.0pt;font-family:&amp;quot;Arial&amp;quot;,&amp;quot;sans-serif&amp;quot;;mso-fareast-font-family: Arial;color:black"&gt;&lt;span style="mso-list:Ignore"&gt;1.&lt;span style="font:7.0pt &amp;quot;Times New Roman&amp;quot;"&gt;    &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;code&gt;&lt;span style="font-size:10.0pt;mso-fareast-font-family: Calibri;mso-fareast-theme-font:minor-latin;color:black;background:#F9F9F9"&gt;init&lt;/span&gt;&lt;/code&gt;&lt;span style="font-size:10.0pt;font-family:&amp;quot;Arial&amp;quot;,&amp;quot;sans-serif&amp;quot;;color:black"&gt;: Suele contener instrucciones para inicializar el applet.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;margin-bottom: 1.2pt; margin-left: 38.4pt; text-indent: -18pt; line-height: 18pt; "&gt;&lt;span style="font-size:10.0pt;font-family:&amp;quot;Arial&amp;quot;,&amp;quot;sans-serif&amp;quot;;mso-fareast-font-family: Arial;color:black"&gt;&lt;span style="mso-list:Ignore"&gt;2.&lt;span style="font:7.0pt &amp;quot;Times New Roman&amp;quot;"&gt;    &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;code&gt;&lt;span style="font-size:10.0pt;mso-fareast-font-family: Calibri;mso-fareast-theme-font:minor-latin;color:black;background:#F9F9F9"&gt;start&lt;/span&gt;&lt;/code&gt;&lt;span style="font-size:10.0pt;font-family:&amp;quot;Arial&amp;quot;,&amp;quot;sans-serif&amp;quot;;color:black"&gt;: Como&lt;span class="apple-converted-space"&gt; &lt;/span&gt;&lt;/span&gt;&lt;code&gt;&lt;span style="font-size: 10.0pt;mso-fareast-font-family:Calibri;mso-fareast-theme-font:minor-latin; color:black;background:#F9F9F9"&gt;init&lt;/span&gt;&lt;/code&gt;&lt;span style="font-size:10.0pt; font-family:&amp;quot;Arial&amp;quot;,&amp;quot;sans-serif&amp;quot;;color:black"&gt;, se suele usar para inicializar, pero con la diferencia de que este método también se llama cuando se reinicia un applet.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;margin-bottom: 1.2pt; margin-left: 38.4pt; text-indent: -18pt; line-height: 18pt; "&gt;&lt;span style="font-size:10.0pt;font-family:&amp;quot;Arial&amp;quot;,&amp;quot;sans-serif&amp;quot;;mso-fareast-font-family: Arial;color:black"&gt;&lt;span style="mso-list:Ignore"&gt;3.&lt;span style="font:7.0pt &amp;quot;Times New Roman&amp;quot;"&gt;    &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;code&gt;&lt;span style="font-size:10.0pt;mso-fareast-font-family: Calibri;mso-fareast-theme-font:minor-latin;color:black;background:#F9F9F9"&gt;paint&lt;/span&gt;&lt;/code&gt;&lt;span style="font-size:10.0pt;font-family:&amp;quot;Arial&amp;quot;,&amp;quot;sans-serif&amp;quot;;color:black"&gt;: Se encarga de mostrar el contenido del applet. Se ejecuta cada vez que se tenga que redibujar.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p style="text-align: justify;margin-top: 4.8pt; margin-right: 0cm; margin-bottom: 6pt; margin-left: 0cm; line-height: 18pt; "&gt;&lt;span style="font-size:10.0pt; font-family:&amp;quot;Arial&amp;quot;,&amp;quot;sans-serif&amp;quot;;color:black"&gt;Para terminar la ejecución o pausarse se llama a los siguientes métodos:&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;margin-bottom: 1.2pt; margin-left: 18pt; text-indent: -18pt; line-height: 18pt; "&gt;&lt;span style="font-size:10.0pt;font-family:Wingdings;mso-fareast-font-family:Wingdings; mso-bidi-font-family:Wingdings;color:black"&gt;&lt;span style="mso-list:Ignore"&gt;§&lt;span style="font:7.0pt &amp;quot;Times New Roman&amp;quot;"&gt;  &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;code&gt;&lt;span style="font-size:10.0pt;mso-fareast-font-family:Calibri;mso-fareast-theme-font: minor-latin;color:black;background:#F9F9F9"&gt;stop&lt;/span&gt;&lt;/code&gt;&lt;span style="font-size:10.0pt;font-family:&amp;quot;Arial&amp;quot;,&amp;quot;sans-serif&amp;quot;;color:black"&gt;: Suspende la ejecución del programa. Se llama cuando el applet se vuelve temporalmente invisible.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;margin-bottom: 1.2pt; margin-left: 18pt; text-indent: -18pt; line-height: 18pt; "&gt;&lt;span style="font-size:10.0pt;font-family:Wingdings;mso-fareast-font-family:Wingdings; mso-bidi-font-family:Wingdings;color:black"&gt;&lt;span style="mso-list:Ignore"&gt;§&lt;span style="font:7.0pt &amp;quot;Times New Roman&amp;quot;"&gt;  &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;code&gt;&lt;span style="font-size:10.0pt;mso-fareast-font-family:Calibri;mso-fareast-theme-font: minor-latin;color:black;background:#F9F9F9"&gt;destroy&lt;/span&gt;&lt;/code&gt;&lt;span style="font-size:10.0pt;font-family:&amp;quot;Arial&amp;quot;,&amp;quot;sans-serif&amp;quot;;color:black"&gt;: Cuando no se va a necesitar más el applet. Se usa para liberar recursos.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4083012570879898065-4830717835635005189?l=joseromero495.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://joseromero495.blogspot.com/feeds/4830717835635005189/comments/default' title='Enviar comentarios'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=4083012570879898065&amp;postID=4830717835635005189' title='4 comentarios'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4083012570879898065/posts/default/4830717835635005189'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4083012570879898065/posts/default/4830717835635005189'/><link rel='alternate' type='text/html' href='http://joseromero495.blogspot.com/2009/11/consulta-sobre-un-applet.html' title='CONSULTA SOBRE UN APPLET'/><author><name>José Romero</name><uri>http://www.blogger.com/profile/16359757080751416618</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>4</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4083012570879898065.post-8432207629189169681</id><published>2009-11-22T14:18:00.000-08:00</published><updated>2009-11-22T16:36:38.665-08:00</updated><title type='text'>M R U V con Vector3D</title><content type='html'>&lt;b&gt;public class Matriz {&lt;/b&gt;&lt;br /&gt;public int numeroFilas;&lt;br /&gt;public int numeroColumnas;&lt;br /&gt;public double [][]matriz;&lt;br /&gt;&lt;br /&gt;//crea una matriz sin dimensiones&lt;br /&gt;public Matriz(){&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;//constructor con parametros&lt;br /&gt;//nF es el numero de filas&lt;br /&gt;//nc es el numero de columnas&lt;br /&gt;public Matriz(int nF, int nC){&lt;br /&gt;numeroFilas = nF;&lt;br /&gt;numeroColumnas = nC;&lt;br /&gt;matriz = new double [numeroFilas][numeroColumnas];&lt;br /&gt;&lt;br /&gt;for(int i=0; i &lt; numeroFilas; i++)&lt;br /&gt;for(int j=0; j &lt; numeroColumnas; j++)&lt;br /&gt;matriz[i][j]=0;&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;//metodo de suma de matrices&lt;br /&gt;//b es el primer sumando&lt;br /&gt;//retorna una matriz resultado de suma&lt;br /&gt;public Matriz suma(Matriz b){&lt;br /&gt;Matriz resultado;&lt;br /&gt;//primero revisamos que las filas y las columnas sean iguales&lt;br /&gt;//this referencia a un  objeto que au no esta creado pero que alguien algun momento lo va a crear&lt;br /&gt;if((this.numeroFilas == b.numeroFilas)&amp;amp;&amp;amp; (this.numeroColumnas == b.numeroColumnas)){&lt;br /&gt;resultado = new Matriz(this.numeroFilas, this.numeroColumnas);&lt;br /&gt;for(int i=0; i &lt; this.numeroFilas; i++)&lt;br /&gt;for(int j=0; j &lt; this.numeroColumnas; j++)&lt;br /&gt;resultado.matriz[i][j] = this.matriz[i][j]+ b.matriz[i][j];&lt;br /&gt;return resultado;&lt;br /&gt;}&lt;br /&gt;else&lt;br /&gt;System.out.println("ERROR EN DIMENSIONES DE LAS MATRICES");&lt;br /&gt;resultado=null;&lt;br /&gt;return resultado;&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;public Matriz resta(Matriz b){&lt;br /&gt;Matriz resultado;&lt;br /&gt;//primero revisamos que las filas y las columnas sean iguales&lt;br /&gt;//this referencia a un  objeto que au no esta creado pero que alguien algun momento lo va a crear&lt;br /&gt;if((this.numeroFilas == b.numeroFilas)&amp;amp;&amp;amp; (this.numeroColumnas == b.numeroColumnas)){&lt;br /&gt;resultado = new Matriz(this.numeroFilas, this.numeroColumnas);&lt;br /&gt;for(int i=0; i &lt; this.numeroFilas; i++)&lt;br /&gt;for(int j=0; j &lt; this.numeroColumnas; j++)&lt;br /&gt;resultado.matriz[i][j] = this.matriz[i][j]- b.matriz[i][j];&lt;br /&gt;return resultado;&lt;br /&gt;}&lt;br /&gt;else&lt;br /&gt;System.out.println("ERROR EN DIMENSIONES DE LAS MATRICES");&lt;br /&gt;resultado=null;&lt;br /&gt;return resultado;&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;//metodo de multiplicacion de matrices&lt;br /&gt;//retorna una matriz resultado resta&lt;br /&gt;public Matriz multiplicacion(Matriz b){&lt;br /&gt;Matriz resultado;&lt;br /&gt;if(this.numeroFilas == b.numeroColumnas){&lt;br /&gt;resultado=new Matriz(this.numeroFilas,b.numeroColumnas);&lt;br /&gt;for(int i=0; i &lt; this.numeroFilas; i++){&lt;br /&gt;for(int j=0; j &lt; b.numeroColumnas; j++){&lt;br /&gt;for(int k=0; k &lt; this.numeroFilas; k++)&lt;br /&gt;resultado.matriz[i][j] += (this.matriz[i][k]*b.matriz[k][j]);&lt;br /&gt;}&lt;br /&gt;}&lt;br /&gt;return resultado;&lt;br /&gt;}&lt;br /&gt;else&lt;br /&gt;System.out.println("error en dimensiones de las matrices");&lt;br /&gt;resultado = null;&lt;br /&gt;return resultado;&lt;br /&gt;}&lt;br /&gt;//devuelve el objeto matriz en texto para poderlo imprimir&lt;br /&gt;public String toString(){&lt;br /&gt;String aux="\n[\n";&lt;br /&gt;for(int i=0; i &lt; numeroFilas; i++){&lt;br /&gt;for(int j=0; j &lt; numeroColumnas; j++){&lt;br /&gt;aux += matriz[i][j]+"   ";&lt;br /&gt;}&lt;br /&gt;aux+="\n";&lt;br /&gt;}&lt;br /&gt;aux+= "]";&lt;br /&gt;return aux;&lt;br /&gt;}&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;b&gt;public class Vector3D extends Matriz{&lt;/b&gt;&lt;br /&gt;double coordenadaX;&lt;br /&gt;double coordenadaY;&lt;br /&gt;double coordenadaZ;&lt;br /&gt;&lt;br /&gt;public Vector3D(){&lt;br /&gt;super(1,3);&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;public Vector3D(double x, double y, double z){&lt;br /&gt;super(1,3);&lt;br /&gt;this.matriz[0][0] = x;&lt;br /&gt;this.matriz[0][1] = y;&lt;br /&gt;this.matriz[0][2] = z;&lt;br /&gt;coordenadaX = x;&lt;br /&gt;coordenadaY = y;&lt;br /&gt;coordenadaZ = z;&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;public double magnitud(){&lt;br /&gt;double resultado = 0;&lt;br /&gt;for(int i=0; i &lt; 3; i++){&lt;br /&gt;resultado += this.matriz[0][i]*this.matriz[0][i];&lt;br /&gt;}&lt;br /&gt;resultado = Math.sqrt(resultado);&lt;br /&gt;return resultado;&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;//segunda forma de hacer la magnitud&lt;br /&gt;public double magnitud1(){&lt;br /&gt;double resultado;&lt;br /&gt;resultado = this.coordenadaX*this.coordenadaX+this.coordenadaY*this.coordenadaY+this.coordenadaZ*this.coordenadaZ;&lt;br /&gt;resultado = Math.sqrt(resultado);&lt;br /&gt;return resultado;&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;//tercera forma de hacer la magnitud&lt;br /&gt;public double magnitud2(){&lt;br /&gt;double resultado;&lt;br /&gt;resultado = Math.pow(this.coordenadaX, 2)+Math.pow(this.coordenadaY, 2)+Math.pow(this.coordenadaZ, 2);&lt;br /&gt;resultado = Math.sqrt(resultado);&lt;br /&gt;return resultado;&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;public Matriz unitario(){&lt;br /&gt;Vector3D unitario = new Vector3D();&lt;br /&gt;for(int i=0; i &lt; 3; i++)&lt;br /&gt;unitario.matriz[0][i] = this.matriz[0][i]/this.magnitud2();&lt;br /&gt;return unitario;&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;public double productoEscalar(Vector3D v){&lt;br /&gt;double resultado = 0;&lt;br /&gt;for(int i=0; i &lt; 3; i++)&lt;br /&gt;resultado += this.matriz[0][i]*v.matriz[0][i];&lt;br /&gt;return resultado;&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;public Matriz productoCruz(Vector3D v){&lt;br /&gt;Vector3D resultado;&lt;br /&gt;resultado = new Vector3D();&lt;br /&gt;resultado.matriz[0][0] = this.matriz[0][1]*v.matriz[0][2]-this.matriz[0][2]*v.matriz[0][1];&lt;br /&gt;resultado.matriz[0][1] = this.matriz[0][2]*v.matriz[0][0]-this.matriz[0][0]*v.matriz[0][2];&lt;br /&gt;resultado.matriz[0][2] = this.matriz[0][0]*v.matriz[0][1]-this.matriz[0][1]*v.matriz[0][0];&lt;br /&gt;return resultado;&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;public Matriz productoVectorEscalar(double a){&lt;br /&gt;Vector3D resultado = new Vector3D();&lt;br /&gt;for(int i = 0; i &lt; 3; i++)&lt;br /&gt;resultado.matriz[0][i] = this.matriz[0][i]*a;&lt;br /&gt;&lt;br /&gt;return resultado;&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;public static void main(String args[]){&lt;br /&gt;Vector3D v1 = new Vector3D(-1,1,-1);&lt;br /&gt;Vector3D v2 = new Vector3D(0,2,0);&lt;br /&gt;System.out.println(v1+"\n"+v2);&lt;br /&gt;System.out.println("LA COORDENADA EN X ES: "+v1.coordenadaX);&lt;br /&gt;System.out.println("\nLA SUMA DE LOS VECTORES ES: "+(v1.suma(v2)));&lt;br /&gt;System.out.println("\nLA MAGNITUD DEL VECTOR ES: "+v1.magnitud());&lt;br /&gt;System.out.println("\nLA MAGNITUD DEL VECTOR ES: "+v1.magnitud1());&lt;br /&gt;System.out.println("\nLA MAGNITUD DEL VECTOR ES: "+v1.magnitud2());&lt;br /&gt;System.out.println("\nEL VECTOR UNITARIO ES: "+v1.unitario());&lt;br /&gt;System.out.println("\nEL PRODUCTO ESCALAR ENTRE LOS DOS VECTORES ES: "+v1.productoEscalar(v2));&lt;br /&gt;System.out.println("\nEL PRODUCTO CRUZ ENTRE LOS DOS VECTORES ES: "+v1.productoCruz(v2));&lt;br /&gt;}&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;&lt;b&gt;public class MovRecUniVar {&lt;br /&gt;&lt;/b&gt;&lt;br /&gt;Matriz posicion;&lt;br /&gt;Matriz velocidad;&lt;br /&gt;Matriz aceleracion;&lt;br /&gt;&lt;br /&gt;public MovRecUniVar(){&lt;br /&gt;&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;public MovRecUniVar(Vector3D pos, Vector3D velo, Vector3D ace){&lt;br /&gt;posicion = pos;&lt;br /&gt;velocidad = velo;&lt;br /&gt;aceleracion = ace;&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;public void calculaPosición(Vector3D r0, Vector3D vel,Vector3D a,double t){&lt;br /&gt;posicion = r0.suma(vel.productoVectorEscalar(t)).suma(a.productoVectorEscalar(Math.pow(t,2)/2));&lt;br /&gt;&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;public void calculaVelocidad(Vector3D vel0, Vector3D a, double t){&lt;br /&gt;velocidad = vel0.suma(a.productoVectorEscalar(t));&lt;br /&gt;&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;public void calculaAceleracion(Vector3D vel, Vector3D vel0, double t){&lt;br /&gt;&lt;br /&gt;//aceleracion = a;&lt;br /&gt;aceleracion = (vel.productoVectorEscalar(Math.pow(1,1)/2)).resta(vel0.productoVectorEscalar(Math.pow(1,1)/2));&lt;br /&gt;}&lt;br /&gt;public static void main(String args[]){&lt;br /&gt;MovRecUniVar m = new  MovRecUniVar();&lt;br /&gt;Vector3D r0 = new Vector3D(5,0,0);&lt;br /&gt;Vector3D v0 = new Vector3D(0,0,0);&lt;br /&gt;Vector3D a = new Vector3D(3,0,0);&lt;br /&gt;Vector3D v = new Vector3D(10,0,0);&lt;br /&gt;double t = 2;&lt;br /&gt;&lt;br /&gt;m.calculaPosición(r0, v0, a, t);&lt;br /&gt;m.calculaVelocidad(v0,a, t);&lt;br /&gt;m.calculaAceleracion(v,v0,t);&lt;br /&gt;&lt;br /&gt;System.out.println("Posicion a los 2s para r0 = \n " +m.posicion+&lt;br /&gt;"\nvelocidad a t = 2s\n"+m.velocidad+"\n aceleracion\n"+m.aceleracion );&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;}&lt;br /&gt;&lt;b&gt;// RESULTADO&lt;/b&gt;&lt;br /&gt;Posicion a los 2s para r0 =&lt;br /&gt;&lt;br /&gt;[&lt;br /&gt;11.0   0.0   0.0&lt;br /&gt;]&lt;br /&gt;velocidad a t = 2s&lt;br /&gt;&lt;br /&gt;[&lt;br /&gt;6.0   0.0   0.0&lt;br /&gt;]&lt;br /&gt;aceleracion&lt;br /&gt;&lt;br /&gt;[&lt;br /&gt;5.0   0.0   0.0&lt;br /&gt;]&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4083012570879898065-8432207629189169681?l=joseromero495.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://joseromero495.blogspot.com/feeds/8432207629189169681/comments/default' title='Enviar comentarios'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=4083012570879898065&amp;postID=8432207629189169681' title='7 comentarios'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4083012570879898065/posts/default/8432207629189169681'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4083012570879898065/posts/default/8432207629189169681'/><link rel='alternate' type='text/html' href='http://joseromero495.blogspot.com/2009/11/m-r-u-v-con-vectord.html' title='M R U V con Vector3D'/><author><name>José Romero</name><uri>http://www.blogger.com/profile/16359757080751416618</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>7</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4083012570879898065.post-7459796658440063560</id><published>2009-11-15T13:24:00.000-08:00</published><updated>2009-11-22T13:10:30.990-08:00</updated><title type='text'>Vectores 3D (Vector unitario, producto escalar, producto cruz)</title><content type='html'>&lt;span class="Apple-style-span" style="font-family: Helvetica, Arial, Verdana, 'Trebuchet MS', sans-serif; font-size: 13px; "&gt;&lt;b&gt;public class Matriz {&lt;/b&gt;&lt;br /&gt;public int numeroFilas;&lt;br /&gt;public int numeroColumnas;&lt;br /&gt;public double [][]matriz;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;public Matriz(){&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;public Matriz(int nF, int nC){&lt;br /&gt;numeroFilas = nF;&lt;br /&gt;numeroColumnas = nC;&lt;br /&gt;matriz = new double [numeroFilas][numeroColumnas];&lt;br /&gt;&lt;br /&gt;for(int i=0; i &lt; numeroFilas; i++)&lt;br /&gt;for(int j=0; j &lt; numeroColumnas; j++)&lt;br /&gt;matriz[i][j]=0;&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;public Matriz suma(Matriz b){&lt;br /&gt;Matriz resultado;&lt;br /&gt;//primero revisamos que las filas y las columnas sean iguales&lt;br /&gt;//this referencia a un objeto que au no esta creado pero que alguien algun momento lo va a crear&lt;br /&gt;if((this.numeroFilas == b.numeroFilas)&amp;amp;&amp;amp; (this.numeroColumnas == b.numeroColumnas)){&lt;br /&gt;resultado = new Matriz(this.numeroFilas, this.numeroColumnas);&lt;br /&gt;for(int i=0; i &lt; this.numeroFilas; i++)&lt;br /&gt;for(int j=0; j &lt; this.numeroColumnas; j++)&lt;br /&gt;resultado.matriz[i][j] = this.matriz[i][j]+ b.matriz[i][j];&lt;br /&gt;return resultado;&lt;br /&gt;}&lt;br /&gt;else&lt;br /&gt;System.out.println("ERROR EN DIMENSIONES DE LAS MATRICES");&lt;br /&gt;resultado=null;&lt;br /&gt;return resultado;&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;//metodo de multiplicacion de matrices&lt;br /&gt;//retorna una matriz resultado resta&lt;br /&gt;public Matriz multiplicacion(Matriz b){&lt;br /&gt;Matriz resultado;&lt;br /&gt;if(this.numeroFilas == b.numeroColumnas){&lt;br /&gt;resultado=new Matriz(this.numeroFilas,b.numeroColumnas);&lt;br /&gt;for(int i=0; i &lt; this.numeroFilas; i++){&lt;br /&gt;for(int j=0; j &lt; b.numeroColumnas; j++){&lt;br /&gt;for(int k=0; k &lt; this.numeroFilas; k++)&lt;br /&gt;resultado.matriz[i][j] += (this.matriz[i][k]*b.matriz[k][j]);&lt;br /&gt;}&lt;br /&gt;}&lt;br /&gt;return resultado;&lt;br /&gt;}&lt;br /&gt;else&lt;br /&gt;System.out.println("error en dimensiones de las matrices");&lt;br /&gt;resultado = null;&lt;br /&gt;return resultado;&lt;br /&gt;}&lt;br /&gt;//devuelve el objeto matriz en texto para poderlo imprimir&lt;br /&gt;public String toString(){&lt;br /&gt;String aux="\n[\n";&lt;br /&gt;for(int i=0; i &lt; numeroFilas; i++){&lt;br /&gt;for(int j=0; j &lt; numeroColumnas; j++){&lt;br /&gt;aux += matriz[i][j]+" ";&lt;br /&gt;}&lt;br /&gt;aux+="\n";&lt;br /&gt;}&lt;br /&gt;aux+= "]";&lt;br /&gt;return aux;&lt;br /&gt;}&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-weight: 900;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;b&gt;public class Vector3D extends Matriz{&lt;/b&gt;&lt;br /&gt;double coordenadaX;&lt;br /&gt;double coordenadaY;&lt;br /&gt;double coordenadaZ;&lt;br /&gt;&lt;br /&gt;public Vector3D(){&lt;br /&gt;super(1,3);&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;public Vector3D(double x, double y, double z){&lt;br /&gt;super(1,3);&lt;br /&gt;this.matriz[0][0] = x;&lt;br /&gt;this.matriz[0][1] = y;&lt;br /&gt;this.matriz[0][2] = z;&lt;br /&gt;coordenadaX = x;&lt;br /&gt;coordenadaY = y;&lt;br /&gt;coordenadaZ = z;&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;public double magnitud(){&lt;br /&gt;double resultado = 0;&lt;br /&gt;for(int i=0; i &lt; 3; i++){&lt;br /&gt;resultado + = this.matriz[0][i]*this.matriz[0][i];&lt;br /&gt;}&lt;br /&gt;resultado = Math.sqrt(resultado);&lt;br /&gt;return resultado;&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;//segunda forma de hacer la magnitud&lt;br /&gt;public double magnitud1(){&lt;br /&gt;double resultado;&lt;br /&gt;resultado = this.coordenadaX*this.coordenadaX+this.coordenadaY*this.coordenadaY+this.coordenadaZ*this.coordenadaZ;&lt;br /&gt;resultado = Math.sqrt(resultado);&lt;br /&gt;return resultado;&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;//tercera forma de hacer la magnitud&lt;br /&gt;public double magnitud2(){&lt;br /&gt;double resultado;&lt;br /&gt;resultado = Math.pow(this.coordenadaX, 2)+Math.pow(this.coordenadaY, 2)+Math.pow(this.coordenadaZ, 2);&lt;br /&gt;resultado = Math.sqrt(resultado);&lt;br /&gt;return resultado;&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;public Vector3D unitario(){&lt;br /&gt;Vector3D unitario = new Vector3D();&lt;br /&gt;for(int i=0; i &lt; 3; i++)&lt;br /&gt;unitario.matriz[0][i] = this.matriz[0][i]/this.magnitud2();&lt;br /&gt;return unitario;&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;public double productoEscalar(Vector3D v){&lt;br /&gt;double resultado = 0;&lt;br /&gt;for(int i=0; i &lt; 3; i++)&lt;br /&gt;resultado += this.matriz[0][i]*v.matriz[0][i];&lt;br /&gt;return resultado;&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;public Vector3D productoCruz(Vector3D v){&lt;br /&gt;Vector3D resultado;&lt;br /&gt;resultado = new Vector3D();&lt;br /&gt;resultado.matriz[0][0] = this.matriz[0][1]*v.matriz[0][2]-this.matriz[0][2]*v.matriz[0][1];&lt;br /&gt;resultado.matriz[0][1] = this.matriz[0][2]*v.matriz[0][0]-this.matriz[0][0]*v.matriz[0][2];&lt;br /&gt;resultado.matriz[0][2] = this.matriz[0][0]*v.matriz[0][1]-this.matriz[0][1]*v.matriz[0][0];&lt;br /&gt;return resultado;&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;public static void main(String args[]){&lt;br /&gt;Vector3D v1 = new Vector3D(-1,1,-1);&lt;br /&gt;Vector3D v2 = new Vector3D(0,2,0);&lt;br /&gt;System.out.println(v1+"\n"+v2);&lt;br /&gt;System.out.println("La coordenada en x es: "+v1.coordenadaX);&lt;br /&gt;System.out.println("\nLa suma de 2 vectores es: "+(v1.suma(v2)));&lt;br /&gt;System.out.println("\nLLa magnitud del vector es: "+v1.magnitud());&lt;br /&gt;System.out.println("\nLLa magnitud del vector es: "+v1.magnitud1());&lt;br /&gt;System.out.println("\nLLa magnitud del vector es: "+v1.magnitud2());&lt;br /&gt;System.out.println("\nEl vector unitario es: "+v1.unitario());&lt;br /&gt;System.out.println("\nEL PRODUCTO ESCALAR ENTRE LOS DOS VECTORES ES: "+v1.productoEscalar(v2));&lt;br /&gt;System.out.println("\nEL PRODUCTO CRUZ ENTRE LOS DOS VECTORES ES: "+v1.productoCruz(v2));&lt;br /&gt;}&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;&lt;strong&gt;&lt;strong&gt;//RESULTADO&lt;/strong&gt;&lt;/strong&gt;&lt;/strong&gt;&lt;br /&gt;[&lt;br /&gt;-1.0 1.0 -1.0&lt;br /&gt;]&lt;br /&gt;&lt;br /&gt;[&lt;br /&gt;0.0 2.0 0.0&lt;br /&gt;]&lt;br /&gt;LA COORDENADA EN X ES: -1.0&lt;br /&gt;&lt;br /&gt;LA SUMA DE LOS VECTORES ES:&lt;br /&gt;[&lt;br /&gt;-1.0 3.0 -1.0&lt;br /&gt;]&lt;br /&gt;&lt;br /&gt;LA MAGNITUD DEL VECTOR ES: 1.7320508075688772&lt;br /&gt;&lt;br /&gt;LA MAGNITUD DEL VECTOR ES: 1.7320508075688772&lt;br /&gt;&lt;br /&gt;LA MAGNITUD DEL VECTOR ES: 1.7320508075688772&lt;br /&gt;&lt;br /&gt;EL VECTOR UNITARIO ES:&lt;br /&gt;[&lt;br /&gt;-0.5773502691896258 0.5773502691896258 -0.5773502691896258&lt;br /&gt;]&lt;br /&gt;&lt;br /&gt;EL PRODUCTO ESCALAR ENTRE LOS DOS VECTORES ES: 2.0&lt;br /&gt;&lt;br /&gt;EL PRODUCTO CRUZ ENTRE LOS DOS VECTORES ES:&lt;br /&gt;[&lt;br /&gt;2.0 0.0 -2.0&lt;br /&gt;]&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4083012570879898065-7459796658440063560?l=joseromero495.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://joseromero495.blogspot.com/feeds/7459796658440063560/comments/default' title='Enviar comentarios'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=4083012570879898065&amp;postID=7459796658440063560' title='6 comentarios'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4083012570879898065/posts/default/7459796658440063560'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4083012570879898065/posts/default/7459796658440063560'/><link rel='alternate' type='text/html' href='http://joseromero495.blogspot.com/2009/11/vectores-3d-vector-unitario-producto.html' title='Vectores 3D (Vector unitario, producto escalar, producto cruz)'/><author><name>José Romero</name><uri>http://www.blogger.com/profile/16359757080751416618</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>6</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4083012570879898065.post-4912751156667115806</id><published>2009-10-28T06:55:00.000-07:00</published><updated>2009-10-28T06:57:22.275-07:00</updated><title type='text'>Prueba de Programación</title><content type='html'>&lt;strong&gt;//José Romero&lt;/strong&gt;&lt;br /&gt;&lt;strong&gt;&lt;/strong&gt;&lt;br /&gt;&lt;strong&gt;//Programa&lt;br /&gt;&lt;/strong&gt;&lt;br /&gt;&lt;br /&gt;public class Matriz {&lt;br /&gt;public int numeroFilas;&lt;br /&gt;public int numeroColumnas;&lt;br /&gt;public double [][] matriz;&lt;br /&gt;&lt;br /&gt;public Matriz(){&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;}&lt;br /&gt;/**&lt;br /&gt;* Constructor con parametros&lt;br /&gt;* @param nF numero de filas&lt;br /&gt;* @param nC numero de columnas&lt;br /&gt;*/&lt;br /&gt;public Matriz(int nF, int nC){&lt;br /&gt;numeroFilas= nF;&lt;br /&gt;numeroColumnas= nC;&lt;br /&gt;matriz= new double[numeroFilas][numeroColumnas];&lt;br /&gt;for (int i=0; i&lt; numeroFilas; i++)&lt;br /&gt;for( int j=0; j&lt; numeroColumnas;j++)&lt;br /&gt;matriz[i][j]=0;&lt;br /&gt;&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;public Matriz Multiplicacion(Matriz m){&lt;br /&gt;Matriz resultado;&lt;br /&gt;&lt;br /&gt;if(this.numeroColumnas == m.numeroFilas){&lt;br /&gt;resultado=new Matriz(this.numeroFilas,m.numeroColumnas);&lt;br /&gt;for(int i=0; i&lt;this.numerofilas;&gt; for(int j=0; j&lt;m.numerocolumnas;&gt; for(int k=0; k&lt;this.numerocolumnas;&gt; resultado.matriz[i][j] += (this.matriz[i][k]*m.matriz[k][j]);&lt;br /&gt;}&lt;br /&gt;}&lt;br /&gt;return resultado;&lt;br /&gt;}&lt;br /&gt;else&lt;br /&gt;System.out.println("Hay un error en las dimensiones de las matrices");&lt;br /&gt;resultado=null;&lt;br /&gt;return resultado;&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;public Matriz Transpuesta(){&lt;br /&gt;Matriz resultado;&lt;br /&gt;resultado= new Matriz(this.numeroColumnas,this.numeroFilas);&lt;br /&gt;for(int i=0; i&lt; this.numeroFilas;i++)&lt;br /&gt;for(int j=0; j&lt; this.numeroColumnas;j++ )&lt;br /&gt;resultado.matriz[j][i]= this.matriz[i][j];&lt;br /&gt;return resultado;&lt;br /&gt;&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;public String toString(){&lt;br /&gt;String aux="";&lt;br /&gt;for (int i=0; i&lt; numeroFilas; i++){&lt;br /&gt;for( int j=0; j&lt; numeroColumnas;j++) {&lt;br /&gt;&lt;br /&gt;aux += matriz[i][j]+" ";&lt;br /&gt;}&lt;br /&gt;aux += "\n";&lt;br /&gt;}&lt;br /&gt;aux +=" ";&lt;br /&gt;return aux;&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;public class PruebaMatriz {&lt;br /&gt;public static void main(String args[]){&lt;br /&gt;Matriz C=new Matriz(2,3);&lt;br /&gt;C.matriz[0][0]=2;&lt;br /&gt;C.matriz[0][1]=2;&lt;br /&gt;C.matriz[0][2]=1;&lt;br /&gt;C.matriz[1][0]=3;&lt;br /&gt;C.matriz[1][1]=-1;&lt;br /&gt;C.matriz[1][2]=0;&lt;br /&gt;&lt;br /&gt;Matriz B = new Matriz(5,3);&lt;br /&gt;B.matriz[0][0]=6;&lt;br /&gt;B.matriz[0][1]=-2;&lt;br /&gt;B.matriz[0][2]=5;&lt;br /&gt;B.matriz[1][0]=4;&lt;br /&gt;B.matriz[1][1]=2;&lt;br /&gt;B.matriz[1][2]=-1;&lt;br /&gt;B.matriz[2][0]=0;&lt;br /&gt;B.matriz[2][1]=1;&lt;br /&gt;B.matriz[2][2]=1;&lt;br /&gt;B.matriz[3][0]=-2;&lt;br /&gt;B.matriz[3][1]=-2;&lt;br /&gt;B.matriz[3][2]=0;&lt;br /&gt;B.matriz[4][0]=1;&lt;br /&gt;B.matriz[4][1]=0;&lt;br /&gt;B.matriz[4][2]=-1;&lt;br /&gt;&lt;br /&gt;Matriz A = new Matriz(1,5);&lt;br /&gt;A.matriz[0][0]=1;&lt;br /&gt;A.matriz[0][1]=-1;&lt;br /&gt;A.matriz[0][2]=0;&lt;br /&gt;A.matriz[0][3]=1;&lt;br /&gt;A.matriz[0][4]=1;&lt;br /&gt;&lt;br /&gt;Matriz E = new Matriz(3,3);&lt;br /&gt;E.matriz[0][0]=-1;&lt;br /&gt;E.matriz[0][1]=0;&lt;br /&gt;E.matriz[0][2]=-1;&lt;br /&gt;E.matriz[1][0]=1;&lt;br /&gt;E.matriz[1][1]=0;&lt;br /&gt;E.matriz[1][2]=1;&lt;br /&gt;E.matriz[2][0]=-1;&lt;br /&gt;E.matriz[2][1]=1;&lt;br /&gt;E.matriz[2][2]=-1;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Matriz R;&lt;br /&gt;R=C.Multiplicacion(E);&lt;br /&gt;&lt;br /&gt;Matriz R1;&lt;br /&gt;R1=B.Transpuesta();&lt;br /&gt;&lt;br /&gt;Matriz R2;&lt;br /&gt;R2=R.Multiplicacion(R1);&lt;br /&gt;System.out.println("El resultado dela multiplicacion CEB^t\n"+R2.toString());&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Matriz X;&lt;br /&gt;X=A.Multiplicacion(B);&lt;br /&gt;&lt;br /&gt;Matriz X1;&lt;br /&gt;X1=X.Multiplicacion(E);&lt;br /&gt;System.out.println("El resultado de la multiplicacion ABE\n"+X1.toString());&lt;br /&gt;&lt;br /&gt;Matriz Y;&lt;br /&gt;Y=B.Transpuesta();&lt;br /&gt;&lt;br /&gt;Matriz Y1;&lt;br /&gt;Y1=A.Transpuesta();&lt;br /&gt;&lt;br /&gt;Matriz Y2;&lt;br /&gt;Y2=Y.Multiplicacion(Y1);&lt;br /&gt;&lt;br /&gt;Matriz Y3;&lt;br /&gt;Y3=E.Multiplicacion(Y2);&lt;br /&gt;&lt;br /&gt;System.out.println("El resultado de la multiplicacion EB^^tA^t\n"+Y3.toString());&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;//Corrida del programa&lt;br /&gt;&lt;/strong&gt;&lt;br /&gt;run:&lt;br /&gt;El resultado dela multiplicacion CEB^t&lt;br /&gt;-13.0 -1.0 0.0 0.0 0.0&lt;br /&gt;-44.0 -12.0 -4.0 8.0 0.0&lt;br /&gt;&lt;br /&gt;El resultado de la multiplicacion ABE&lt;br /&gt;-12.0 5.0 -12.0&lt;br /&gt;&lt;br /&gt;El resultado de la multiplicacion EB^^tA^t&lt;br /&gt;-6.0&lt;br /&gt;6.0&lt;br /&gt;-12.0&lt;br /&gt;&lt;br /&gt;BUILD SUCCESSFUL (total time: 3 seconds)&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4083012570879898065-4912751156667115806?l=joseromero495.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://joseromero495.blogspot.com/feeds/4912751156667115806/comments/default' title='Enviar comentarios'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=4083012570879898065&amp;postID=4912751156667115806' title='0 comentarios'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4083012570879898065/posts/default/4912751156667115806'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4083012570879898065/posts/default/4912751156667115806'/><link rel='alternate' type='text/html' href='http://joseromero495.blogspot.com/2009/10/prueba-de-programacion.html' title='Prueba de Programación'/><author><name>José Romero</name><uri>http://www.blogger.com/profile/16359757080751416618</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4083012570879898065.post-4086669292699565460</id><published>2009-10-18T19:13:00.000-07:00</published><updated>2009-10-18T19:17:54.763-07:00</updated><title type='text'>Multiplicacion de Matrices</title><content type='html'>&lt;div&gt;//José Romero&lt;/div&gt;&lt;div&gt;//Ing. Mecatrónica&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;b&gt;public class Matriz {&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;   public int numeroFilas;&lt;br /&gt;   public int numeroColumnas;&lt;br /&gt;   public double [][]matriz;&lt;br /&gt;&lt;br /&gt;   /**&lt;br /&gt;    * Constructor sin parametros&lt;br /&gt;    */&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;   public Matriz(){&lt;br /&gt;&lt;br /&gt;   }&lt;br /&gt;&lt;br /&gt;   /**&lt;br /&gt;    * Constructor con parametros&lt;br /&gt;    * @param nF numero de Filas&lt;br /&gt;    * @param nC numero de columnas&lt;br /&gt;    */&lt;br /&gt;&lt;br /&gt;   public Matriz(int nF, int nC){&lt;br /&gt;       numeroFilas = nF;&lt;br /&gt;       numeroColumnas = nC;&lt;br /&gt;       matriz = new double[numeroFilas][numeroColumnas];&lt;br /&gt;&lt;br /&gt;       for (int i = 0; i&lt; numeroFilas; i++)&lt;br /&gt;           for (int j = 0; j&lt; numeroColumnas; j++)&lt;br /&gt;               matriz[i][j]= 0;&lt;br /&gt;&lt;br /&gt;   }&lt;br /&gt;&lt;br /&gt;   /**&lt;br /&gt;    * Metodo de suma de matrices&lt;br /&gt;    * @param B primer sumando&lt;br /&gt;    * @return Matriz resultado de suma&lt;br /&gt;    */&lt;br /&gt;&lt;br /&gt;   public Matriz suma(Matriz B){&lt;br /&gt;       Matriz resultado;&lt;br /&gt;       //this hace referncia a un objeto a construir a futuro&lt;br /&gt;       if((this.numeroFilas ==B.numeroFilas)&amp;amp;(this.numeroColumnas ==B.numeroColumnas)){&lt;br /&gt;           resultado = new Matriz(this.numeroFilas, this.numeroColumnas);&lt;br /&gt;           for(int i = 0;  i &lt; this.numeroFilas; i++)&lt;br /&gt;           for(int j = 0;  j &lt; this.numeroColumnas; j++)&lt;br /&gt;               resultado.matriz[i][j] = this.matriz[i][j] + B.matriz[i][j];&lt;br /&gt;           return resultado;&lt;br /&gt;&lt;br /&gt;       }&lt;br /&gt;       else{&lt;br /&gt;           System.out.println("Error en dimensiones de la matriz");&lt;br /&gt;           resultado = null;&lt;br /&gt;           return resultado;&lt;br /&gt;       }&lt;br /&gt;   }&lt;br /&gt;&lt;br /&gt;&lt;b&gt;    public Matriz multiplicacion(Matriz B){&lt;br /&gt;       Matriz resultado;&lt;br /&gt;&lt;br /&gt;       if(this.numeroColumnas==B.numeroFilas){&lt;br /&gt;&lt;br /&gt;   resultado = new Matriz (this.numeroFilas,B.numeroColumnas);&lt;br /&gt;       for (int i = 0; i&lt; numeroFilas; i++)&lt;br /&gt;           for (int j = 0; j&lt; numeroColumnas; j++)&lt;br /&gt;&lt;br /&gt;   resultado.matriz[i][j] = this.matriz[i][j]*B.matriz[j][i];&lt;br /&gt;   return resultado;&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;   else{&lt;br /&gt;       System.out.println("ERROR EN DIMENSIONES DE LAS MATRICES, el numero de columnas de" +&lt;br /&gt;       "la matriz A debe ser igual al numero de filas de la matriz B");&lt;br /&gt;&lt;br /&gt;   resultado=null;&lt;br /&gt;   return resultado;&lt;br /&gt;&lt;br /&gt;}&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;   /**&lt;br /&gt;    * Metodo para transponer matrices&lt;br /&gt;    * @return Matriz transpuesta&lt;br /&gt;    */&lt;br /&gt;&lt;br /&gt;   public Matriz transpuesta(){&lt;br /&gt;       Matriz resultado;&lt;br /&gt;       resultado = new Matriz(this.numeroColumnas, this.numeroFilas);&lt;br /&gt;       for(int i = 0;  i &lt; this.numeroFilas; i++)&lt;br /&gt;           for(int j = 0;  j &lt; this.numeroColumnas; j++)&lt;br /&gt;               resultado.matriz[j][i] = this.matriz[i][j];&lt;br /&gt;           return resultado;&lt;br /&gt;   }&lt;br /&gt;/**&lt;br /&gt;* Devuelve el objeto matriz en texto&lt;br /&gt;* @return&lt;br /&gt;*/&lt;br /&gt;   public String toString(){&lt;br /&gt;       String aux = "[ ";&lt;br /&gt;       for (int i = 0; i &lt; numeroFilas; i++){&lt;br /&gt;           for(int j = 0; j &lt; numeroColumnas; j++){&lt;br /&gt;               aux += matriz[i][j]+ " ";&lt;br /&gt;           }&lt;br /&gt;       &lt;br /&gt;           aux +="\n";&lt;br /&gt;          &lt;br /&gt;       }&lt;br /&gt;       aux += " ]";&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;       return aux;&lt;br /&gt;   }&lt;br /&gt;&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;//**********************************************&lt;br /&gt;&lt;br /&gt;&lt;b&gt;public class PruebaMatriz {&lt;/b&gt;&lt;br /&gt;   public static void main(String args[]){&lt;br /&gt;       Matriz a = new Matriz(3,2);&lt;br /&gt;       a.matriz[0][0]=1; a.matriz[0][1] =2;&lt;br /&gt;       a.matriz[1][0]=3; a.matriz[1][1] =4;&lt;br /&gt;&lt;br /&gt;       System.out.println(a.toString());&lt;br /&gt;&lt;br /&gt;       Matriz b = new Matriz(2,3);&lt;br /&gt;       b.matriz[0][0] = 5; b.matriz[0][1] = 6;&lt;br /&gt;       b.matriz[1][0] = 7; b.matriz[1][1] = 8;&lt;br /&gt;     &lt;br /&gt;       System.out.println(b.toString());&lt;br /&gt;&lt;br /&gt;       Matriz c;&lt;br /&gt;       c = a.suma(b);&lt;br /&gt;       System.out.println(c.toString());&lt;br /&gt;&lt;br /&gt;       Matriz d ;&lt;br /&gt;       d = a.multiplicacion(b);&lt;br /&gt;       System.out.println("Multiplicacion de A*B\n"+d.toString());&lt;br /&gt;&lt;br /&gt;      /* Matriz c;&lt;br /&gt;       c = a.resta(b);&lt;br /&gt;       System.out.println(c.toString());*/&lt;br /&gt;&lt;br /&gt;       c= a.transpuesta();&lt;br /&gt;       System.out.println("Trasnpuesta de a\n"+c.toString());&lt;br /&gt;      &lt;br /&gt;   }&lt;br /&gt;}&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4083012570879898065-4086669292699565460?l=joseromero495.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://joseromero495.blogspot.com/feeds/4086669292699565460/comments/default' title='Enviar comentarios'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=4083012570879898065&amp;postID=4086669292699565460' title='3 comentarios'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4083012570879898065/posts/default/4086669292699565460'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4083012570879898065/posts/default/4086669292699565460'/><link rel='alternate' type='text/html' href='http://joseromero495.blogspot.com/2009/10/multiplicacion-de-matrices.html' title='Multiplicacion de Matrices'/><author><name>José Romero</name><uri>http://www.blogger.com/profile/16359757080751416618</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>3</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4083012570879898065.post-5508212572873109818</id><published>2009-10-13T18:51:00.000-07:00</published><updated>2009-10-13T18:54:48.971-07:00</updated><title type='text'>Herencias</title><content type='html'>&lt;div style="text-align: center;"&gt;&lt;b&gt;//UNIVERSIDAD TECNOLÓGICA EQUINOCCIAL&lt;/b&gt;&lt;/div&gt;&lt;div&gt;//José Romero&lt;/div&gt;&lt;div&gt;//Ing. Mecatrónica 3 "B"&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;b&gt;public class Figuras {&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;   private double CoordenadaX;&lt;br /&gt;   private double CoordenadaY;&lt;br /&gt;   private double CoordenadaX1;&lt;br /&gt;   private double CoordenadaY1;&lt;br /&gt;   private double CoordenadaX2;&lt;br /&gt;   private double CoordenadaY2;&lt;br /&gt;&lt;br /&gt;   public Figuras(){&lt;br /&gt;       setFiguras (0,0,0,0,0,0);&lt;br /&gt;&lt;br /&gt;   }&lt;br /&gt;&lt;br /&gt;   public Figuras(double x, double y, double x1, double y1,double x2, double y2){&lt;br /&gt;       setFiguras(x,y,x1,y1,x2,y2);&lt;br /&gt;   }&lt;br /&gt;&lt;br /&gt;   public void setFiguras(double x, double y, double x1, double y1,double x2, double y2){&lt;br /&gt;       CoordenadaX = x;&lt;br /&gt;       CoordenadaY = y;&lt;br /&gt;       CoordenadaX1 = x1;&lt;br /&gt;       CoordenadaY1 = y1;&lt;br /&gt;       CoordenadaX2 = x2;&lt;br /&gt;       CoordenadaY2 = y2;&lt;br /&gt;&lt;br /&gt;   }&lt;br /&gt;&lt;br /&gt;   public double getCoordenadaX(){&lt;br /&gt;       return CoordenadaX;&lt;br /&gt;   }&lt;br /&gt;   public double getCoordenadaY(){&lt;br /&gt;       return CoordenadaY;&lt;br /&gt;   }&lt;br /&gt;   public double getCoordenadaX1(){&lt;br /&gt;       return CoordenadaX1;&lt;br /&gt;   }&lt;br /&gt;   public double getCoordenadaY1(){&lt;br /&gt;       return CoordenadaY1;&lt;br /&gt;   }&lt;br /&gt;&lt;br /&gt;   public double getCoordenadaX2(){&lt;br /&gt;       return CoordenadaX2;&lt;br /&gt;   }&lt;br /&gt;   public double getCoordenadaY2(){&lt;br /&gt;       return CoordenadaY2;&lt;br /&gt;   }&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;   public String toString(){&lt;br /&gt;       return "Figuras de coordenadas:"+"["+CoordenadaX+","+&lt;br /&gt;               CoordenadaY+"]"+""+"["+CoordenadaX1+","+&lt;br /&gt;               CoordenadaY1+"]"+""+"["+CoordenadaX2+","+&lt;br /&gt;               CoordenadaY2+"]";&lt;br /&gt;   }&lt;br /&gt;   public static void main (String args[] ){&lt;br /&gt;       Figuras p1 = new Figuras (3,2,5,6,8,2);&lt;br /&gt;       System.out.println(p1.toString());&lt;br /&gt;       System.out.println("Coordenada x " +p1.getCoordenadaX()+5);&lt;br /&gt;       System.out.println("Coordenada y " +p1.getCoordenadaY());&lt;br /&gt;       System.out.println("Coordenada x1" +p1.getCoordenadaX1()+5);&lt;br /&gt;       System.out.println("Coordenada y1 " +p1.getCoordenadaY1());&lt;br /&gt;       System.out.println("Coordenada x2 " +p1.getCoordenadaX2()+5);&lt;br /&gt;       System.out.println("Coordenada y2 " +p1.getCoordenadaY2());&lt;br /&gt;       System.out.println(p1.toString());&lt;br /&gt;       p1.setFiguras(p1.getCoordenadaX()+5,p1.getCoordenadaY(),p1.getCoordenadaX1(),&lt;br /&gt;               p1.getCoordenadaY1()&lt;br /&gt;               ,p1.getCoordenadaX()+5,p1.getCoordenadaY());&lt;br /&gt;       System.out.println(p1.toString());&lt;br /&gt;   }&lt;br /&gt;&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;b&gt;public class Triangulo extends Figuras {&lt;/b&gt;&lt;br /&gt;    private double lado3;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;   public Triangulo(){&lt;br /&gt;       setLado3(0);&lt;br /&gt;&lt;br /&gt;   }&lt;br /&gt;&lt;br /&gt;   public Triangulo(double x, double y,double x1, double y1, double r){&lt;br /&gt;       super(x,y,x1,y1,0,0);&lt;br /&gt;       setLado3(r);&lt;br /&gt;   }&lt;br /&gt;   public void setLado3(double r){&lt;br /&gt;       lado3 = r;&lt;br /&gt;  &lt;br /&gt;   }&lt;br /&gt;   public double getLado3(){&lt;br /&gt;       return lado3;&lt;br /&gt;   }&lt;br /&gt;&lt;br /&gt;   public String toStrig(){&lt;br /&gt;       return this.toStrig()+"\nel lado3 es:"+lado3;&lt;br /&gt;   }&lt;br /&gt;   public static void main(String args[]){&lt;br /&gt;       Triangulo c1 = new Triangulo(3,2,5,6,8);&lt;br /&gt;       Figuras p1 = new Figuras (3,2,5,6,0,0);&lt;br /&gt;       System.out.println(c1.toString());&lt;br /&gt;       System.out.println("El lado 3 es: "+c1.getLado3());&lt;br /&gt;       System.out.println(p1.toString());&lt;br /&gt;   }&lt;br /&gt;&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;b&gt;public class Cuadrado extends Figuras {&lt;/b&gt;&lt;br /&gt;  &lt;br /&gt;   private double lado4;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;   public Cuadrado(){&lt;br /&gt;       setLado4(0);&lt;br /&gt;&lt;br /&gt;   }&lt;br /&gt;&lt;br /&gt;   public Cuadrado(double x, double y,double x1, double y1,double x2, double y2, double l){&lt;br /&gt;       super(x,y,x1,y1,x2,y2);&lt;br /&gt;       setLado4(l);&lt;br /&gt;   }&lt;br /&gt;   public void setLado4(double l){&lt;br /&gt;       lado4 = l;&lt;br /&gt;  &lt;br /&gt;   }&lt;br /&gt;   public double getLado4(){&lt;br /&gt;       return lado4;&lt;br /&gt;   }&lt;br /&gt;&lt;br /&gt;   public String toStrig(){&lt;br /&gt;       return this.toStrig()+"\nel lado4 es:"+lado4;&lt;br /&gt;   }&lt;br /&gt;   public static void main(String args[]){&lt;br /&gt;       Cuadrado c1 = new Cuadrado(3,2,5,6,8,4,3);&lt;br /&gt;       Figuras p1 = new Figuras (3,2,5,6,8,4);&lt;br /&gt;       System.out.println(c1.toString());&lt;br /&gt;       System.out.println("El lado 4 es: "+c1.getLado4());&lt;br /&gt;       System.out.println(p1.toString());&lt;br /&gt;   }&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;}&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4083012570879898065-5508212572873109818?l=joseromero495.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://joseromero495.blogspot.com/feeds/5508212572873109818/comments/default' title='Enviar comentarios'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=4083012570879898065&amp;postID=5508212572873109818' title='5 comentarios'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4083012570879898065/posts/default/5508212572873109818'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4083012570879898065/posts/default/5508212572873109818'/><link rel='alternate' type='text/html' href='http://joseromero495.blogspot.com/2009/10/herencias.html' title='Herencias'/><author><name>José Romero</name><uri>http://www.blogger.com/profile/16359757080751416618</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>5</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4083012570879898065.post-599946143159936573</id><published>2009-10-09T20:20:00.000-07:00</published><updated>2009-10-09T20:22:55.827-07:00</updated><title type='text'>Tarea 1 sobre Atributos</title><content type='html'>&lt;b&gt;&lt;div style="text-align: center;"&gt;//UNIVERSIDAD TECNOLÓGICA EQUINOCCIAL&lt;/div&gt;&lt;div style="text-align: left;"&gt;//José Romero&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;public class Universidad&lt;/b&gt; {&lt;br /&gt;&lt;br /&gt;   public  int telefono;&lt;br /&gt;&lt;br /&gt;   public String nombre;&lt;br /&gt;   public String direccion;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;   public Universidad(){&lt;br /&gt;&lt;br /&gt;   }&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;   public Universidad (int nT){&lt;br /&gt;       telefono = nT;&lt;br /&gt;   }&lt;br /&gt;&lt;br /&gt;   public Universidad(String nomb, String direc, int nT){&lt;br /&gt;       nombre = nomb;&lt;br /&gt;       direccion = direc;&lt;br /&gt;       telefono = nT;&lt;br /&gt;&lt;br /&gt;   }&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;   public void devolverTelefono(int nT){&lt;br /&gt;       telefono = nT;&lt;br /&gt;   }&lt;br /&gt;&lt;br /&gt;   public int devolverTelefono(){&lt;br /&gt;&lt;br /&gt;       return telefono;&lt;br /&gt;   }&lt;br /&gt;&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;b&gt;public class UsoUniversidad&lt;/b&gt; {&lt;br /&gt;&lt;br /&gt;   public static void main(String args[]){&lt;br /&gt;       Universidad u1 = new Universidad();&lt;br /&gt;      &lt;br /&gt;       u1.nombre = "Universidad Tecnológica Equinoccial";&lt;br /&gt;       u1.direccion = "Av. América";&lt;br /&gt;       u1.devolverTelefono(2485954);&lt;br /&gt;       System.out.println("Nombre: " +u1.nombre+ "\nDireccion: " +u1.direccion&lt;br /&gt;               +"\nTelefono :" +u1.devolverTelefono());&lt;br /&gt;&lt;br /&gt;       Universidad u2 = new Universidad();&lt;br /&gt;       u2.nombre = "Escuela Politecnica del Ecuador";&lt;br /&gt;       u2.direccion = "El Valle";&lt;br /&gt;       u2.devolverTelefono(3598654);&lt;br /&gt;       System.out.println("\nNombre: " +u2.nombre+ "\nDireccion:  " +u2.direccion&lt;br /&gt;               +"\nTelefono :" +u2.devolverTelefono());&lt;br /&gt;&lt;br /&gt;       Universidad u3 = new Universidad();&lt;br /&gt;       u3.nombre = "Universidad Politecnica Nacional";&lt;br /&gt;       u3.direccion = "Av 9 de Octubre";&lt;br /&gt;       u3.devolverTelefono(2521845);&lt;br /&gt;       System.out.println("\nNombre: " +u3.nombre+ "\nDireccion:  " +u3.direccion&lt;br /&gt;               +"\nTelefono :" +u3.devolverTelefono());&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;      &lt;br /&gt;&lt;br /&gt;   }&lt;br /&gt;&lt;br /&gt;}&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4083012570879898065-599946143159936573?l=joseromero495.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://joseromero495.blogspot.com/feeds/599946143159936573/comments/default' title='Enviar comentarios'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=4083012570879898065&amp;postID=599946143159936573' title='1 comentarios'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4083012570879898065/posts/default/599946143159936573'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4083012570879898065/posts/default/599946143159936573'/><link rel='alternate' type='text/html' href='http://joseromero495.blogspot.com/2009/10/tarea-1-sobre-atributos_09.html' title='Tarea 1 sobre Atributos'/><author><name>José Romero</name><uri>http://www.blogger.com/profile/16359757080751416618</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4083012570879898065.post-9187507046619014154</id><published>2009-10-09T19:09:00.000-07:00</published><updated>2009-10-09T20:17:03.792-07:00</updated><title type='text'>Tarea 1 sobre Atributos</title><content type='html'>&lt;b&gt;&lt;div style="text-align: center;"&gt;//Universidad Tecnológica Equinoccial&lt;/div&gt;&lt;div style="text-align: left;"&gt;//José Romero &lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;public class Auto&lt;/b&gt; {&lt;br /&gt;  private int matricula;&lt;br /&gt;&lt;br /&gt;  public String marca;&lt;br /&gt;  public String modelo;&lt;br /&gt;  public String color;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;  public Auto(){&lt;br /&gt;&lt;br /&gt;  }&lt;br /&gt;&lt;br /&gt;  public Auto (int mt){&lt;br /&gt;      matricula = mt;&lt;br /&gt;  }&lt;br /&gt;&lt;br /&gt;  public Auto(String mar, String mod, String col, int mt){&lt;br /&gt;      marca = mar;&lt;br /&gt;      modelo = mod;&lt;br /&gt;      color = col;&lt;br /&gt;      matricula = mt;&lt;br /&gt;&lt;br /&gt;  }&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;  public void asignarMatricula(int mt){&lt;br /&gt;      matricula = mt;&lt;br /&gt;  }&lt;br /&gt;&lt;br /&gt;  /*public int devolverMatricula(){&lt;br /&gt;&lt;br /&gt;      return matricula;&lt;br /&gt;  }*/&lt;br /&gt;&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;b&gt;public class UsoAuto&lt;/b&gt;{&lt;br /&gt;  public static void main(String args[]){&lt;br /&gt;      Auto a1 = new Auto();&lt;br /&gt;      a1.marca = "Mitsubishi";&lt;br /&gt;      a1.color = "Negro";&lt;br /&gt;      a1.modelo = "Lanzer";&lt;br /&gt;      a1.asignarMatricula(5448);&lt;br /&gt;      System.out.println("Marca:  " +a1.marca+ "\nColor:  " +a1.color+ "\nModelo: "+a1.modelo);&lt;br /&gt;              /*"\nMatricula:  " +p1.devolverMatricula()*/&lt;br /&gt;&lt;br /&gt;   &lt;br /&gt;      Auto a2 = new Auto();&lt;br /&gt;      a2.marca = "Toyota";&lt;br /&gt;      a2.color = "Azul";&lt;br /&gt;      a2.modelo = "Yaris";&lt;br /&gt;      a2.asignarMatricula(3314);&lt;br /&gt;      System.out.println("\nMarca:  " +a2.marca+ "\nColor:  " +a2.color+ "\nModelo: "+a2.modelo);&lt;br /&gt;              /*"\nMatricula:  " +p1.devolverMatricula()*/&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;      Auto a3 = new Auto(1724304348);&lt;br /&gt;      System.out.println("\nMarca:  " +a3.marca+ "\nColor:  " +a3.color+ "\nModelo: "+a3.modelo);&lt;br /&gt;      a3.marca = "Chebrolet";&lt;br /&gt;      a3.color = "Plateado";&lt;br /&gt;      a3.modelo = "Optra";&lt;br /&gt;      System.out.println("\nMarca:  " +a3.marca+ "\nColor:  " +a3.color+ "\nModelo: "+a3.modelo );&lt;br /&gt;&lt;br /&gt;  }&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;}&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4083012570879898065-9187507046619014154?l=joseromero495.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://joseromero495.blogspot.com/feeds/9187507046619014154/comments/default' title='Enviar comentarios'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=4083012570879898065&amp;postID=9187507046619014154' title='0 comentarios'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4083012570879898065/posts/default/9187507046619014154'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4083012570879898065/posts/default/9187507046619014154'/><link rel='alternate' type='text/html' href='http://joseromero495.blogspot.com/2009/10/tarea-1-sobre-atributos.html' title='Tarea 1 sobre Atributos'/><author><name>José Romero</name><uri>http://www.blogger.com/profile/16359757080751416618</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4083012570879898065.post-2007395080565013999</id><published>2009-10-04T16:54:00.000-07:00</published><updated>2009-10-04T16:57:27.671-07:00</updated><title type='text'></title><content type='html'>&lt;div style="text-align: center;"&gt;&lt;b&gt;UNIVERSIDAD TECNOLÓGICA EQUINOCCIAL&lt;/b&gt;&lt;/div&gt;&lt;b&gt;Nombre:&lt;/b&gt; José Romero&lt;br /&gt;&lt;b&gt;Nivel:&lt;/b&gt; 3 “B”                                      Fecha: 4-10-2009&lt;br /&gt;&lt;b&gt;Carrera:&lt;/b&gt; Ing. Mecatrónica    &lt;br /&gt;&lt;br /&gt;&lt;b&gt;&lt;i&gt;CONSULTA &lt;/i&gt;&lt;/b&gt;&lt;div&gt;&lt;b&gt;&lt;i&gt;&lt;br /&gt;&lt;div style="text-align: justify;"&gt;&lt;span class="Apple-style-span" style="font-style: normal; "&gt;Programación orientada a objetos&lt;/span&gt;&lt;/div&gt;&lt;/i&gt;&lt;/b&gt;&lt;/div&gt;&lt;div&gt;&lt;div style="text-align: justify;"&gt;&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;/div&gt;&lt;div style="text-align: justify;"&gt;La Programación Orientada a Objetos es un paradigma de programación que usa objetos y sus interacciones para diseñar aplicaciones y programas de computadora. Está basado en varias técnicas, incluyendo herencia, modularidad, polimorfismo y encapsulamiento. &lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div style="text-align: justify;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style="text-align: justify;"&gt;La programación orientada a objetos expresa un programa como un conjunto de estos objetos, que colaboran entre ellos para realizar tareas. Esto permite hacer los programas y módulos más fáciles de escribir, mantener, reutilizar y volver a utilizar.&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div style="text-align: justify;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style="text-align: justify;"&gt;De aquella forma, un objeto contiene toda la información que permite definirlo e identificarlo frente a otros objetos pertenecientes a otras clases e incluso frente a objetos de una misma clase, al poder tener valores bien diferenciados en sus atributos. A su vez, los objetos disponen de mecanismos de interacción llamados métodos que favorecen la comunicación entre ellos. Esta comunicación favorece a su vez el cambio de estado en los propios objetos. Esta característica lleva a tratarlos como unidades indivisibles, en las que no se separan ni deben separarse el estado y el comportamiento.&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div style="text-align: justify;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;b&gt;&lt;div style="text-align: justify;"&gt;¿Qué son Objetos?&lt;/div&gt;&lt;/b&gt;&lt;/div&gt;&lt;div&gt;&lt;div style="text-align: justify;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style="text-align: justify;"&gt;Los objetos son entidades que combinan estado, comportamiento e identidad:&lt;/div&gt;&lt;div style="text-align: justify;"&gt;- El estado está compuesto de datos, será uno o varios atributos a los que se habrán asignado unos valores concretos (datos). &lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div style="text-align: justify;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style="text-align: justify;"&gt;- El comportamiento está definido por los procedimientos o métodos con que puede operar dicho objeto, es decir, qué operaciones se pueden realizar con él. &lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div style="text-align: justify;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style="text-align: justify;"&gt;- La identidad es una propiedad de un objeto que lo diferencia del resto, dicho con otras palabras, es su identificador (concepto análogo al de identificador de una variable o una constante). &lt;/div&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4083012570879898065-2007395080565013999?l=joseromero495.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://joseromero495.blogspot.com/feeds/2007395080565013999/comments/default' title='Enviar comentarios'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=4083012570879898065&amp;postID=2007395080565013999' title='0 comentarios'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4083012570879898065/posts/default/2007395080565013999'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4083012570879898065/posts/default/2007395080565013999'/><link rel='alternate' type='text/html' href='http://joseromero495.blogspot.com/2009/10/universidad-tecnologica-equinoccial.html' title=''/><author><name>José Romero</name><uri>http://www.blogger.com/profile/16359757080751416618</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4083012570879898065.post-4726881814316815992</id><published>2009-09-29T19:04:00.000-07:00</published><updated>2009-09-29T19:07:28.846-07:00</updated><title type='text'>Funciones</title><content type='html'>&lt;div&gt;// José Romero&lt;/div&gt;&lt;div&gt;// Ing. Mecatrónica 3"B"&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;package funcionescossen;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;public class Main {&lt;br /&gt;&lt;br /&gt;   public static void main(String[] args) {&lt;br /&gt;&lt;br /&gt;System.out.println("Tabla de valores seno ");&lt;br /&gt;&lt;br /&gt;     double x;&lt;br /&gt;&lt;br /&gt;for(double k = 0; k &lt;= 10; k+= 0.1){&lt;br /&gt;&lt;br /&gt; &lt;br /&gt;   System.out.println("El Seno =  " +Math.sin(k));&lt;br /&gt;&lt;br /&gt;   }&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;System.out.println("Tabla de valores coseno ");&lt;br /&gt;for(double k = 0; k &lt;= 10; k+= 0.1){&lt;br /&gt;  &lt;br /&gt;   System.out.println("El Coseno = " +Math.cos(k));&lt;br /&gt;&lt;br /&gt;}&lt;div&gt;&lt;br /&gt;System.out.println("Tabla de valores (e^(-k))*cos(k) ");&lt;br /&gt;for(double k = 0; k &lt;= 10; k+= 0.1){&lt;br /&gt;   x= Math.pow(2.72, -k)*Math.cos(k);&lt;br /&gt;&lt;br /&gt;  &lt;br /&gt;   System.out.println("La Funcion (e^(-k))*cos(k) = " +x);&lt;/div&gt;&lt;div&gt;&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;}&lt;br /&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4083012570879898065-4726881814316815992?l=joseromero495.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://joseromero495.blogspot.com/feeds/4726881814316815992/comments/default' title='Enviar comentarios'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=4083012570879898065&amp;postID=4726881814316815992' title='1 comentarios'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4083012570879898065/posts/default/4726881814316815992'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4083012570879898065/posts/default/4726881814316815992'/><link rel='alternate' type='text/html' href='http://joseromero495.blogspot.com/2009/09/funciones.html' title='Funciones'/><author><name>José Romero</name><uri>http://www.blogger.com/profile/16359757080751416618</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4083012570879898065.post-985682941236091838</id><published>2009-09-29T18:57:00.000-07:00</published><updated>2009-09-29T19:03:57.696-07:00</updated><title type='text'>Deber 2 Factorial</title><content type='html'>// JOSÉ ROMERO&lt;br /&gt;//ING. MECATRÓNICA 3 "B"&lt;br /&gt;&lt;br /&gt;package Deber3;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;public class Main {&lt;br /&gt;&lt;br /&gt;    public long factorial(int x){&lt;div&gt;&lt;br /&gt;      long  resultado=1;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;      if(x==0)&lt;/div&gt;&lt;div&gt;&lt;br /&gt;          resultado=1;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;      else{&lt;/div&gt;&lt;div&gt;&lt;br /&gt;          for(int i= 1; i&lt;=x; i++)&lt;/div&gt;&lt;div&gt;&lt;br /&gt;              resultado = resultado*i;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;      }&lt;/div&gt;&lt;div&gt;&lt;br /&gt;      return resultado;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;  }&lt;br /&gt;&lt;br /&gt;  public static void main(String[] args) {&lt;/div&gt;&lt;div&gt;&lt;br /&gt;      Main jr = new Main();&lt;/div&gt;&lt;div&gt;&lt;br /&gt;      System.out.println(jr.factorial(20));&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;      long g;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;      int m=11;&lt;br /&gt;      int n=19;&lt;br /&gt;&lt;br /&gt;      g=(jr.factorial(n))/(jr.factorial(n-m));&lt;/div&gt;&lt;div&gt;&lt;br /&gt;      System.out.println("El valor de g es ="+g);&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;  }&lt;br /&gt;&lt;br /&gt;}&lt;br /&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4083012570879898065-985682941236091838?l=joseromero495.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://joseromero495.blogspot.com/feeds/985682941236091838/comments/default' title='Enviar comentarios'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=4083012570879898065&amp;postID=985682941236091838' title='1 comentarios'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4083012570879898065/posts/default/985682941236091838'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4083012570879898065/posts/default/985682941236091838'/><link rel='alternate' type='text/html' href='http://joseromero495.blogspot.com/2009/09/deber-2-factorial.html' title='Deber 2 Factorial'/><author><name>José Romero</name><uri>http://www.blogger.com/profile/16359757080751416618</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4083012570879898065.post-4865505246260765224</id><published>2009-09-27T20:34:00.000-07:00</published><updated>2009-09-27T20:40:12.744-07:00</updated><title type='text'>Deber 1 Funciones</title><content type='html'>&lt;div&gt;// JOSÉ ROMERO  &lt;/div&gt;&lt;div&gt;//ING. MECATRÓNICA    3 "B"&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;public class Funciones {&lt;div&gt;&lt;br /&gt;double valorX;&lt;div&gt;&lt;br /&gt; public double f2(double x){&lt;/div&gt;&lt;div&gt;&lt;br /&gt;     valorX = x;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;     double f;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;     if (valorX&lt;0){&lt;div&gt;&lt;br /&gt;&lt;div&gt;f = x*x; &lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;System.out.println("Respuesta = "+f); &lt;/div&gt;&lt;div&gt; } &lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;if ((valorX&gt;=0)||(valorX&lt;1))&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;div&gt;            f= Math.sqrt(x);&lt;br /&gt; &lt;br /&gt;&lt;br /&gt;     else{&lt;br /&gt;&lt;br /&gt;         f= x*(Math.sqrt(x));&lt;br /&gt;&lt;br /&gt;                 &lt;br /&gt;     }&lt;/div&gt;&lt;div&gt;&lt;br /&gt;     return f;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;    }&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;public static void main(String[] args) {&lt;br /&gt; Funciones fun =new Funciones();&lt;br /&gt; System.out.println(fun.f2(-2));&lt;br /&gt; System.out.println(fun.f2(0.5));&lt;br /&gt; System.out.println(fun.f2(2));&lt;br /&gt;&lt;br /&gt; }&lt;br /&gt;&lt;br /&gt;}&lt;br /&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4083012570879898065-4865505246260765224?l=joseromero495.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://joseromero495.blogspot.com/feeds/4865505246260765224/comments/default' title='Enviar comentarios'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=4083012570879898065&amp;postID=4865505246260765224' title='1 comentarios'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4083012570879898065/posts/default/4865505246260765224'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4083012570879898065/posts/default/4865505246260765224'/><link rel='alternate' type='text/html' href='http://joseromero495.blogspot.com/2009/09/deber-1-funciones.html' title='Deber 1 Funciones'/><author><name>José Romero</name><uri>http://www.blogger.com/profile/16359757080751416618</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4083012570879898065.post-7455136640851590429</id><published>2009-09-22T15:01:00.000-07:00</published><updated>2009-09-22T15:19:31.656-07:00</updated><title type='text'></title><content type='html'>&lt;div style="text-align: center;"&gt;&lt;b&gt;UNIVERSIDAD TECNOLÓGICA EQUINOCCIAL&lt;/b&gt;&lt;/div&gt;&lt;div style="text-align: center;"&gt;&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;/div&gt;&lt;b&gt;Nombre:&lt;/b&gt; José Romero&lt;div&gt;&lt;br /&gt;&lt;b&gt;Curso:&lt;/b&gt; 3 “B” Ing. Mecatrónica           &lt;b&gt;Fecha:&lt;/b&gt; 22-09-2009&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;div style="text-align: justify;"&gt;&lt;span class="Apple-style-span" style="font-weight: bold; "&gt;¿Qué es Java?&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div style="text-align: justify;"&gt;&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;/div&gt;&lt;div style="text-align: justify;"&gt;Java se puede definir como un lenguaje de programación con el cual podemos realizar cualquier tipo de programa, es un lenguaje de programación orientado a objetos el cual fue desarrollado por Sun Microsystems a partir de los años 90.&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div style="text-align: justify;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style="text-align: justify;"&gt;Las aplicaciones realizadas en Java están compiladas en un bytecode (código binario especial).&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div style="text-align: justify;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style="text-align: justify;"&gt;La característica principal de Java es que es un lenguaje independiente de la plataforma. Esto nos quiere decir que si hacemos un programa en Java podrá funcionar en cualquier computador.&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div style="text-align: justify;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;b&gt;&lt;div style="text-align: justify;"&gt;¿Qué es La Máquina virtual Java (JVM)?&lt;/div&gt;&lt;/b&gt;&lt;/div&gt;&lt;div&gt;&lt;div style="text-align: justify;"&gt;&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;/div&gt;&lt;div style="text-align: justify;"&gt;La Máquina virtual Java (JVM) es un programa ejecutable en una plataforma específica, capaz de interpretar y ejecutar instrucciones expresadas en un código binario especial denominado el Java bytecode, el cual es generado por el compilador del lenguaje Java.&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div style="text-align: justify;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style="text-align: justify;"&gt;El código binario de Java es un código máquina de bajo nivel, fue desarrollado originalmente por Sun Microsystems.&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div style="text-align: justify;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style="text-align: justify;"&gt;La Máquina Virtual de Java es una pieza fundamental de la plataforma de Java.&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div style="text-align: justify;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style="text-align: justify;"&gt;La máquina virtual de Java puede estar implementada en software, hardware, una herramienta de desarrollo o un Web browser; lee y ejecuta código precompilado bytecode.&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div style="text-align: justify;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;b&gt;&lt;div style="text-align: justify;"&gt;Java Runtime Environment&lt;/div&gt;&lt;/b&gt;&lt;/div&gt;&lt;div&gt;&lt;div style="text-align: justify;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style="text-align: justify;"&gt;Java Runtime Environment (JRE), es un conjunto de utilidades que permite la ejecución de programas java.&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div style="text-align: justify;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style="text-align: justify;"&gt;Está conformado por una Máquina Virtual de Java (JVM), un conjunto de bibliotecas Java y otros componentes para que una aplicación escrita en lenguaje Java pueda ser ejecutada. El JRE actúa como un "intermediario" entre el sistema operativo y Java.&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div style="text-align: justify;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style="text-align: justify;"&gt;La JVM es el programa que interpreta el código Java mientras que las librerías de clases estándar son las que implementan el API de Java. Ambas JVM y API deben ser consistentes entre sí, de ahí que sean distribuidas de modo conjunto.&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div style="text-align: justify;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style="text-align: justify;"&gt;Sólo necesita el JRE para ejecutar las aplicaciones desarrolladas en lenguaje Java, pero para desarrollar nuevas aplicaciones en este lenguaje es necesario un entorno de desarrollo, denominado JDK, que además del JRE incluye, un compilador para Java.&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div style="text-align: justify;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;b&gt;&lt;div style="text-align: justify;"&gt;Java Development Kit&lt;/div&gt;&lt;/b&gt;&lt;/div&gt;&lt;div&gt;&lt;div style="text-align: justify;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style="text-align: justify;"&gt;Java Development Kit (JDK), es un software que provee herramientas de desarrollo para la creación de programas en java. Puede instalarse en una computadora local o en una unidad de red.&lt;/div&gt;&lt;div style="text-align: justify;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style="text-align: justify;"&gt;En la unidad de red se puede tener la aplicación distribuida en varias computadoras y trabajar como una sola aplicación.&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div style="text-align: justify;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;b&gt;&lt;div style="text-align: justify;"&gt;JVM = Maquina Virtual de Java&lt;/div&gt;&lt;/b&gt;&lt;div style="text-align: justify;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4083012570879898065-7455136640851590429?l=joseromero495.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://joseromero495.blogspot.com/feeds/7455136640851590429/comments/default' title='Enviar comentarios'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=4083012570879898065&amp;postID=7455136640851590429' title='1 comentarios'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4083012570879898065/posts/default/7455136640851590429'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4083012570879898065/posts/default/7455136640851590429'/><link rel='alternate' type='text/html' href='http://joseromero495.blogspot.com/2009/09/universidad-tecnologica-equinoccial.html' title=''/><author><name>José Romero</name><uri>http://www.blogger.com/profile/16359757080751416618</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>1</thr:total></entry></feed>
