<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40"><head><meta http-equiv=Content-Type content="text/html; charset=iso-8859-1"><meta name=Generator content="Microsoft Word 14 (filtered medium)"><style><!--
/* Font Definitions */
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0cm;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Calibri","sans-serif";
        mso-fareast-language:EN-US;}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:purple;
        text-decoration:underline;}
span.EstiloCorreo17
        {mso-style-type:personal-compose;
        font-family:"Calibri","sans-serif";
        color:windowtext;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-family:"Calibri","sans-serif";
        mso-fareast-language:EN-US;}
@page WordSection1
        {size:612.0pt 792.0pt;
        margin:70.85pt 3.0cm 70.85pt 3.0cm;}
div.WordSection1
        {page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]--></head><body lang=ES-MX link=blue vlink=purple><div class=WordSection1><p class=MsoNormal><span lang=EN-US><o:p>&nbsp;</o:p></span></p><p class=MsoNormal><span style='font-size:12.0pt;font-family:"Arial","sans-serif"'><o:p>&nbsp;</o:p></span></p><p class=MsoNormal><span style='font-size:12.0pt;font-family:"Arial","sans-serif"'>Hola  todos ,<o:p></o:p></span></p><p class=MsoNormal><o:p>&nbsp;</o:p></p><p class=MsoNormal style='text-align:justify'><span style='font-size:12.0pt;font-family:"Arial","sans-serif"'>Estoy trabajando en una extensión para  gvSig 1.11 y necesito en un objeto JTable tener una columna donde al yo editarla me aparezca un botón en ella, es decir, la idea de esta columna sería que en cada celda de la tabla que pertenezca a esa columna al yo darle clic me aparezca un botón y me permita ejecutar una determinada acción.<o:p></o:p></span></p><p class=MsoNormal style='text-align:justify'><span style='font-size:12.0pt;font-family:"Arial","sans-serif"'>Hasta ahora he estado trabajando con la clase &#8220;<span style='color:black;background:lightgrey;mso-highlight:lightgrey'>DefaultCellEditor</span><span style='color:black'>&#8221; </span>la cual posee<span style='color:black'> </span>un constructor que permite crear objetos del tipo JCombobox, JChekbox y JTextField, pero no posee uno para el botón. <o:p></o:p></span></p><p class=MsoNormal style='text-align:justify'><span style='font-size:12.0pt;font-family:"Arial","sans-serif"'>Ejemplo : <span style='background:yellow;mso-highlight:yellow'>tabla.getColumnModel().getColumn(3).setCellEditor(new DefaultCellEditor(combo));</span><o:p></o:p></span></p><p class=MsoNormal style='text-align:justify'><span style='font-size:12.0pt;font-family:"Arial","sans-serif"'><o:p>&nbsp;</o:p></span></p><p class=MsoNormal style='text-align:justify'><span style='font-size:12.0pt;font-family:"Arial","sans-serif"'>De esta forma me sale en cada celda de la columna 4 de la tabla un combobox para la selección de un valor.</span><span lang=ES style='font-size:12.0pt;font-family:"Arial","sans-serif"'><o:p></o:p></span></p><p class=MsoNormal style='text-align:justify'><span style='font-size:12.0pt;font-family:"Arial","sans-serif"'>Pero mi problema radica en que lo que deseo es un botón para ejecutar una determinada acción.<o:p></o:p></span></p><p class=MsoNormal style='text-align:justify'><span style='font-size:12.0pt;font-family:"Arial","sans-serif"'>Si alguien ha trabajado con esto antes y tiene alguna idea de cómo realizar esta operación agradeceríamos mucho la ayuda que nos puedan brindar.<o:p></o:p></span></p><p class=MsoNormal style='text-align:justify'><span style='font-size:12.0pt;font-family:"Arial","sans-serif"'><o:p>&nbsp;</o:p></span></p><p class=MsoNormal style='text-align:justify'><span style='font-size:12.0pt;font-family:"Arial","sans-serif"'>Saludos , Francisco Salas </span><o:p></o:p></p><p class=MsoNormal><o:p>&nbsp;</o:p></p><p class=MsoNormal><o:p>&nbsp;</o:p></p><p class=MsoNormal><o:p>&nbsp;</o:p></p></div></body></html>