{"id":1610,"date":"2016-05-25T23:36:00","date_gmt":"2016-05-26T04:36:00","guid":{"rendered":"http:\/\/linuxitos.com\/main\/agregar-imagen-de-fondo-en-programas-java-netbeans\/"},"modified":"2016-05-25T23:36:00","modified_gmt":"2016-05-26T04:36:00","slug":"agregar-imagen-de-fondo-en-programas-java-netbeans","status":"publish","type":"post","link":"https:\/\/linuxitos.com\/main\/agregar-imagen-de-fondo-en-programas-java-netbeans\/","title":{"rendered":"Agregar imagen de Fondo en programas Java &#8211; Netbeans"},"content":{"rendered":"<div dir=\"ltr\" style=\"text-align: left;\">\n<div style=\"clear: both; text-align: center;\"><\/div>\n<div style=\"clear: both; text-align: center;\"><a href=\"https:\/\/3.bp.blogspot.com\/-ffMLfSxgpwQ\/V0Z2_yslrRI\/AAAAAAAACL4\/q3vfmWnc9akG_PBKOhlIHUQPzjBWkjZjwCLcB\/s1600\/Captura%2Bde%2Bpantalla%2Bde%2B2016-05-24%2B21-26-54.png\" style=\"margin-left: 1em; margin-right: 1em;\"><img loading=\"lazy\" decoding=\"async\" border=\"0\" height=\"358\" src=\"https:\/\/3.bp.blogspot.com\/-ffMLfSxgpwQ\/V0Z2_yslrRI\/AAAAAAAACL4\/q3vfmWnc9akG_PBKOhlIHUQPzjBWkjZjwCLcB\/s640\/Captura%2Bde%2Bpantalla%2Bde%2B2016-05-24%2B21-26-54.png\" width=\"640\" \/><\/a><\/div>\n<div style=\"clear: both; text-align: center;\"><\/div>\n<div style=\"clear: both; text-align: justify;\">Cada programador tienes su propios gustos para decorar sus programas desarrollados, pero sin duda alguna, a muchos nos gustan que los dise\u00f1os de las ventanas, fondos, o colores sean llamativos.<\/div>\n<div style=\"clear: both; text-align: justify;\"><\/div>\n<div style=\"clear: both; text-align: justify;\">Quiz\u00e1 no es lo m\u00e1s importante de un software, sin imbargo es parte de lo que hoy se llama \u00abUsabilidad\u00bb, las iterfaces sean bonitas, simples, entre muchas otras cosas, pero sobre todo, que funcione, de eso no tengo la menor duda.<\/div>\n<div style=\"clear: both; text-align: justify;\"><\/div>\n<div style=\"clear: both; text-align: justify;\">Hab\u00eda buscado mucha informaci\u00f3n sobre c\u00f3mo poner una imagen de fondo en un jpanel, o jframe en java, pero sin mucho \u00e9xito.<\/div>\n<div style=\"clear: both; text-align: justify;\"><\/div>\n<div style=\"clear: both; text-align: justify;\">Y c\u00f3mo ya habr\u00e1n visto en las im\u00e1genes, ya encontr\u00e9 una manera de solucionarlo.<\/div>\n<div style=\"clear: both; text-align: justify;\"><\/div>\n<div style=\"clear: both; text-align: justify;\">En muchos proyectos es necesario agregar un poco de \u00abAnimaci\u00f3n\u00bb al software, para que no parezca tan rustico.<\/div>\n<div style=\"clear: both; text-align: justify;\"><\/div>\n<div style=\"clear: both; text-align: justify;\">El truco no es complicado, adem\u00e1s es compatible completamente con NetBeans.<\/div>\n<div style=\"clear: both; text-align: justify;\"><\/div>\n<div style=\"clear: both; text-align: justify;\">Lo que se hace en realidad es, Agregar la imagen a un JLabel y enviar el JLabel al fondo de todos los dem\u00e1s objetos, para que esto sea posible, es necesario lo siguiente:<\/div>\n<div style=\"clear: both; text-align: justify;\"><\/div>\n<div style=\"clear: both; text-align: justify;\">1.- Crear JFrame<\/div>\n<div style=\"clear: both; text-align: justify;\">2.- Agregar un JPanel<\/div>\n<div style=\"clear: both; text-align: justify;\">3.- En la parte Izquierda de Netbeans &gt; Navigator, clic derecho sobre el JPanel creado &gt; Set Layout &gt; Null Layout, esto permitir\u00e1 ubicar manualmente la posici\u00f3n de los objetos.<\/div>\n<div style=\"clear: both; text-align: justify;\"><\/div>\n<div style=\"clear: both; text-align: justify;\"><a href=\"https:\/\/1.bp.blogspot.com\/-Sa_G-IwBpCg\/V0Z51N5N77I\/AAAAAAAACMQ\/VchKVF3GN2AMe7YjeqD2Gl9p0MNhLQUTQCLcB\/s1600\/Captura%2Bde%2Bpantalla%2Bde%2B2016-05-25%2B23-19-09.png\" style=\"margin-left: 1em; margin-right: 1em;\"><img loading=\"lazy\" decoding=\"async\" border=\"0\" height=\"436\" src=\"https:\/\/1.bp.blogspot.com\/-Sa_G-IwBpCg\/V0Z51N5N77I\/AAAAAAAACMQ\/VchKVF3GN2AMe7YjeqD2Gl9p0MNhLQUTQCLcB\/s640\/Captura%2Bde%2Bpantalla%2Bde%2B2016-05-25%2B23-19-09.png\" width=\"640\" \/><\/a><\/div>\n<div style=\"clear: both; text-align: justify;\"><\/div>\n<div style=\"clear: both; text-align: justify;\">4.- Agregar un JLabel<\/div>\n<div style=\"clear: both; text-align: justify;\">5.- Agregar una imagen a su JLabel, esto es la opci\u00f3n properties &gt; icon, del panel Derecho de Netbeans, es necesario seleccionar el JLabel para activar su respectivas propiedades.<\/div>\n<div style=\"clear: both; text-align: justify;\">6.-&nbsp; Agregar los objetos que necesiten.<\/div>\n<div style=\"clear: both; text-align: justify;\">7.- Al final, s\u00f3lo hay que enviar hacer que el JLabel sea el primer objeto del fondo, esto se logra con Dar clic derecho sobre el JLabel con la imagen de fondo, del panel Izquierdo (Navigator) y seleccionar Move Down, hasta que sea el \u00faltimo.<\/div>\n<div style=\"clear: both; text-align: center;\"><a href=\"https:\/\/3.bp.blogspot.com\/-dU30qEQtHFg\/V0Z7adsWwcI\/AAAAAAAACMc\/6UvgNalzNZ8sHBh90Zt9Sgbv1EGoqMG1wCLcB\/s1600\/Captura%2Bde%2Bpantalla%2Bde%2B2016-05-25%2B23-26-27.png\" style=\"margin-left: 1em; margin-right: 1em;\"><img loading=\"lazy\" decoding=\"async\" border=\"0\" height=\"281\" src=\"https:\/\/3.bp.blogspot.com\/-dU30qEQtHFg\/V0Z7adsWwcI\/AAAAAAAACMc\/6UvgNalzNZ8sHBh90Zt9Sgbv1EGoqMG1wCLcB\/s400\/Captura%2Bde%2Bpantalla%2Bde%2B2016-05-25%2B23-26-27.png\" width=\"400\" \/><\/a><\/div>\n<div style=\"clear: both; text-align: justify;\"><\/div>\n<div style=\"clear: both; text-align: justify;\">8.- Listo, eso es todo.<\/div>\n<div style=\"clear: both; text-align: justify;\"><\/div>\n<div style=\"clear: both; text-align: right;\"><span style=\"font-size: xx-small;\">Fuente principal: http:\/\/www.netbeanstutorials.com\/p\/setting-background-image.html<\/span><\/div>\n<div style=\"clear: both; text-align: justify;\"><\/div>\n<div style=\"clear: both; text-align: justify;\">Les dejo las ultimas actualizaciones realizadas a los proyectos de Gesti\u00f3n de bases de datos con MySQL, Potsgresql con java.<\/div>\n<div style=\"clear: both; text-align: center;\"><\/div>\n<div style=\"clear: both; text-align: center;\"><a href=\"https:\/\/1.bp.blogspot.com\/-L1SB_Jmp_QM\/V0Z27PUSuuI\/AAAAAAAACL0\/5fapueNaMNI9If__AmfuS7gB3SPOb7_xACLcB\/s1600\/Captura%2Bde%2Bpantalla%2Bde%2B2016-05-24%2B19-19-52.png\" style=\"margin-left: 1em; margin-right: 1em;\"><img loading=\"lazy\" decoding=\"async\" border=\"0\" height=\"286\" src=\"https:\/\/1.bp.blogspot.com\/-L1SB_Jmp_QM\/V0Z27PUSuuI\/AAAAAAAACL0\/5fapueNaMNI9If__AmfuS7gB3SPOb7_xACLcB\/s400\/Captura%2Bde%2Bpantalla%2Bde%2B2016-05-24%2B19-19-52.png\" width=\"400\" \/><\/a><\/div>\n<p><\/p>\n<div style=\"clear: both; text-align: center;\"><a href=\"https:\/\/3.bp.blogspot.com\/-h8k252rCMN4\/V0Z3XLnMJFI\/AAAAAAAACL8\/Rn7AvtFerS0Uf4CFq6P1ofuNjAR1VAiUwCLcB\/s1600\/Captura%2Bde%2Bpantalla%2Bde%2B2016-05-25%2B10-39-04.png\" style=\"margin-left: 1em; margin-right: 1em;\"><img loading=\"lazy\" decoding=\"async\" border=\"0\" height=\"202\" src=\"https:\/\/3.bp.blogspot.com\/-h8k252rCMN4\/V0Z3XLnMJFI\/AAAAAAAACL8\/Rn7AvtFerS0Uf4CFq6P1ofuNjAR1VAiUwCLcB\/s400\/Captura%2Bde%2Bpantalla%2Bde%2B2016-05-25%2B10-39-04.png\" width=\"400\" \/><\/a><\/div>\n<p>&nbsp;Sitio de GitHub del proyecto con MySQL:<br \/><span style=\"font-size: large;\"><b>https:\/\/github.com\/jesusferm\/Black-List-MySQL<\/b><\/span><\/p>\n<p>SItio del Proyecto de Postgresql con java:<br \/><b><span style=\"font-size: large;\">&nbsp;https:\/\/github.com\/jesusferm\/BlackList-PostgreSQL<\/span><\/b><\/p>\n<div style=\"clear: both; text-align: center;\"><a href=\"https:\/\/1.bp.blogspot.com\/-ffMLfSxgpwQ\/V0Z2_yslrRI\/AAAAAAAACME\/KUAR27L0Sn8Grkh0neBgpmsLrfyO-k7LwCKgB\/s1600\/Captura%2Bde%2Bpantalla%2Bde%2B2016-05-24%2B21-26-54.png\" style=\"margin-left: 1em; margin-right: 1em;\"><img loading=\"lazy\" decoding=\"async\" border=\"0\" height=\"223\" src=\"https:\/\/1.bp.blogspot.com\/-ffMLfSxgpwQ\/V0Z2_yslrRI\/AAAAAAAACME\/KUAR27L0Sn8Grkh0neBgpmsLrfyO-k7LwCKgB\/s400\/Captura%2Bde%2Bpantalla%2Bde%2B2016-05-24%2B21-26-54.png\" width=\"400\" \/><\/a><\/div>\n<div style=\"clear: both; text-align: center;\"><\/div>\n<div style=\"clear: both; text-align: center;\"><a href=\"https:\/\/1.bp.blogspot.com\/-cW9S3Vjmweo\/V0Z3ZEiKFRI\/AAAAAAAACMA\/AEkwuSgtcrYzAyJ_m05rhEIm67T3lzTfgCLcB\/s1600\/Captura%2Bde%2Bpantalla%2Bde%2B2016-05-25%2B23-04-07.png\" style=\"margin-left: 1em; margin-right: 1em;\"><img loading=\"lazy\" decoding=\"async\" border=\"0\" height=\"203\" src=\"https:\/\/1.bp.blogspot.com\/-cW9S3Vjmweo\/V0Z3ZEiKFRI\/AAAAAAAACMA\/AEkwuSgtcrYzAyJ_m05rhEIm67T3lzTfgCLcB\/s400\/Captura%2Bde%2Bpantalla%2Bde%2B2016-05-25%2B23-04-07.png\" width=\"400\" \/><\/a><\/div>\n<p>Y eso es todo, gracias por visitar.<\/div>\n","protected":false},"excerpt":{"rendered":"<p>Cada programador tienes su propios gustos para decorar sus programas desarrollados, pero sin duda alguna, a muchos nos gustan que los dise\u00f1os de las ventanas, fondos, o colores sean llamativos. Quiz\u00e1 no es lo m\u00e1s importante de un software, sin imbargo es parte de lo que hoy se llama \u00abUsabilidad\u00bb, las iterfaces sean bonitas, simples, [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[636,4,359,635,638,637,335],"tags":[],"class_list":["post-1610","post","type-post","status-publish","format-standard","hentry","category-image","category-linux","category-netbeans","category-poner-imagenes-en-jpanel","category-programas","category-set-image-bakcground","category-software"],"_links":{"self":[{"href":"https:\/\/linuxitos.com\/main\/wp-json\/wp\/v2\/posts\/1610","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/linuxitos.com\/main\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/linuxitos.com\/main\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/linuxitos.com\/main\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/linuxitos.com\/main\/wp-json\/wp\/v2\/comments?post=1610"}],"version-history":[{"count":0,"href":"https:\/\/linuxitos.com\/main\/wp-json\/wp\/v2\/posts\/1610\/revisions"}],"wp:attachment":[{"href":"https:\/\/linuxitos.com\/main\/wp-json\/wp\/v2\/media?parent=1610"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/linuxitos.com\/main\/wp-json\/wp\/v2\/categories?post=1610"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/linuxitos.com\/main\/wp-json\/wp\/v2\/tags?post=1610"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}