<?xml version="1.0" encoding="UTF-8"?><!-- generator="bbPress" -->
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
>
	<channel>
		<title>Dudas de Programacion &#187; Topic: Imágenes en botones</title>
		<link>http://www.dudasprogramacion.com/topic/imagenes-en-botones</link>
		<description>Dudas sobre lenguajes y apis de programación</description>
		<language>en-US</language>
		<pubDate>Wed, 08 Feb 2012 03:50:03 +0000</pubDate>
		<generator>bbpress 1.1</generator>
		<textInput>
			<title><![CDATA[Search]]></title>
			<description><![CDATA[Search all topics from these forums.]]></description>
			<name>q</name>
			<link>http://www.dudasprogramacion.com/search.php</link>
		</textInput>
		<atom:link href="http://www.dudasprogramacion.com/rss/topic/imagenes-en-botones" rel="self" type="application/rss+xml" />

		<item>
			<title>fiurer87 on "Imágenes en botones"</title>
			<link>http://www.dudasprogramacion.com/topic/imagenes-en-botones#post-414</link>
			<pubDate>Wed, 19 May 2010 14:28:17 +0000</pubDate>
			<dc:creator>fiurer87</dc:creator>
			<guid isPermaLink="false">414@http://www.dudasprogramacion.com/</guid>
			<description><p>Hola,<br />
Botones con imagenes en JAVA.<br />
Bueno, en JAVA el JButton tiene un constructor de la siguiente forma<br />
JButton(String s, Icon i);<br />
Donde Icon es una interface, es decir puedes crear una clase que implemente esa interfaz y podra ser usado como icono de JButton, pero existe tambien el Clase ImageIcon que obtinene una imagen desde un lugar especifico y la usa como icono, su constructor tiene la siguiente forma (por lo menos para nuestro caso :&#124; ).<br />
ImageIcon(String URLimagen).<br />
Bueno, ya no te aburro mas con explicaciones te dejo un ejemplito :).<br />
Supondre que tengo una carpeta ico, donde estan mis iconos, por ejemplo<br />
iconito.png<br />
==================================<br />
/* BotonIcono.java<br />
 * @author Roberto Perez */</p>
<p>import java.awt.FlowLayout;<br />
import javax.swing.JFrame;<br />
import javax.swing.JButton;<br />
import javax.swing.ImageIcon;</p>
<p>public class BotonIcono extends JFrame{<br />
     private JButton boton;<br />
     private ImageIcon imagen;<br />
     public BotonIcono(){<br />
        super(&#34;Boton Imagen&#34;);<br />
        setSize(200,80);<br />
        setLayout(new FlowLayout());<br />
        imagen = new ImageIcon(&#34;icon/iconito.png&#34;);<br />
        boton = new JButton(&#34;Mi Boton&#34;, imagen);<br />
        add(boton);<br />
     }</p>
<p>     public static void main(String[] arg){<br />
        BotonIcono obj = new BotonIcono();<br />
        obj.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);<br />
        obj.setVisible(true);<br />
     }<br />
}
</p></description>
		</item>
		<item>
			<title>Torres on "Imágenes en botones"</title>
			<link>http://www.dudasprogramacion.com/topic/imagenes-en-botones#post-235</link>
			<pubDate>Tue, 13 Oct 2009 13:03:10 +0000</pubDate>
			<dc:creator>Torres</dc:creator>
			<guid isPermaLink="false">235@http://www.dudasprogramacion.com/</guid>
			<description><p>Buenas!</p>
<p>Supongo que hablar de html básico, tienes usar CSS, en concreto la opción background</p>
<p>Un ejemplo sería algo así:</p>
<p>&#60;input type=”button” class=”button” title=”Background Image” /&#62;</p>
<p>.button{<br />
      background: white url(’images/imagebutton.gif’) no-repeat top;<br />
      width: 150px;<br />
      height: 40px;<br />
      color:white;<br />
}
</p></description>
		</item>
		<item>
			<title>Luchex on "Imágenes en botones"</title>
			<link>http://www.dudasprogramacion.com/topic/imagenes-en-botones#post-233</link>
			<pubDate>Fri, 09 Oct 2009 21:20:24 +0000</pubDate>
			<dc:creator>Luchex</dc:creator>
			<guid isPermaLink="false">233@http://www.dudasprogramacion.com/</guid>
			<description><p>Hola<br />
¿Como puedo agregar imagenes sobre los botones?</p>
<p>gracias
</p></description>
		</item>

	</channel>
</rss>

