tag:blogger.com,1999:blog-14269936043270702712024-03-13T17:11:24.275-07:00ProgramacionJava3FAnonymoushttp://www.blogger.com/profile/16959777803713845505noreply@blogger.comBlogger6125tag:blogger.com,1999:blog-1426993604327070271.post-56543299307216950922014-12-10T10:43:00.002-08:002014-12-10T10:43:34.974-08:00Hola amigos solamente les presentare un juego sencillo que se trata de memorizar botones y atinarle al boton correcto<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="http://3.bp.blogspot.com/-bNDBwWQvTwI/VIiSURq1-UI/AAAAAAAAAB4/2GQX83aP8bs/s1600/juego.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="http://3.bp.blogspot.com/-bNDBwWQvTwI/VIiSURq1-UI/AAAAAAAAAB4/2GQX83aP8bs/s1600/juego.png" height="262" width="320" /></a></div>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
<div class="separator" style="clear: both; text-align: center;">
<a href="http://1.bp.blogspot.com/-OYrn1WDQDfE/VIiTYyUrilI/AAAAAAAAACA/MZolJTVpYyk/s1600/JUEGO%2B2.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="http://1.bp.blogspot.com/-OYrn1WDQDfE/VIiTYyUrilI/AAAAAAAAACA/MZolJTVpYyk/s1600/JUEGO%2B2.png" height="320" width="284" /></a></div>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
<div class="separator" style="clear: both; text-align: center;">
<a href="http://3.bp.blogspot.com/-uPgmb5jTBaI/VIiT9jE4aOI/AAAAAAAAACI/3-AnCB5VIjY/s1600/JUEGO3.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="http://3.bp.blogspot.com/-uPgmb5jTBaI/VIiT9jE4aOI/AAAAAAAAACI/3-AnCB5VIjY/s1600/JUEGO3.png" height="281" width="320" /></a></div>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
<div class="separator" style="clear: both; text-align: center;">
Bueno amigos esto seria todo este juego saldra proximamente , nos vemos.</div>
Anonymoushttp://www.blogger.com/profile/16959777803713845505noreply@blogger.com0tag:blogger.com,1999:blog-1426993604327070271.post-6200330723451855062014-12-10T10:25:00.003-08:002014-12-10T10:25:48.769-08:00Hola amigos este es otro tutorial de java , lo voy a explicar es como poner mensajes cuando orimes un boton.<br />
Pueden tomar la ventana anterior para hacer este tutorial solo pongan otro boton como se muestra a continuacion.<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="http://4.bp.blogspot.com/-mJR45jIgL-o/VIiOKLEFzWI/AAAAAAAAABU/YdC1SHw-258/s1600/Screenshot_1.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="http://4.bp.blogspot.com/-mJR45jIgL-o/VIiOKLEFzWI/AAAAAAAAABU/YdC1SHw-258/s1600/Screenshot_1.png" height="242" width="320" /></a></div>
Bien le dan click derecho al boton presioname y se van a eventos y action<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="http://1.bp.blogspot.com/-Y9yxUhJXWXI/VIiOz-q5bbI/AAAAAAAAABc/XRmYMu8mGEw/s1600/Screenshot_2.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="http://1.bp.blogspot.com/-Y9yxUhJXWXI/VIiOz-q5bbI/AAAAAAAAABc/XRmYMu8mGEw/s1600/Screenshot_2.png" /></a></div>
Bien y le ponen el siguiente codigo:<br />
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="http://4.bp.blogspot.com/-esMVCIcah78/VIiPRFI8HHI/AAAAAAAAABk/Jjougo6Rq-I/s1600/Screenshot_3.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="http://4.bp.blogspot.com/-esMVCIcah78/VIiPRFI8HHI/AAAAAAAAABk/Jjougo6Rq-I/s1600/Screenshot_3.png" /></a></div>
Ya por ultimo compilan la ventana. Y les saldra el mensaje que ustedes le pongan.<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="http://4.bp.blogspot.com/-W2CwC3GjIV8/VIiPyVhSL2I/AAAAAAAAABs/PtdQpJ5IfmM/s1600/Screenshot_4.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="http://4.bp.blogspot.com/-W2CwC3GjIV8/VIiPyVhSL2I/AAAAAAAAABs/PtdQpJ5IfmM/s1600/Screenshot_4.png" /></a></div>
Bueno amigos esto seria todo el tutorial Gracias por verlo nos vemos , y no se les olvide comentar.<br />
<br />Anonymoushttp://www.blogger.com/profile/16959777803713845505noreply@blogger.com0tag:blogger.com,1999:blog-1426993604327070271.post-47502479346519313162014-12-10T10:10:00.001-08:002014-12-10T10:10:50.596-08:00Hola amigos bienvenidos a otro tutorial lo que les voy a mostrar es como solucionar problemas en la pantalla , porque algunos tenian problemas con que su pantalla aparecia chica y bueno les dare un ejemplo para que puedan resolver ese problema.<br />
Aqui tengo un ejemplo<br />
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="http://3.bp.blogspot.com/-IEC02C25XqE/VIiIzwBjHHI/AAAAAAAAAAg/VrfKxUygU24/s1600/tutral.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="http://3.bp.blogspot.com/-IEC02C25XqE/VIiIzwBjHHI/AAAAAAAAAAg/VrfKxUygU24/s1600/tutral.png" /></a></div>
Esto es porque al ponerlele color a la pantalla no pusieron el tamaño de la pantalla original , so le pusieron el tamaño del color de la pantalla.<br />
As que hagan lo siguiente:<br />
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="http://4.bp.blogspot.com/-Sw05B_ZCjEs/VIiKBTNnhlI/AAAAAAAAAAs/5ibuH-Jsihk/s1600/tutorial2.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="http://4.bp.blogspot.com/-Sw05B_ZCjEs/VIiKBTNnhlI/AAAAAAAAAAs/5ibuH-Jsihk/s1600/tutorial2.png" height="241" width="320" /></a></div>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
<div class="separator" style="clear: both; text-align: center;">
Le dan click derecho en donde no esta coloreada la pantalla y se van a propiedades.</div>
<div class="separator" style="clear: both; text-align: center;">
<a href="http://4.bp.blogspot.com/-3ypAqrY4ALQ/VIiKxamVL7I/AAAAAAAAAA0/DkrJTrfY9Ek/s1600/tutial3.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="http://4.bp.blogspot.com/-3ypAqrY4ALQ/VIiKxamVL7I/AAAAAAAAAA0/DkrJTrfY9Ek/s1600/tutial3.png" height="320" width="260" /></a></div>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
<div class="separator" style="clear: both; text-align: center;">
Podan ver qu en donde dice preferredSize no tiene nada entonces le ponen las mismas distancias que la ventana coloreada.</div>
<div class="separator" style="clear: both; text-align: center;">
<a href="http://1.bp.blogspot.com/-7jwiOmF7DdE/VIiLcHePsXI/AAAAAAAAABA/QrhhrRIHdD4/s1600/tutorial4.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="http://1.bp.blogspot.com/-7jwiOmF7DdE/VIiLcHePsXI/AAAAAAAAABA/QrhhrRIHdD4/s1600/tutorial4.png" height="320" width="302" /></a></div>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
Como pueden ver en la ventana coloreada si tiene las distancias pues en la ventana original le ponen lo mismo<br />
Despues compilan su ventana y les tiene que salir asi<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="http://4.bp.blogspot.com/-pKBg779Ppyo/VIiMXwmiYVI/AAAAAAAAABI/qtiPAnSDsaI/s1600/tutorial%2B5.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="http://4.bp.blogspot.com/-pKBg779Ppyo/VIiMXwmiYVI/AAAAAAAAABI/qtiPAnSDsaI/s1600/tutorial%2B5.png" height="260" width="320" /></a></div>
Bueno amigos este seria el tutorial de hoy ,gracias por verlo y comenten nos vemos.Anonymoushttp://www.blogger.com/profile/16959777803713845505noreply@blogger.com0tag:blogger.com,1999:blog-1426993604327070271.post-898201868281187192014-12-10T09:35:00.003-08:002014-12-10T09:35:33.527-08:00<div class="separator" style="clear: both; text-align: center;">
<object id="BLOG_video-UPLOADING-0" class="BLOG_video_class" contentid="UPLOADING" width="320" height="266" ></object></div>
<br />Anonymoushttp://www.blogger.com/profile/16959777803713845505noreply@blogger.com0tag:blogger.com,1999:blog-1426993604327070271.post-68849102805948195662014-12-07T17:43:00.000-08:002014-12-07T17:43:01.351-08:00Hola amigos aqui les dejare otro tutorial para programar en netbeans.<br />
Como les dije en el tutorial anterior hablamos sobre enlazar ventanas el ejemplo era<br />
<br />
<span style="background-color: white; font-family: 'Trebuchet MS', Verdana, Arial, sans-serif; font-size: 13px; line-height: 18.9149990081787px;">new ventana2().setvisible(true);</span><br />
<span style="background-color: white; font-family: 'Trebuchet MS', Verdana, Arial, sans-serif; font-size: 13px; line-height: 18.9149990081787px;"><br /></span>
<span style="background-color: white; font-family: 'Trebuchet MS', Verdana, Arial, sans-serif; font-size: 13px; line-height: 18.9149990081787px;">Hora lo que haremos es que cuando te lleve a la otra ventana te cierre la ventana en la que estabas esto es para que no se vea muy amontonado este codigo es sencillo aqui les dejo en ejemplo.</span><br />
<span style="background-color: white; font-family: 'Trebuchet MS', Verdana, Arial, sans-serif; font-size: 13px; line-height: 18.9149990081787px;"><br /></span>
<span style="background-color: white; font-family: 'Trebuchet MS', Verdana, Arial, sans-serif; font-size: 13px; line-height: 18.9149990081787px;">new ventana2().setvisible(true);</span><br />
<span style="background-color: white; font-family: 'Trebuchet MS', Verdana, Arial, sans-serif; font-size: 13px; line-height: 18.9149990081787px;">dispose();</span><br />
<span style="background-color: white; font-family: 'Trebuchet MS', Verdana, Arial, sans-serif; font-size: 13px; line-height: 18.9149990081787px;"><br /></span>
<span style="background-color: white; font-family: 'Trebuchet MS', Verdana, Arial, sans-serif; font-size: 13px; line-height: 18.9149990081787px;">Dispose se utiliza para cerrar ventana o salir de ellas con esto tambien pueden hacer botones de salida Bueno amigos este seria el tutorial de hoy Comenten y gracias</span>Anonymoushttp://www.blogger.com/profile/16959777803713845505noreply@blogger.com0tag:blogger.com,1999:blog-1426993604327070271.post-59742165460234552322014-12-07T17:34:00.001-08:002014-12-07T17:34:20.905-08:00Hola compañeros de 3F hice este blog para que ustedes que tenga alguna duda sobre java<br />
Bueno empezaremos con una pequeña clase , para esto necesitaremos nuestro IDE de netbeans para esto tienen que tener instalado java para que puedan trabajar .<br />
<br />
1.ENLAZAR VENTANAS.<br />
Bueno muchos me han dicho como enlazar las ventanas cuando haces una pantalla , cuando pones un boton y qieres que ese boton te lleve a otra pantalla solo haces click derecho sobre el boton y le das en events o eventos , te llevara a los codigo y te va a aparecer el el nombre del boton o le dan doble click al boton y automaticamente los llevara al codigo , ponen el siguiente codigo . PARA ESTO TIENE QUE TENER CREADA LA PANTALLA A DONDE QUIEREN QUE LOS LLEVE.<br />
Por ejemplo tengo una ventana que se llama ventana1 y la quiero enlazar con la ventana2.<br />
En el boton de la ventana1 le ponen doble click y escriben el siguiente codigo.<br />
<br />
<br />
new ventana2().setvisible(true);<br />
<br />
Esto va a ser que te abra la otra pantalla<br />
TIENEN QUE PONER EL NOMBRE DE LA VENTANA TAL COMO LO ESCRIBIERON PORQUE LUEGO APARECE ERRORES.<br />
<br />
Bueno pues esto seria todo Gracias.<br />
Cualquier duda comente en este blog.Anonymoushttp://www.blogger.com/profile/16959777803713845505noreply@blogger.com0