<?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; Recent Topics</title>
		<link>http://www.dudasprogramacion.com/</link>
		<description>Dudas sobre lenguajes y apis de programación</description>
		<language>en-US</language>
		<pubDate>Sun, 05 Feb 2012 07:06:59 +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/topics" rel="self" type="application/rss+xml" />

		<item>
			<title>YtseJam on "Problema con GUI"</title>
			<link>http://www.dudasprogramacion.com/topic/problema-con-gui#post-1022</link>
			<pubDate>Wed, 01 Feb 2012 00:54:42 +0000</pubDate>
			<dc:creator>YtseJam</dc:creator>
			<guid isPermaLink="false">1022@http://www.dudasprogramacion.com/</guid>
			<description><p>Que tal?<br />
Estoy luchando con unas ventanas que tengo que hacer para un proyecto de la Facu.<br />
Inicialmente me habia preocupado por la funcionabilidad y no tanto por el diseño. Ahora que lo quiero mejorar, me encuentro con el siguiente problema:<br />
Tengo mucho espacio vertical entre los jLabels y los jTextFields</p>
<p><a href="http://s2.subirimagenes.com/imagen/previo/thump_7387395ventana.png" rel="nofollow">http://s2.subirimagenes.com/imagen/previo/thump_7387395ventana.png</a></p>
<p>Y este es el codigo que genera esta ventana.</p>
<p>public void listarChoferes() throws ConnectException{</p>
<p>                 ScrollPane scroll = new ScrollPane();<br />
                 String codigoChofer;<br />
                 boolean first = true;<br />
              try {<br />
                    for (Iterator&#60;Chofer&#62; iterator = Chofer_DTO.listarChoferes().iterator(); iterator.hasNext();) {</p>
<p>                      Chofer chofer = (Chofer) iterator.next();</p>
<p>                         JLabel  lblCodigoCofer = new javax.swing.JLabel();<br />
                         JLabel  lblNombreChofer = new javax.swing.JLabel();<br />
                         JLabel  lblDniChofer = new javax.swing.JLabel();<br />
                         JLabel  lblApellidoChofer = new javax.swing.JLabel();<br />
                         JLabel  lblDireccionChofer = new javax.swing.JLabel();<br />
                         JLabel  lblCpChofer = new javax.swing.JLabel();<br />
                         JLabel  lblIdLocalidadChofer = new javax.swing.JLabel();<br />
                         JLabel  lblTelParticularChofer = new javax.swing.JLabel();<br />
                         JLabel  lblCelularChofer = new javax.swing.JLabel();<br />
                         JLabel  lblNextelChofer = new javax.swing.JLabel();<br />
                         JLabel  lblMailChofer = new javax.swing.JLabel();<br />
                         JLabel  lblCodigoChofer = new javax.swing.JLabel();</p>
<p>                         JLabel  lblVacio = new javax.swing.JLabel();<br />
                         JLabel  lblVacio1 = new javax.swing.JLabel();</p>
<p>                         final JButton btnConfirModificar = new javax.swing.JButton();<br />
                         final JButton btnEliminar = new javax.swing.JButton();<br />
                     JTextField txtCodigo = new JTextField();<br />
                       JTextField txtNombre= new JTextField();<br />
                     JTextField txtDni = new JTextField();<br />
                       JTextField txtApellido= new JTextField();<br />
                     JTextField txtDireccion = new JTextField();<br />
                       JTextField txtIdLocalidad= new JTextField();<br />
                     JTextField txtTelParticular = new JTextField();<br />
                       JTextField txtCelular= new JTextField();<br />
                       JTextField txtNextel= new JTextField();<br />
                       JTextField txtMail= new JTextField();<br />
                       JTextField txtCp= new JTextField();<br />
                       if(first) {</p>
<p>                            lblCodigoChofer.setFont(new java.awt.Font("Tahoma", 0, 12)); // NOI18N<br />
                          lblCodigoChofer.setForeground(new java.awt.Color(0, 51, 204));<br />
                          lblCodigoChofer.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);<br />
                          lblCodigoChofer.setVerticalAlignment(javax.swing.SwingConstants.TOP);<br />
                          lblCodigoChofer.setText("Código");</p>
<p>                          lblApellidoChofer.setFont(new java.awt.Font("Tahoma", 0, 12)); // NOI18N<br />
                            lblApellidoChofer.setForeground(new java.awt.Color(0, 51, 204));<br />
                          lblApellidoChofer.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);<br />
                          lblApellidoChofer.setVerticalAlignment(javax.swing.SwingConstants.TOP);<br />
                          lblApellidoChofer.setText("Apellido");</p>
<p>                          lblDireccionChofer.setFont(new java.awt.Font("Tahoma", 0, 12)); // NOI18N<br />
                          lblDireccionChofer.setForeground(new java.awt.Color(0, 51, 204));<br />
                          lblDireccionChofer.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);<br />
                          lblDireccionChofer.setVerticalAlignment(javax.swing.SwingConstants.TOP);<br />
                          lblDireccionChofer.setText("Dirección");</p>
<p>                          lblDniChofer.setFont(new java.awt.Font("Tahoma", 0, 12)); // NOI18N<br />
                          lblDniChofer.setForeground(new java.awt.Color(0, 51, 204));<br />
                          lblDniChofer.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);<br />
                          lblDniChofer.setVerticalAlignment(javax.swing.SwingConstants.TOP);<br />
                          lblDniChofer.setText("Dni");</p>
<p>                          lblCpChofer.setFont(new java.awt.Font("Tahoma", 0, 12)); // NOI18N<br />
                          lblCpChofer.setForeground(new java.awt.Color(0, 51, 204));<br />
                          lblCpChofer.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);<br />
                          lblCpChofer.setVerticalAlignment(javax.swing.SwingConstants.TOP);<br />
                          lblCpChofer.setText("CP");</p>
<p>                          lblCelularChofer.setFont(new java.awt.Font("Tahoma", 0, 12)); // NOI18N<br />
                          lblCelularChofer.setForeground(new java.awt.Color(0, 51, 204));<br />
                          lblCelularChofer.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);<br />
                          lblCelularChofer.setVerticalAlignment(javax.swing.SwingConstants.TOP);<br />
                          lblCelularChofer.setText("Celular");</p>
<p>                          lblMailChofer.setFont(new java.awt.Font("Tahoma", 0, 12)); // NOI18N<br />
                          lblMailChofer.setForeground(new java.awt.Color(0, 51, 204));<br />
                          lblMailChofer.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);<br />
                          lblMailChofer.setVerticalAlignment(javax.swing.SwingConstants.TOP);<br />
                          lblMailChofer.setText("Mail");</p>
<p>                          lblNextelChofer.setFont(new java.awt.Font("Tahoma", 0, 12)); // NOI18N<br />
                          lblNextelChofer.setForeground(new java.awt.Color(0, 51, 204));<br />
                          lblNextelChofer.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);<br />
                          lblNextelChofer.setVerticalAlignment(javax.swing.SwingConstants.TOP);<br />
                          lblNextelChofer.setText("Nextel");</p>
<p>                          lblTelParticularChofer.setFont(new java.awt.Font("Tahoma", 0, 12)); // NOI18N<br />
                          lblTelParticularChofer.setForeground(new java.awt.Color(0, 51, 204));<br />
                          lblTelParticularChofer.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);<br />
                          lblTelParticularChofer.setVerticalAlignment(javax.swing.SwingConstants.TOP);<br />
                          lblTelParticularChofer.setText("Teléfono");</p>
<p>                          lblIdLocalidadChofer.setFont(new java.awt.Font("Tahoma", 0, 12)); // NOI18N<br />
                          lblIdLocalidadChofer.setForeground(new java.awt.Color(0, 51, 204));<br />
                          lblIdLocalidadChofer.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);<br />
                          lblIdLocalidadChofer.setVerticalAlignment(javax.swing.SwingConstants.TOP);<br />
                          lblIdLocalidadChofer.setText("Localidad");</p>
<p>                          lblNombreChofer.setFont(new java.awt.Font("Tahoma", 0, 12)); // NOI18N<br />
                          lblNombreChofer.setForeground(new java.awt.Color(0, 51, 204));<br />
                          lblNombreChofer.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);<br />
                          lblNombreChofer.setVerticalAlignment(javax.swing.SwingConstants.TOP);<br />
                          lblNombreChofer.setText("Nombre");</p>
<p>                          lblVacio.setFont(new java.awt.Font("Tahoma", 0, 12)); // NOI18N<br />
                          lblVacio.setForeground(new java.awt.Color(0, 51, 204));<br />
                          lblVacio.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);<br />
                          lblVacio.setVerticalAlignment(javax.swing.SwingConstants.TOP);<br />
                          lblVacio.setText("Acción");</p>
<p>                          lblVacio1.setFont(new java.awt.Font("Tahoma", 0, 12)); // NOI18N<br />
                          lblVacio1.setForeground(new java.awt.Color(0, 51, 204));<br />
                          lblVacio1.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);<br />
                          lblVacio1.setVerticalAlignment(javax.swing.SwingConstants.TOP);<br />
                          lblVacio1.setText("Acción");<br />
                       }</p>
<p>                     btnConfirModificar.setFont(new java.awt.Font("Tahoma", 1, 11)); // NOI18N<br />
                     btnConfirModificar.setForeground(new java.awt.Color(0, 204, 102));<br />
                     btnConfirModificar.setText("Modificar");<br />
                     btnConfirModificar.setName(String.valueOf(chofer.getChoferId()));</p>
<p>                     btnEliminar.setFont(new java.awt.Font("Tahoma", 1, 11)); // NOI18N<br />
                     btnEliminar.setForeground(new java.awt.Color(255, 0, 0));<br />
                     btnEliminar.setText("Eliminar");<br />
                        txtCodigo.setEditable(false);<br />
                       txtNombre.setEditable(false);</p>
<p>                     codigoChofer = String.valueOf(chofer.getChoferId());<br />
                         txtCodigo.setText(codigoChofer);<br />
                         txtCodigo.setSize(50,50);<br />
                         txtCodigo.setBounds(10,50,0,0);<br />
                         //txtCodigo.setFont(new Font("Tahoma", 1, 11));<br />
                       txtNombre.setText(chofer.getNombre());<br />
                       txtDni.setText(chofer.getDni().toString());<br />
                       txtApellido.setText(chofer.getApellido());<br />
                       txtDireccion.setText(chofer.getDireccion());<br />
                       txtIdLocalidad.setText(String.valueOf(chofer.getLocalidad()));<br />
                       txtCp.setText(String.valueOf(chofer.getCodPostal()));</p>
<p>                       txtTelParticular.setText(chofer.getTelefono().toString());<br />
                       txtCelular.setText(chofer.getCelular().toString());<br />
                       txtNextel.setText(chofer.getNextel());<br />
                       txtMail.setText(chofer.getMail());<br />
                       btnConfirModificar.setName(codigoChofer);//seteamos los idZona a los botones<br />
                         btnEliminar.setName(codigoChofer);       //para hacer consultas con el idZona</p>
<p>                         jPanel3.add(lblCodigoChofer);<br />
                         jPanel3.add(lblDniChofer);<br />
                         jPanel3.add(lblNombreChofer);<br />
                         jPanel3.add(lblApellidoChofer);<br />
                         jPanel3.add(lblDireccionChofer);<br />
                         jPanel3.add(lblCpChofer);<br />
                         jPanel3.add(lblIdLocalidadChofer);<br />
                         jPanel3.add(lblTelParticularChofer);<br />
                         jPanel3.add(lblCelularChofer);<br />
                         jPanel3.add(lblNextelChofer);<br />
                         jPanel3.add(lblMailChofer);</p>
<p>                         jPanel3.add(lblVacio);<br />
                         jPanel3.add(lblVacio1);<br />
                         jPanel3.add(txtCodigo);<br />
                         jPanel3.add(txtDni);<br />
                         jPanel3.add(txtNombre);<br />
                         jPanel3.add(txtApellido);<br />
                         jPanel3.add(txtDireccion);<br />
                         jPanel3.add(txtCp);<br />
                         jPanel3.add(txtIdLocalidad);<br />
                         jPanel3.add(txtTelParticular);<br />
                         jPanel3.add(txtCelular);<br />
                         jPanel3.add(txtNextel);<br />
                         jPanel3.add(txtMail);</p>
<p>                         jPanel3.add(btnConfirModificar);<br />
                         jPanel3.add(btnEliminar);<br />
                         jPanel3.setBackground(Color.GRAY);<br />
                         jPanel3.setLayout(new GridLayout(Chofer_DTO.listarChoferes().size()*2,12,5,5));</p>
<p>                         //metodos de eventos de la lista de choferES<br />
                         btnConfirModificar.addActionListener(new ActionListener() {<br />
                                   @Override<br />
                                   public void actionPerformed(ActionEvent e) {<br />
                                        int id =Integer.parseInt(btnConfirModificar.getName());<br />
                                        Chofer chofer;<br />
                                        try {<br />
                                             chofer = (Chofer) Chofer_DTO.listarChoferes();<br />
                                             //jPanel3.setVisible(true);<br />
                                             AdministracionChoferesPopUp(id,chofer.getNombre());</p>
<p>                                        } catch (Exception e1) {<br />
                                             System.out.println("error " + e1.getMessage());</p>
<p>                                   }<br />
                         }});</p>
<p>                         btnEliminar.addActionListener(new ActionListener() {<br />
                              @Override<br />
                              public void actionPerformed(ActionEvent e) {<br />
                                   int id =Integer.parseInt(btnEliminar.getName());<br />
                                   Chofer chofer;<br />
                                   boolean estado;</p>
<p>                                        try {<br />
                                             estado = Chofer_DTO.borrarChofer(id);<br />
                                        } catch (ConnectException e1) {<br />
                                             // TODO Auto-generated catch block<br />
                                             e1.printStackTrace();<br />
                                        }</p>
<p>                                   if(estado = true){<br />
                                             JOptionPane.showMessageDialog(null,"Operación exitosa","info",JOptionPane.INFORMATION_MESSAGE);</p>
<p>                                   }<br />
                                   else{<br />
                                        JOptionPane.showMessageDialog(null,"no se pudo realizar la operación","Error",JOptionPane.ERROR_MESSAGE);<br />
                                   }<br />
                              }<br />
                         }</p>
<p>                         );</p>
<p>                         first = false;<br />
                    }</p>
<p>                 // jPanel3.setVisible(true);<br />
              scroll.add(jPanel3);<br />
                 scroll.setVisible(true);<br />
                 super.add(scroll,BorderLayout.CENTER);</p>
<p>              }catch(Exception e){</p>
<p>              }</p>
<p>       }</p>
<p>Alguien sabe si lo puedo solucionar y como?</p>
<p>Saludos!
</p></description>
		</item>
		<item>
			<title>o9w9ow on "control de  fechas"</title>
			<link>http://www.dudasprogramacion.com/topic/control-de-fechas#post-1009</link>
			<pubDate>Wed, 21 Dec 2011 02:37:50 +0000</pubDate>
			<dc:creator>o9w9ow</dc:creator>
			<guid isPermaLink="false">1009@http://www.dudasprogramacion.com/</guid>
			<description><p>地尽头(15)&#60;原油br&#62;<br />
<a href="http://www.easthillfx.co.jp/ccfd/index5d.htm">原油</a> <a href="http://www.worksite.com.cn">OA</a> <a href="http://www.elecia.com.cn/product.aspx?sort_id=531">磁通计</a> <a href="http://www.aolipump.com/huagong.asp">化工泵</a> <a href="http://www.jk17.cn/chy.asp">测厚仪</a> <a href="http://www.sd1718.com/yiqi/2-2.html">测距仪</a> <a href="http://www.ayqzjx.com/" />垫块机 <a href="http://www.bjmr999.com/2010/1213/80.html">切开双眼皮</a> <a href="http://www.kaiqi-toy.com/" />塑料玩具 <a href="http://www.yhmyl.com/" />中药治疗前列腺炎 <a href="http://www.sd1718.com/yiqi/6-6-4.html">泰克示波器</a> <a href="http://www.ss-spring.cn">弹簧</a> <a href="http://www.navycardiac.com/jbzt/fsxbmb/20070207212.htm">心脏瓣膜病</a> <a href="http://www.021zsgs.com/" />办公室装修 <a href="http://www.mfbhm.cn">保护膜</a> <a href="http://www.guolvji.net/product.asp">板框压滤机</a> <a href="http://www.jrery.com/pro_detail.asp?id=172">开山空压机</a> <a href="http://www.sd1718.com/yiqi/6-5.html">稳压电源</a> <a href="http://www.dg3s.com.cn/" />装饰公司 <a href="http://www.huameiqj.com/" />外墙清洗 <br />
&#60;p&#62;“学文，安排一下，我们去北戴河休息几天。也躲躲落红，估计那丫头快要发难了，她是不会善罢甘休的！”&#60;/p&#62;&#60;p&#62;再次愤怒回到家中的薛落红，再次几乎砸掉了所有能砸的东西！包括多宝格上的有些“旧”的东西，她边砸边气喘吁吁地喊道：“老爹，我究竟什么地方得罪你了？薛落兰，我不会放过你，我跟你拼命！”&#60;/p&#62;&#60;p&#62;叶方没有阻拦她，而是躺在沙发上，平静地、皱着眉头看着她……&#60;/p&#62;&#60;p&#62;能砸的都砸完了，薛落红一个人喘着粗气站在房子的中间。&#60;/p&#62;&#60;p&#62;“你倒是说话啊？至少你可以出个主意啊，你不是早就有了力挽狂澜的办法了吗？”薛落红质问道。&#60;/p&#62;&#60;p&#62;“我……”&#60;/p&#62;&#60;p&#62;“你不是说只要我想当，我就一定可以当上启明星的董事长吗？现在你也傻了吧！怎么说话和放屁一样！要你这样的男人，一点用都没有！”&#60;/p&#62;&#60;p&#62;叶方微笑着站起来,说道:&#60;/p&#62;&#60;p&#62;“我叶方说出的话，泼出的水，我还是那句话，只要你想干，启明星的董事长就一定是你的！”&#60;/p&#62;&#60;p&#62;在薛落红看来，这话是痴人说梦。她理都没有理叶方，而是“呼”地扑倒在床上，大哭起来……&#60;/p&#62;&#60;p&#62;叶方也不再劝她，而是一声不语地、平静地踱到鱼缸旁，看着悠然自得的金鱼……&#60;/p&#62;&#60;p&#62;哭累了的落红，抹去眼泪，“呼”地站起来开始穿衣服。&#60;/p&#62;&#60;p&#62;“你去哪儿？”叶方问道。&#60;/p&#62;&#60;p&#62;“去找老爹，让他给我当面说清！”&#60;/p&#62;&#60;p&#62;“不要去！”叶方虽然还是慢悠悠的，但口气显得有些严厉。&#60;/p&#62;&#60;p&#62;“为什么？”&#60;/p&#62;&#60;p&#62;“去也没用。”叶方随手向鱼缸里撒了点鱼食，然后拍了拍手说道：“你想想，这么大事，你爹一定是几个月前就想好了的，绝不是一时性起决定的。以你姐姐的本事，这么快就拿到这块地，我看一点儿可能都没有！跟我使这招儿，哄孩子呢！”&#60;/p&#62;&#60;p&#62;“哦？”落红停止了穿衣服，惊讶地问道：“你的意思是……”&#60;/p&#62;&#60;p&#62;“当然是老爷子帮她拿的！也许她不是一点力量都没出，但至少找到上家，是老爷子出的力。就凭薛落兰那点儿本事，大海捞针的事她干不了！是老爷子一心想把她扶起来，就凭你这么一找，他会改主意？笑话！”&#60;/p&#62;&#60;p&#62;“是这么回事？那我就更跟老爷子没完！都是他亲生的，他凭什么！”&#60;/p&#62;&#60;p&#62;“你找他也没用，他也不会承认，你也没有任何证据，三言两语就把你哄回来了，实际是顶回来了！”&#60;/p&#62;&#60;p&#62;“这……”落红听明白了，她仔细想了想，气馁地丢下包，坐在床上……&#60;/p&#62;&#60;p&#62;“那你说就没办法了？就眼看着启明星落到落兰一个人手里？对了，你不是说过只要我愿意，启明星就肯定是我的吗？”&#60;/p&#62;&#60;p&#62;“对，我是说过。过去这样说，现在还这样说。落红，只要你愿意，启明星就还是你薛落红的。”叶方口气坚定地说。&#60;/p&#62;&#60;p&#62;“什么时候了，还哄孩子？你当我是三岁小孩呀！”薛落红噘着嘴，扭过头去。&#60;/p&#62;&#60;p&#62;“哄孩子？我可不是！”叶方微微地笑了笑，又不讲话了。&#60;/p&#62;&#60;p&#62;落红站起身，转过头，目光询问地看着他，片刻，说道：“那你到底是什么意思？把话说明白，别这么阴阳怪气的！”&#60;/p&#62;&#60;p&#62;“不好意思啊，我再问一遍，如果公司拿过来，你薛落红做了董事长，和我有什么关系啊？”叶方转过头，口气在一瞬间变得严肃起来。&#60;/p&#62;&#60;p&#62;“你？你是女婿啊，你说是什么关系？”&#60;/p&#62;&#60;p&#62;“那好，那我就算明白了。落红，我们什么时候结婚呀？”&#60;/p&#62;&#60;p&#62;“那还不简单，那还不是咱俩儿说了算。”落红干脆地说道。&#60;/p&#62;&#60;p&#62;“落红，别怪我，也许有些话会显得有点无情，但是丑话讲在前边，我们的关系才能越处越好！落红，我是真的爱你的，这是不会变的！”&#60;/p&#62;&#60;p&#62;“这我信。说吧，你有什么好主意？”薛落红知道，这时话只能这么说。一切要等叶方把事情说明白了再作计较。&#60;/p&#62;&#60;p&#62;&#60;/p&#62;<a href="http://www.dzbq.com/" />深圳搬家公司 <a href="http://www.diansuo.com">门禁</a> <a href="http://www.bolsy.com/productshow.asp?articleid=19">car sun shades</a> <a href="http://www.cnkangyu.com/cpzs.html">弹簧</a> <a href="http://www.cashguide.jp/mobile/" />ショッピング枠現金化 <a href="http://www.sxylzj.com/" />競馬新聞 <a href="http://www.mixer.org.cn/product/glq/default.html">过滤器</a> <a href="http://www.64835108.com/" />打标机 <a href="http://www.jsspring.com">弹簧</a> 
</p></description>
		</item>
		<item>
			<title>novato666 on "No sé como inicializar un arrayList  en Java?"</title>
			<link>http://www.dudasprogramacion.com/topic/no-se-como-inicializar-un-arraylist-en-java#post-1019</link>
			<pubDate>Fri, 27 Jan 2012 22:56:13 +0000</pubDate>
			<dc:creator>novato666</dc:creator>
			<guid isPermaLink="false">1019@http://www.dudasprogramacion.com/</guid>
			<description><p>Hola:</p>
<p>Mira que no sé como hacer un método dentro de una clase, en mi caso k es lo kiero implementar? Espero k m echeis una mano y muchas gracias de antemano.</p>
<p>public ArrayList&#60;Asignatura&#62;iniciarArrayAsignaturas()
</p></description>
		</item>
		<item>
			<title>lopera607 on "JAVA - Algoritmo de Polybios - no entra en un &quot;if&quot;"</title>
			<link>http://www.dudasprogramacion.com/topic/java-algoritmo-de-polybios-no-entra-en-un-if#post-1014</link>
			<pubDate>Sun, 15 Jan 2012 10:07:32 +0000</pubDate>
			<dc:creator>lopera607</dc:creator>
			<guid isPermaLink="false">1014@http://www.dudasprogramacion.com/</guid>
			<description><p>Buenas y ante todo gracias a todos, mi duda es que en el metodo "Encriptar" no me entra al "if", y compruebo las variables String "cadenaAbecedario" y "cadenaFrase" y contienen los datos correctos pero no se por que no entra en la conficion "if", y si la comento, me ejecuta el codigo que contiene if, y le mete al array "resultado", la ultima posición "44" del "ArrayAbecedario", concatena fila y columna.</p>
<pre class="java" style="font-family:monospace;">&nbsp;
<span style="color: #000000; font-weight: bold;">import</span> <span style="color: #006699;">java.util.Scanner</span><span style="color: #339933;">;</span>
&nbsp;
<span style="color: #000000; font-weight: bold;">public</span> <span style="color: #000000; font-weight: bold;">class</span> polybios1 <span style="color: #009900;">&#123;</span>
&nbsp;
	<span style="color: #000000; font-weight: bold;">private</span> <span style="color: #000000; font-weight: bold;">static</span> <span style="color: #000000; font-weight: bold;">final</span> <a href="http://www.google.com/search?hl=en&amp;q=allinurl%3Astring+java.sun.com&amp;btnI=I%27m%20Feeling%20Lucky"><span style="color: #003399;">String</span></a> LeerMatriz <span style="color: #339933;">=</span> <span style="color: #000066; font-weight: bold;">null</span><span style="color: #339933;">;</span>
	<span style="color: #000000; font-weight: bold;">static</span> <a href="http://www.google.com/search?hl=en&amp;q=allinurl%3Astring+java.sun.com&amp;btnI=I%27m%20Feeling%20Lucky"><span style="color: #003399;">String</span></a> Frase <span style="color: #339933;">=</span> <span style="color: #0000ff;">&quot;&quot;</span><span style="color: #339933;">;</span>
	<span style="color: #000000; font-weight: bold;">static</span> <a href="http://www.google.com/search?hl=en&amp;q=allinurl%3Astring+java.sun.com&amp;btnI=I%27m%20Feeling%20Lucky"><span style="color: #003399;">String</span></a> ArrayAbecedario<span style="color: #009900;">&#91;</span><span style="color: #009900;">&#93;</span><span style="color: #009900;">&#91;</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">=</span><span style="color: #009900;">&#123;</span>
	         <span style="color: #009900;">&#123;</span><span style="color: #0000ff;">&quot;a&quot;</span>,<span style="color: #0000ff;">&quot;b&quot;</span>,<span style="color: #0000ff;">&quot;c&quot;</span>,<span style="color: #0000ff;">&quot;d&quot;</span>,<span style="color: #0000ff;">&quot;e&quot;</span><span style="color: #009900;">&#125;</span>,
	         <span style="color: #009900;">&#123;</span><span style="color: #0000ff;">&quot;f&quot;</span>,<span style="color: #0000ff;">&quot;g&quot;</span>,<span style="color: #0000ff;">&quot;h&quot;</span>,<span style="color: #0000ff;">&quot;i&quot;</span>,<span style="color: #0000ff;">&quot;k&quot;</span><span style="color: #009900;">&#125;</span>,
	         <span style="color: #009900;">&#123;</span><span style="color: #0000ff;">&quot;l&quot;</span>,<span style="color: #0000ff;">&quot;m&quot;</span>,<span style="color: #0000ff;">&quot;n&quot;</span>,<span style="color: #0000ff;">&quot;o&quot;</span>,<span style="color: #0000ff;">&quot;p&quot;</span><span style="color: #009900;">&#125;</span>,
	         <span style="color: #009900;">&#123;</span><span style="color: #0000ff;">&quot;q&quot;</span>,<span style="color: #0000ff;">&quot;r&quot;</span>,<span style="color: #0000ff;">&quot;s&quot;</span>,<span style="color: #0000ff;">&quot;t&quot;</span>,<span style="color: #0000ff;">&quot;u&quot;</span><span style="color: #009900;">&#125;</span>,
	         <span style="color: #009900;">&#123;</span><span style="color: #0000ff;">&quot;v&quot;</span>,<span style="color: #0000ff;">&quot;w&quot;</span>,<span style="color: #0000ff;">&quot;x&quot;</span>,<span style="color: #0000ff;">&quot;y&quot;</span>,<span style="color: #0000ff;">&quot;z&quot;</span><span style="color: #009900;">&#125;</span>
	            <span style="color: #009900;">&#125;</span><span style="color: #339933;">;</span> 
&nbsp;
	<span style="color: #000000; font-weight: bold;">public</span> <span style="color: #000000; font-weight: bold;">static</span> <span style="color: #000066; font-weight: bold;">void</span> main<span style="color: #009900;">&#40;</span><a href="http://www.google.com/search?hl=en&amp;q=allinurl%3Astring+java.sun.com&amp;btnI=I%27m%20Feeling%20Lucky"><span style="color: #003399;">String</span></a><span style="color: #009900;">&#91;</span><span style="color: #009900;">&#93;</span> args<span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
&nbsp;
	<span style="color: #666666; font-style: italic;">//Solicitamos frase para cifrar</span>
	solicitaFrase<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
	<a href="http://www.google.com/search?hl=en&amp;q=allinurl%3Astring+java.sun.com&amp;btnI=I%27m%20Feeling%20Lucky"><span style="color: #003399;">String</span></a> FraseParaCifrar<span style="color: #009900;">&#91;</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">;</span>
	FraseParaCifrar <span style="color: #339933;">=</span> <span style="color: #000000; font-weight: bold;">new</span> <a href="http://www.google.com/search?hl=en&amp;q=allinurl%3Astring+java.sun.com&amp;btnI=I%27m%20Feeling%20Lucky"><span style="color: #003399;">String</span></a> <span style="color: #009900;">&#91;</span>Frase.<span style="color: #006633;">length</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">;</span>
	RellenaMatriz<span style="color: #009900;">&#40;</span>FraseParaCifrar, Frase<span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
    MostrarFraseParaCifrar<span style="color: #009900;">&#40;</span>FraseParaCifrar<span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
    Encriptar<span style="color: #009900;">&#40;</span>FraseParaCifrar, ArrayAbecedario<span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
	<span style="color: #009900;">&#125;</span>
&nbsp;
	<span style="color: #000000; font-weight: bold;">private</span> <span style="color: #000000; font-weight: bold;">static</span> <span style="color: #000066; font-weight: bold;">void</span> Encriptar<span style="color: #009900;">&#40;</span><a href="http://www.google.com/search?hl=en&amp;q=allinurl%3Astring+java.sun.com&amp;btnI=I%27m%20Feeling%20Lucky"><span style="color: #003399;">String</span></a><span style="color: #009900;">&#91;</span><span style="color: #009900;">&#93;</span> fraseParaCifrar, <a href="http://www.google.com/search?hl=en&amp;q=allinurl%3Astring+java.sun.com&amp;btnI=I%27m%20Feeling%20Lucky"><span style="color: #003399;">String</span></a><span style="color: #009900;">&#91;</span><span style="color: #009900;">&#93;</span><span style="color: #009900;">&#91;</span><span style="color: #009900;">&#93;</span> ArrayAbecedario<span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
&nbsp;
		<a href="http://www.google.com/search?hl=en&amp;q=allinurl%3Astring+java.sun.com&amp;btnI=I%27m%20Feeling%20Lucky"><span style="color: #003399;">String</span></a> resultado<span style="color: #009900;">&#91;</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">;</span>
		<span style="color: #000000; font-weight: bold;">for</span> <span style="color: #009900;">&#40;</span><span style="color: #000066; font-weight: bold;">int</span> o <span style="color: #339933;">=</span> <span style="color: #cc66cc;">0</span><span style="color: #339933;">;</span>o <span style="color: #339933;">&amp;</span>#<span style="color: #cc66cc;">60</span><span style="color: #339933;">;</span> fraseParaCifrar.<span style="color: #006633;">length</span><span style="color: #339933;">;</span> o<span style="color: #339933;">++</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#123;</span>
&nbsp;
			<a href="http://www.google.com/search?hl=en&amp;q=allinurl%3Asystem+java.sun.com&amp;btnI=I%27m%20Feeling%20Lucky"><span style="color: #003399;">System</span></a>.<span style="color: #006633;">out</span>.<span style="color: #006633;">print</span><span style="color: #009900;">&#40;</span>fraseParaCifrar<span style="color: #009900;">&#91;</span>o<span style="color: #009900;">&#93;</span><span style="color: #339933;">+</span><span style="color: #0000ff;">&quot;-&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
		<span style="color: #009900;">&#125;</span>
		resultado <span style="color: #339933;">=</span> <span style="color: #000000; font-weight: bold;">new</span> <a href="http://www.google.com/search?hl=en&amp;q=allinurl%3Astring+java.sun.com&amp;btnI=I%27m%20Feeling%20Lucky"><span style="color: #003399;">String</span></a> <span style="color: #009900;">&#91;</span>fraseParaCifrar.<span style="color: #006633;">length</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">;</span>
		<span style="color: #000066; font-weight: bold;">int</span> fila <span style="color: #339933;">=</span> <span style="color: #cc66cc;">0</span><span style="color: #339933;">;</span>
		<span style="color: #000066; font-weight: bold;">int</span> columna <span style="color: #339933;">=</span> <span style="color: #cc66cc;">0</span><span style="color: #339933;">;</span>
		<span style="color: #000000; font-weight: bold;">for</span> <span style="color: #009900;">&#40;</span>fila <span style="color: #339933;">=</span> <span style="color: #cc66cc;">0</span><span style="color: #339933;">;</span> fila <span style="color: #339933;">&amp;</span>#<span style="color: #cc66cc;">60</span><span style="color: #339933;">;=</span> <span style="color: #cc66cc;">4</span><span style="color: #339933;">;</span> fila<span style="color: #339933;">++</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#123;</span>
			<span style="color: #000000; font-weight: bold;">for</span> <span style="color: #009900;">&#40;</span>columna <span style="color: #339933;">=</span> <span style="color: #cc66cc;">0</span><span style="color: #339933;">;</span> columna <span style="color: #339933;">&amp;</span>#<span style="color: #cc66cc;">60</span><span style="color: #339933;">;=</span> <span style="color: #cc66cc;">4</span><span style="color: #339933;">;</span> columna<span style="color: #339933;">++</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#123;</span>
				<span style="color: #666666; font-style: italic;">//System.out.print(ArrayAbecedario[fila][columna]);</span>
				<a href="http://www.google.com/search?hl=en&amp;q=allinurl%3Astring+java.sun.com&amp;btnI=I%27m%20Feeling%20Lucky"><span style="color: #003399;">String</span></a> cadenaAbecedario <span style="color: #339933;">=</span> <span style="color: #0000ff;">&quot;&quot;</span><span style="color: #339933;">;</span>
				cadenaAbecedario <span style="color: #339933;">=</span> ArrayAbecedario<span style="color: #009900;">&#91;</span>fila<span style="color: #009900;">&#93;</span><span style="color: #009900;">&#91;</span>columna<span style="color: #009900;">&#93;</span><span style="color: #339933;">;</span>
&nbsp;
				<span style="color: #000000; font-weight: bold;">for</span> <span style="color: #009900;">&#40;</span><span style="color: #000066; font-weight: bold;">int</span> o <span style="color: #339933;">=</span> <span style="color: #cc66cc;">0</span><span style="color: #339933;">;</span>o <span style="color: #339933;">&amp;</span>#<span style="color: #cc66cc;">60</span><span style="color: #339933;">;</span> fraseParaCifrar.<span style="color: #006633;">length</span><span style="color: #339933;">;</span> o<span style="color: #339933;">++</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#123;</span>
					<span style="color: #666666; font-style: italic;">//System.out.println(fila+&quot;&quot;+columna);</span>
					<span style="color: #666666; font-style: italic;">//System.out.println(fraseParaCifrar[1]);</span>
			    <a href="http://www.google.com/search?hl=en&amp;q=allinurl%3Astring+java.sun.com&amp;btnI=I%27m%20Feeling%20Lucky"><span style="color: #003399;">String</span></a> cadenaFrase <span style="color: #339933;">=</span> fraseParaCifrar<span style="color: #009900;">&#91;</span>o<span style="color: #009900;">&#93;</span><span style="color: #339933;">;</span>
			    <a href="http://www.google.com/search?hl=en&amp;q=allinurl%3Asystem+java.sun.com&amp;btnI=I%27m%20Feeling%20Lucky"><span style="color: #003399;">System</span></a>.<span style="color: #006633;">out</span>.<span style="color: #006633;">println</span><span style="color: #009900;">&#40;</span>fraseParaCifrar<span style="color: #009900;">&#91;</span><span style="color: #cc66cc;">0</span><span style="color: #009900;">&#93;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
				<span style="color: #000000; font-weight: bold;">if</span> <span style="color: #009900;">&#40;</span>cadenaAbecedario <span style="color: #339933;">==</span> cadenaFrase<span style="color: #009900;">&#41;</span><span style="color: #009900;">&#123;</span>
					<span style="color: #666666; font-style: italic;">//System.out.println(fila+&quot;&quot;+columna);</span>
					<a href="http://www.google.com/search?hl=en&amp;q=allinurl%3Astring+java.sun.com&amp;btnI=I%27m%20Feeling%20Lucky"><span style="color: #003399;">String</span></a> filaString<span style="color: #339933;">=</span> <a href="http://www.google.com/search?hl=en&amp;q=allinurl%3Astring+java.sun.com&amp;btnI=I%27m%20Feeling%20Lucky"><span style="color: #003399;">String</span></a>.<span style="color: #006633;">valueOf</span><span style="color: #009900;">&#40;</span>fila<span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
					<a href="http://www.google.com/search?hl=en&amp;q=allinurl%3Astring+java.sun.com&amp;btnI=I%27m%20Feeling%20Lucky"><span style="color: #003399;">String</span></a> columnaString<span style="color: #339933;">=</span> <a href="http://www.google.com/search?hl=en&amp;q=allinurl%3Astring+java.sun.com&amp;btnI=I%27m%20Feeling%20Lucky"><span style="color: #003399;">String</span></a>.<span style="color: #006633;">valueOf</span><span style="color: #009900;">&#40;</span>columna<span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
					<a href="http://www.google.com/search?hl=en&amp;q=allinurl%3Astring+java.sun.com&amp;btnI=I%27m%20Feeling%20Lucky"><span style="color: #003399;">String</span></a> posicion <span style="color: #339933;">=</span> <span style="color: #0000ff;">&quot;&quot;</span><span style="color: #339933;">;</span>
					posicion <span style="color: #339933;">=</span> filaString <span style="color: #339933;">+</span> columnaString<span style="color: #339933;">;</span>
					resultado<span style="color: #009900;">&#91;</span>o<span style="color: #009900;">&#93;</span><span style="color: #339933;">=</span> posicion<span style="color: #339933;">;</span>
&nbsp;
				<span style="color: #009900;">&#125;</span>
				<span style="color: #009900;">&#125;</span>
			<span style="color: #009900;">&#125;</span><span style="color: #009900;">&#125;</span>
			<span style="color: #000000; font-weight: bold;">for</span><span style="color: #009900;">&#40;</span><span style="color: #000066; font-weight: bold;">int</span> y <span style="color: #339933;">=</span> <span style="color: #cc66cc;">0</span><span style="color: #339933;">;</span> y <span style="color: #339933;">&amp;</span>#<span style="color: #cc66cc;">60</span><span style="color: #339933;">;</span> resultado.<span style="color: #006633;">length</span><span style="color: #339933;">;</span>y<span style="color: #339933;">++</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#123;</span>
				<a href="http://www.google.com/search?hl=en&amp;q=allinurl%3Asystem+java.sun.com&amp;btnI=I%27m%20Feeling%20Lucky"><span style="color: #003399;">System</span></a>.<span style="color: #006633;">out</span>.<span style="color: #006633;">print</span><span style="color: #009900;">&#40;</span>resultado<span style="color: #009900;">&#91;</span>y<span style="color: #009900;">&#93;</span><span style="color: #339933;">+</span><span style="color: #0000ff;">&quot;-&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
				<span style="color: #666666; font-style: italic;">//resultado[y] = resultado[y] *19*58*86*74 ;</span>
				<span style="color: #666666; font-style: italic;">//System.out.print(resultado[y]+&quot;,&quot;);</span>
			<span style="color: #009900;">&#125;</span>
			<span style="color: #009900;">&#125;</span>
&nbsp;
	<span style="color: #000000; font-weight: bold;">private</span> <span style="color: #000000; font-weight: bold;">static</span> <span style="color: #000066; font-weight: bold;">void</span> MostrarFraseParaCifrar<span style="color: #009900;">&#40;</span><a href="http://www.google.com/search?hl=en&amp;q=allinurl%3Astring+java.sun.com&amp;btnI=I%27m%20Feeling%20Lucky"><span style="color: #003399;">String</span></a><span style="color: #009900;">&#91;</span><span style="color: #009900;">&#93;</span> fraseParaCifrar<span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
    <span style="color: #000000; font-weight: bold;">for</span> <span style="color: #009900;">&#40;</span><span style="color: #000066; font-weight: bold;">int</span> i <span style="color: #339933;">=</span> <span style="color: #cc66cc;">0</span><span style="color: #339933;">;</span> i <span style="color: #339933;">&amp;</span>#<span style="color: #cc66cc;">60</span><span style="color: #339933;">;</span> Frase.<span style="color: #006633;">length</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>i<span style="color: #339933;">++</span> <span style="color: #009900;">&#41;</span><span style="color: #009900;">&#123;</span>
    	<span style="color: #666666; font-style: italic;">//System.out.print(fraseParaCifrar[i]);</span>
<span style="color: #009900;">&#125;</span>
&nbsp;
	<span style="color: #009900;">&#125;</span>
&nbsp;
	<span style="color: #000000; font-weight: bold;">private</span> <span style="color: #000000; font-weight: bold;">static</span> <span style="color: #000066; font-weight: bold;">void</span> RellenaMatriz<span style="color: #009900;">&#40;</span><a href="http://www.google.com/search?hl=en&amp;q=allinurl%3Astring+java.sun.com&amp;btnI=I%27m%20Feeling%20Lucky"><span style="color: #003399;">String</span></a><span style="color: #009900;">&#91;</span><span style="color: #009900;">&#93;</span> fraseParaCifrar, <a href="http://www.google.com/search?hl=en&amp;q=allinurl%3Astring+java.sun.com&amp;btnI=I%27m%20Feeling%20Lucky"><span style="color: #003399;">String</span></a> frase<span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
<span style="color: #000000; font-weight: bold;">for</span> <span style="color: #009900;">&#40;</span><span style="color: #000066; font-weight: bold;">int</span> i <span style="color: #339933;">=</span> <span style="color: #cc66cc;">0</span><span style="color: #339933;">;</span> i <span style="color: #339933;">&amp;</span>#<span style="color: #cc66cc;">60</span><span style="color: #339933;">;</span> frase.<span style="color: #006633;">length</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>i<span style="color: #339933;">++</span> <span style="color: #009900;">&#41;</span><span style="color: #009900;">&#123;</span>
&nbsp;
			<span style="color: #000066; font-weight: bold;">char</span> letraChar <span style="color: #339933;">=</span> frase.<span style="color: #006633;">charAt</span><span style="color: #009900;">&#40;</span>i<span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
			<a href="http://www.google.com/search?hl=en&amp;q=allinurl%3Astring+java.sun.com&amp;btnI=I%27m%20Feeling%20Lucky"><span style="color: #003399;">String</span></a> letraString <span style="color: #339933;">=</span> <a href="http://www.google.com/search?hl=en&amp;q=allinurl%3Acharacter+java.sun.com&amp;btnI=I%27m%20Feeling%20Lucky"><span style="color: #003399;">Character</span></a>.<span style="color: #006633;">toString</span><span style="color: #009900;">&#40;</span>letraChar<span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
			fraseParaCifrar<span style="color: #009900;">&#91;</span>i<span style="color: #009900;">&#93;</span> <span style="color: #339933;">=</span> letraString<span style="color: #339933;">;</span>
<span style="color: #009900;">&#125;</span>
	<span style="color: #009900;">&#125;</span>
&nbsp;
	<span style="color: #000000; font-weight: bold;">private</span> <span style="color: #000000; font-weight: bold;">static</span> <span style="color: #000066; font-weight: bold;">void</span> solicitaFrase<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
		Scanner sc <span style="color: #339933;">=</span> <span style="color: #000000; font-weight: bold;">new</span> Scanner<span style="color: #009900;">&#40;</span><a href="http://www.google.com/search?hl=en&amp;q=allinurl%3Asystem+java.sun.com&amp;btnI=I%27m%20Feeling%20Lucky"><span style="color: #003399;">System</span></a>.<span style="color: #006633;">in</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
        <a href="http://www.google.com/search?hl=en&amp;q=allinurl%3Asystem+java.sun.com&amp;btnI=I%27m%20Feeling%20Lucky"><span style="color: #003399;">System</span></a>.<span style="color: #006633;">out</span>.<span style="color: #006633;">println</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;Introduce frase para cifrar solo letras: &quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
        Frase <span style="color: #339933;">=</span> sc.<span style="color: #006633;">nextLine</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
	<span style="color: #009900;">&#125;</span>
&nbsp;
<span style="color: #009900;">&#125;</span>
&nbsp;</pre></description>
		</item>
		<item>
			<title>enmanuel on "La hora del sistema queda estatica, no avanza los minutos ni segundos"</title>
			<link>http://www.dudasprogramacion.com/topic/la-hora-del-sistema-queda-estatica-no-avanza-los-minutos-ni-segundos#post-1013</link>
			<pubDate>Sat, 14 Jan 2012 20:52:03 +0000</pubDate>
			<dc:creator>enmanuel</dc:creator>
			<guid isPermaLink="false">1013@http://www.dudasprogramacion.com/</guid>
			<description><pre class="java" style="font-family:monospace;"><span style="color: #000066; font-weight: bold;">int</span> hora, minutos, segundos<span style="color: #339933;">;</span>
&nbsp;
hora <span style="color: #339933;">=</span>calendario.<span style="color: #006633;">get</span><span style="color: #009900;">&#40;</span><a href="http://www.google.com/search?hl=en&amp;q=allinurl%3Acalendar+java.sun.com&amp;btnI=I%27m%20Feeling%20Lucky"><span style="color: #003399;">Calendar</span></a>.<span style="color: #006633;">HOUR</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
minutos <span style="color: #339933;">=</span> calendario.<span style="color: #006633;">get</span><span style="color: #009900;">&#40;</span><a href="http://www.google.com/search?hl=en&amp;q=allinurl%3Acalendar+java.sun.com&amp;btnI=I%27m%20Feeling%20Lucky"><span style="color: #003399;">Calendar</span></a>.<span style="color: #006633;">MINUTE</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
segundos <span style="color: #339933;">=</span> calendario.<span style="color: #006633;">get</span><span style="color: #009900;">&#40;</span><a href="http://www.google.com/search?hl=en&amp;q=allinurl%3Acalendar+java.sun.com&amp;btnI=I%27m%20Feeling%20Lucky"><span style="color: #003399;">Calendar</span></a>.<span style="color: #006633;">SECOND</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
lblHora.<span style="color: #006633;">setText</span><span style="color: #009900;">&#40;</span>hora <span style="color: #339933;">+</span> <span style="color: #0000ff;">&quot;:&quot;</span> <span style="color: #339933;">+</span> minutos <span style="color: #339933;">+</span> <span style="color: #0000ff;">&quot;:&quot;</span> <span style="color: #339933;">+</span> segundos<span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></pre>
<p>ESE ES MI CODIGO PARA OBTENER LA HORA, PERO SE QUEDA ESTATICA... COMO HAGO PARA QUE LOS SEGUNDOS MINUTOS Y HORA SIGAN AVANZANDO??????
</p></description>
		</item>
		<item>
			<title>Ari_lineadcodigo on "Crear Formularios dinámicos en javascript"</title>
			<link>http://www.dudasprogramacion.com/topic/crear-formularios-dinamicos-en-javascript#post-1012</link>
			<pubDate>Sun, 08 Jan 2012 23:33:34 +0000</pubDate>
			<dc:creator>Ari_lineadcodigo</dc:creator>
			<guid isPermaLink="false">1012@http://www.dudasprogramacion.com/</guid>
			<description><p>Bueno mi pregunta era como crear formularios dinámicos en javascript con las funciones que me mostrataron en linea de código.<br />
<a href="http://lineadecodigo.com/javascript/crear-elementos-html-con-javascript/" rel="nofollow">http://lineadecodigo.com/javascript/crear-elementos-html-con-javascript/</a></p>
<p>     Despues de investegar encontre cuales eran metodos que requeria dentro de mi función en javascript para lograr resolver mi problema pero ahora mi problema es el siguiente como obtengo el valor ingresado en la caja de texto que se genero dinámica mente por el usuario para despues guardarlo en una variable en php.</p>
<p>La función que cree en javascript es la siguiente:</p>
<pre class="javascript" style="font-family:monospace;"><span style="color: #339933;">&amp;</span>#<span style="color: #CC0000;">60</span><span style="color: #339933;">;</span>SCRIPT type<span style="color: #339933;">=</span><span style="color: #3366CC;">&quot;text/javascript&quot;</span><span style="color: #339933;">&amp;</span>#<span style="color: #CC0000;">62</span><span style="color: #339933;">;</span>
<span style="color: #003366; font-weight: bold;">var</span> contador<span style="color: #339933;">=</span><span style="color: #CC0000;">0</span><span style="color: #339933;">;</span>
<span style="color: #003366; font-weight: bold;">function</span> poner<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#123;</span>
<span style="color: #003366; font-weight: bold;">var</span> lista <span style="color: #339933;">=</span> document.<span style="color: #660066;">getElementById</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">&quot;tipo&quot;</span><span style="color: #009900;">&#41;</span>
<span style="color: #003366; font-weight: bold;">var</span> valor <span style="color: #339933;">=</span> lista.<span style="color: #660066;">options</span><span style="color: #009900;">&#91;</span>lista.<span style="color: #660066;">selectedIndex</span><span style="color: #009900;">&#93;</span>.<span style="color: #660066;">text</span>
<span style="color: #003366; font-weight: bold;">var</span> lugar <span style="color: #339933;">=</span> document.<span style="color: #660066;">getElementById</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">&quot;colocar_tipo&quot;</span><span style="color: #009900;">&#41;</span>
valor.<span style="color: #660066;">toString</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #000066; font-weight: bold;">if</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#40;</span>valor<span style="color: #339933;">==</span><span style="color: #3366CC;">'Otro'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">&amp;</span>#<span style="color: #CC0000;">38</span><span style="color: #339933;">;</span> contador<span style="color: #339933;">==</span><span style="color: #CC0000;">0</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#123;</span>
	contador<span style="color: #339933;">++;</span>
<span style="color: #003366; font-weight: bold;">var</span> elemento <span style="color: #339933;">=</span> document.<span style="color: #660066;">createElement</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">'input'</span><span style="color: #009900;">&#41;</span>
elemento.<span style="color: #660066;">type</span><span style="color: #339933;">=</span><span style="color: #3366CC;">&quot;text&quot;</span>
elemento.<span style="color: #000066;">name</span><span style="color: #339933;">=</span><span style="color: #3366CC;">&quot;ntipo&quot;</span>
elemento.<span style="color: #660066;">id</span><span style="color: #339933;">=</span><span style="color: #3366CC;">&quot;ntipo&quot;</span>
ntipo
lugar.<span style="color: #660066;">appendChild</span><span style="color: #009900;">&#40;</span>elemento<span style="color: #009900;">&#41;</span>
<span style="color: #009900;">&#125;</span><span style="color: #000066; font-weight: bold;">else</span><span style="color: #009900;">&#123;</span> document.<span style="color: #660066;">getElementById</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">'colocar_tipo'</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">innerHTML</span><span style="color: #339933;">=</span><span style="color: #3366CC;">''</span>
contador<span style="color: #339933;">=</span><span style="color: #CC0000;">0</span><span style="color: #339933;">;</span>
<span style="color: #009900;">&#125;</span>
<span style="color: #009900;">&#125;</span>
<span style="color: #339933;">&amp;</span>#<span style="color: #CC0000;">60</span><span style="color: #339933;">;/</span>SCRIPT<span style="color: #339933;">&amp;</span>#<span style="color: #CC0000;">62</span><span style="color: #339933;">;</span></pre>
<p>Bueno en mi formulario la implemento en un select con el evento onchange</p>
<p>el código seria el siguiente:</p>
<pre class="php" style="font-family:monospace;"><span style="color: #339933;">&amp;</span><span style="color: #666666; font-style: italic;">#60;form id=&quot;form1&quot; name=&quot;form1&quot; method=&quot;POST&quot; action=&quot;&amp;#60;?php echo $editFormAction; ?&amp;#62;&amp;#60;?php echo $editFormAction; ?&amp;#62;&quot;&amp;#62;
</span>        <span style="color: #339933;">&amp;</span><span style="color: #666666; font-style: italic;">#60;p&amp;#62;
</span>          <span style="color: #339933;">&amp;</span><span style="color: #666666; font-style: italic;">#60;label for=&quot;select&quot;&amp;#62;Tipo:&amp;#60;/label&amp;#62;
</span>          <span style="color: #339933;">&amp;</span><span style="color: #666666; font-style: italic;">#60;select name=&quot;tipo&quot; id=&quot;tipo&quot; onchange=&quot;poner()&quot;&amp;#62;
</span>            <span style="color: #339933;">&amp;</span><span style="color: #666666; font-style: italic;">#60;option value=&quot;Zandalia&quot;&amp;#62;Zandalia&amp;#60;/option&amp;#62;
</span>            <span style="color: #339933;">&amp;</span><span style="color: #666666; font-style: italic;">#60;option value=&quot;otro&quot;&amp;#62;Otro&amp;#60;/option&amp;#62;
</span>            <span style="color: #339933;">&amp;</span><span style="color: #666666; font-style: italic;">#60;option value=&quot;Zapatos&quot; selected=&quot;selected&quot;&amp;#62;Zapatos&amp;#60;/option&amp;#62;
</span>            <span style="color: #339933;">&amp;</span><span style="color: #666666; font-style: italic;">#60;option value=&quot;Tenis&quot;&amp;#62;Tenis&amp;#60;/option&amp;#62;
</span>          <span style="color: #339933;">&amp;</span><span style="color: #666666; font-style: italic;">#60;/select&amp;#62;
</span>        <span style="color: #339933;">&amp;</span><span style="color: #666666; font-style: italic;">#60;div id=&quot;colocar_tipo&quot;&amp;#62;&amp;#60;/div&amp;#62;</span></pre>
<p>Ahora quiero saber como sacar el valor de caja de texto que estoy creado en la función poner() la cual tiene el nombre de ntipo y guardarlo en una variable en php</p>
<p>Gracias de antemano por leer y darse un tiempo para intentar ayudarme
</p></description>
		</item>
		<item>
			<title>jark on "Problemas java"</title>
			<link>http://www.dudasprogramacion.com/topic/problemas-java#post-1010</link>
			<pubDate>Fri, 23 Dec 2011 10:45:58 +0000</pubDate>
			<dc:creator>jark</dc:creator>
			<guid isPermaLink="false">1010@http://www.dudasprogramacion.com/</guid>
			<description><p>Hola, necesito saber cómo se resuelve esta práctica cuanto antes, disculpad si parece mucho, pero es que no me queda otra opción, no consigo sacar el código.</p>
<p>3)-- Introducir un objeto Tablero en RellenarPorAlumno: Se deberá modificar la clase<br />
RellenarPorAlumno para introducir un tablero de juego. Para ello se deberá:<br />
• Añadir un atributo elTablero: Objeto de tipo Tablero, añadido como atributo a la<br />
clase RellenarPorAlumno. Se deberá inicializar el atributo elTablero en el<br />
método main, para ello dentro del método main de RellenarPorAlumno se crea<br />
un objeto denominado tmp. Deberá inicializarse la variable elTablero del objeto<br />
tmp, creando un nuevo tablero de juego que contenga las siguientes casillas:</p>
<p>(Aquí iría el array de caracteres que ya tengo)</p>
<p>Nota: Deberá inicializarse antes de la llamada al método<br />
establecerCoordenadas que aparece en el código, si no se producirá una<br />
excepción.</p>
<p>-- Modificar el método pintarTablero”: Modificar este método para que en lugar de<br />
pintar casillas aleatorias, pinte el tablero contenido en la variable elTablero.</p>
<p>4) Modificar el método teclaPulsada en RellenarPorAlumno: Se deberá modificar el<br />
método teclaPulsada de la clase RellenarPorAlumno para que si se pulsa cualquiera de<br />
las teclas A,W,D,X se realice lo siguiente:<br />
• Mover el jugador: se realizará el movimiento oportuno sobre elTablero.<br />
• Incrementar el contador de pasos: Sólo si se ha podido realizar el movimiento,<br />
se incrementará el contador de pasos.<br />
• Comprobar si se ha ganado la partida: Si se ha ganado la partida, se finalizará<br />
el programa.</p>
<p>Esos serían los dos apartados a resolver (incluyendo las dos secciones que tiene el punto 3)</p>
<p>El código dónde debo hacer esto es el siguiente:</p>
<pre class="java" style="font-family:monospace;">@SuppressWarnings<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;serial&quot;</span><span style="color: #009900;">&#41;</span>
<span style="color: #000000; font-weight: bold;">public</span> <span style="color: #000000; font-weight: bold;">class</span> RellenarPorAlumno <span style="color: #000000; font-weight: bold;">extends</span> NoTocarEstaClase <span style="color: #009900;">&#123;</span>
&nbsp;
    <span style="color: #008000; font-style: italic; font-weight: bold;">/**
     * Método main
     */</span>
	<span style="color: #000000; font-weight: bold;">public</span> <span style="color: #000000; font-weight: bold;">static</span> <span style="color: #000066; font-weight: bold;">void</span> main<span style="color: #009900;">&#40;</span><a href="http://www.google.com/search?hl=en&amp;q=allinurl%3Astring+java.sun.com&amp;btnI=I%27m%20Feeling%20Lucky"><span style="color: #003399;">String</span></a> <span style="color: #009900;">&#91;</span><span style="color: #009900;">&#93;</span> args<span style="color: #009900;">&#41;</span>
    <span style="color: #009900;">&#123;</span>
    	RellenarPorAlumno tmp <span style="color: #339933;">=</span> <span style="color: #000000; font-weight: bold;">new</span> RellenarPorAlumno<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
    	tmp.<span style="color: #006633;">elTablero</span><span style="color: #009900;">&#40;</span>x, y<span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
    	tmp.<span style="color: #006633;">establecerCoodenadas</span><span style="color: #009900;">&#40;</span>ANCHO, ALTO<span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
    <span style="color: #009900;">&#125;</span>
&nbsp;
	<span style="color: #008000; font-style: italic; font-weight: bold;">/** Enumeración para tipos de casilla */</span>
	<span style="color: #000000; font-weight: bold;">enum</span> TipoCasilla <span style="color: #009900;">&#123;</span>VACIA, CAJA,
		JUGADOR, MURO, DESTINO,
		CAJA_SOBRE_DESTINO, JUGADOR_SOBRE_DESTINO	<span style="color: #009900;">&#125;</span><span style="color: #339933;">;</span>
&nbsp;
    <span style="color: #666666; font-style: italic;">// Definición de constantes para dimensiones del tablero</span>
    <span style="color: #000000; font-weight: bold;">public</span> <span style="color: #000000; font-weight: bold;">static</span> <span style="color: #000000; font-weight: bold;">final</span> <span style="color: #000066; font-weight: bold;">int</span> ANCHO <span style="color: #339933;">=</span> <span style="color: #cc66cc;">19</span><span style="color: #339933;">;</span>
    <span style="color: #000000; font-weight: bold;">public</span> <span style="color: #000000; font-weight: bold;">static</span> <span style="color: #000000; font-weight: bold;">final</span> <span style="color: #000066; font-weight: bold;">int</span> ALTO <span style="color: #339933;">=</span> <span style="color: #cc66cc;">11</span><span style="color: #339933;">;</span>
&nbsp;
    <span style="color: #008000; font-style: italic; font-weight: bold;">/**
     * Método que es invocado cada vez que el usuario pulsa cualquier tecla
     * La implementación que se proporciona sólo responde a la tecla 'q', que
     * hace que finalice la ejecución del programa
     * Si no se pulsa la tecla q, genera casillas aleatorias en el tablero y lo repinta
     * EL CÓDIGO QUE SE PROPORCIONA ES SÓLO UN EJEMPLO, YA QUE ESTE MÉTODO DEBERÁ
     * SER ESCRITO POR COMPLETO POR EL ALUMNO PARA REALIZAR LAS CUESTIONES
     * QUE SE PLANTEAN EN LA PRÁCTICA 3
     * @param tecla La tecla pulsada
     */</span>
    <span style="color: #000000; font-weight: bold;">public</span> <span style="color: #000066; font-weight: bold;">void</span> teclaPulsada<span style="color: #009900;">&#40;</span><span style="color: #000066; font-weight: bold;">char</span> tecla<span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
    	<span style="color: #666666; font-style: italic;">// En función de la tecla pulsada hace algo</span>
        <span style="color: #000000; font-weight: bold;">switch</span> <span style="color: #009900;">&#40;</span>tecla<span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
            <span style="color: #000000; font-weight: bold;">case</span> <span style="color: #0000ff;">'q'</span><span style="color: #339933;">:</span>
            <span style="color: #000000; font-weight: bold;">case</span> <span style="color: #0000ff;">'Q'</span><span style="color: #339933;">:</span>
                <span style="color: #666666; font-style: italic;">// Si se pulsa la tecla q sale del programa</span>
                <a href="http://www.google.com/search?hl=en&amp;q=allinurl%3Asystem+java.sun.com&amp;btnI=I%27m%20Feeling%20Lucky"><span style="color: #003399;">System</span></a>.<span style="color: #006633;">exit</span><span style="color: #009900;">&#40;</span><span style="color: #cc66cc;">0</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
                <span style="color: #000000; font-weight: bold;">break</span><span style="color: #339933;">;</span>
            <span style="color: #000000; font-weight: bold;">default</span><span style="color: #339933;">:</span>
                <span style="color: #666666; font-style: italic;">// Por defecto no hace nada</span>
        <span style="color: #009900;">&#125;</span>
    <span style="color: #009900;">&#125;</span>
&nbsp;
    <span style="color: #008000; font-style: italic; font-weight: bold;">/**
     * Método para pintar el tablero de juego.
     * Deberá hacer uso del método pintarCuadradoTablero para pintarlo
     * EL CÓDIGO QUE SE PROPORCIONA ES SÓLO UN EJEMPLO, YA QUE ESTE MÉTODO DEBERÁ
     * SER ESCRITO POR COMPLETO POR EL ALUMNO PARA REALIZAR LAS CUESTIONES
     * QUE SE PLANTEAN EN LA PRÁCTICA 3
     */</span>
    <span style="color: #000000; font-weight: bold;">public</span> <span style="color: #000066; font-weight: bold;">void</span> pintarTablero<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
        <span style="color: #666666; font-style: italic;">// Ejemplo que rellena cada cuadrado del tablero con un tipo de casilla aleatoria</span>
        <span style="color: #000000; font-weight: bold;">for</span><span style="color: #009900;">&#40;</span><span style="color: #000066; font-weight: bold;">int</span> i<span style="color: #339933;">=</span><span style="color: #cc66cc;">0</span><span style="color: #339933;">;</span> i<span style="color: #339933;">&amp;</span>#<span style="color: #cc66cc;">60</span><span style="color: #339933;">;</span> ALTO<span style="color: #339933;">;</span> i<span style="color: #339933;">++</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
            <span style="color: #000000; font-weight: bold;">for</span><span style="color: #009900;">&#40;</span><span style="color: #000066; font-weight: bold;">int</span> j<span style="color: #339933;">=</span><span style="color: #cc66cc;">0</span><span style="color: #339933;">;</span> j<span style="color: #339933;">&amp;</span>#<span style="color: #cc66cc;">60</span><span style="color: #339933;">;</span>ANCHO<span style="color: #339933;">;</span> j<span style="color: #339933;">++</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
                TipoCasilla tipoCasilla <span style="color: #339933;">=</span> obtenerTipoCasillaAleatoria<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
                pintarCuadradoTablero<span style="color: #009900;">&#40;</span>j, i, tipoCasilla<span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
            <span style="color: #009900;">&#125;</span>
        <span style="color: #009900;">&#125;</span>
&nbsp;
        <span style="color: #666666; font-style: italic;">// Ejemplo que incrementa los pasos un valor de 10</span>
        <span style="color: #000066; font-weight: bold;">int</span> pasos <span style="color: #339933;">=</span> obtenerPasos<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
        pasos <span style="color: #339933;">+=</span> <span style="color: #cc66cc;">10</span><span style="color: #339933;">;</span>
        establecerPasos<span style="color: #009900;">&#40;</span>pasos<span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
    <span style="color: #009900;">&#125;</span>
&nbsp;
    <span style="color: #008000; font-style: italic; font-weight: bold;">/**
     * Método auxiliar de ejemplo para obtener un tipo de casilla aleatoria
     * ESTE MÉTODO PUEDE SER ELIMINADO POR EL ALUMNO, ES SÓLO UN EJEMPLO
     */</span>
    <span style="color: #000000; font-weight: bold;">private</span> TipoCasilla obtenerTipoCasillaAleatoria<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
    	<span style="color: #666666; font-style: italic;">// Genera un número aleatorio entre 0 y 6</span>
        <span style="color: #000066; font-weight: bold;">int</span> tipoCasilla <span style="color: #339933;">=</span> <span style="color: #009900;">&#40;</span><span style="color: #000066; font-weight: bold;">int</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#40;</span><a href="http://www.google.com/search?hl=en&amp;q=allinurl%3Amath+java.sun.com&amp;btnI=I%27m%20Feeling%20Lucky"><span style="color: #003399;">Math</span></a>.<span style="color: #006633;">random</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span> <span style="color: #339933;">*</span> <span style="color: #cc66cc;">7</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
        TipoCasilla t<span style="color: #339933;">;</span>
        <span style="color: #000000; font-weight: bold;">switch</span><span style="color: #009900;">&#40;</span>tipoCasilla<span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
            <span style="color: #000000; font-weight: bold;">case</span> <span style="color: #cc66cc;">0</span><span style="color: #339933;">:</span>
                t <span style="color: #339933;">=</span> TipoCasilla.<span style="color: #006633;">VACIA</span><span style="color: #339933;">;</span>
                <span style="color: #000000; font-weight: bold;">break</span><span style="color: #339933;">;</span>
            <span style="color: #000000; font-weight: bold;">case</span> <span style="color: #cc66cc;">1</span><span style="color: #339933;">:</span>
            	t <span style="color: #339933;">=</span> TipoCasilla.<span style="color: #006633;">CAJA</span><span style="color: #339933;">;</span>
                <span style="color: #000000; font-weight: bold;">break</span><span style="color: #339933;">;</span>
            <span style="color: #000000; font-weight: bold;">case</span> <span style="color: #cc66cc;">2</span><span style="color: #339933;">:</span>
            	t <span style="color: #339933;">=</span> TipoCasilla.<span style="color: #006633;">JUGADOR</span><span style="color: #339933;">;</span>
                <span style="color: #000000; font-weight: bold;">break</span><span style="color: #339933;">;</span>
            <span style="color: #000000; font-weight: bold;">case</span> <span style="color: #cc66cc;">3</span><span style="color: #339933;">:</span>
            	t <span style="color: #339933;">=</span> TipoCasilla.<span style="color: #006633;">MURO</span><span style="color: #339933;">;</span>
                <span style="color: #000000; font-weight: bold;">break</span><span style="color: #339933;">;</span>
            <span style="color: #000000; font-weight: bold;">case</span> <span style="color: #cc66cc;">4</span><span style="color: #339933;">:</span>
            	t <span style="color: #339933;">=</span> TipoCasilla.<span style="color: #006633;">DESTINO</span><span style="color: #339933;">;</span>
                <span style="color: #000000; font-weight: bold;">break</span><span style="color: #339933;">;</span>
            <span style="color: #000000; font-weight: bold;">case</span> <span style="color: #cc66cc;">5</span><span style="color: #339933;">:</span>
            	t <span style="color: #339933;">=</span> TipoCasilla.<span style="color: #006633;">CAJA_SOBRE_DESTINO</span><span style="color: #339933;">;</span>
                <span style="color: #000000; font-weight: bold;">break</span><span style="color: #339933;">;</span>
            <span style="color: #000000; font-weight: bold;">default</span><span style="color: #339933;">:</span>
            	t <span style="color: #339933;">=</span> TipoCasilla.<span style="color: #006633;">JUGADOR_SOBRE_DESTINO</span><span style="color: #339933;">;</span>
                <span style="color: #000000; font-weight: bold;">break</span><span style="color: #339933;">;</span>
        <span style="color: #009900;">&#125;</span>
        <span style="color: #000000; font-weight: bold;">return</span> t<span style="color: #339933;">;</span>
    <span style="color: #009900;">&#125;</span>
<span style="color: #009900;">&#125;</span></pre>
<p>________________________________________________________________________________________</p>
<p>Gracias.</p>
<p>Saludos.
</p></description>
		</item>
		<item>
			<title>lopera607 on "(JAVA)Un metodo no me coje el array que viene de un Scanner"</title>
			<link>http://www.dudasprogramacion.com/topic/javaun-metodo-no-me-coje-el-array-que-viene-de-un-scanner#post-1003</link>
			<pubDate>Sun, 18 Dec 2011 16:39:38 +0000</pubDate>
			<dc:creator>lopera607</dc:creator>
			<guid isPermaLink="false">1003@http://www.dudasprogramacion.com/</guid>
			<description><p>Buenas mi duda es que mi metodo "codificar", no me coje el array "FraseParaCifrar", que viene de un "Scanner", en cambio si se lo paso manualmente si me dice las posiciones la que se encuentra respecto al array "abecedario", el array comentado llamado "Cifrar", se lo paso al metodo "codificar", en vez de "FraseParaCifrar" y si me da las posiciones<br />
{h,o} me da el 7,14.<br />
Gracias a todos. </p>
<pre class="java" style="font-family:monospace;">&nbsp;
<span style="color: #000000; font-weight: bold;">import</span> <span style="color: #006699;">java.util.*</span><span style="color: #339933;">;</span>
&nbsp;
<span style="color: #000000; font-weight: bold;">public</span> <span style="color: #000000; font-weight: bold;">class</span> codifica <span style="color: #009900;">&#123;</span>
&nbsp;
	<span style="color: #008000; font-style: italic; font-weight: bold;">/**
	 * @param args
	 */</span>
	<span style="color: #000000; font-weight: bold;">public</span> <span style="color: #000000; font-weight: bold;">static</span> <span style="color: #000066; font-weight: bold;">void</span> main<span style="color: #009900;">&#40;</span><a href="http://www.google.com/search?hl=en&amp;q=allinurl%3Astring+java.sun.com&amp;btnI=I%27m%20Feeling%20Lucky"><span style="color: #003399;">String</span></a><span style="color: #009900;">&#91;</span><span style="color: #009900;">&#93;</span> args<span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
		<a href="http://www.google.com/search?hl=en&amp;q=allinurl%3Astring+java.sun.com&amp;btnI=I%27m%20Feeling%20Lucky"><span style="color: #003399;">String</span></a> Frase <span style="color: #339933;">=</span> <span style="color: #0000ff;">&quot;&quot;</span><span style="color: #339933;">;</span>
		<a href="http://www.google.com/search?hl=en&amp;q=allinurl%3Astring+java.sun.com&amp;btnI=I%27m%20Feeling%20Lucky"><span style="color: #003399;">String</span></a> Frase1 <span style="color: #339933;">=</span> LeerMatriz<span style="color: #009900;">&#40;</span>Frase<span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
		<a href="http://www.google.com/search?hl=en&amp;q=allinurl%3Astring+java.sun.com&amp;btnI=I%27m%20Feeling%20Lucky"><span style="color: #003399;">String</span></a> FraseParaCifrar<span style="color: #009900;">&#91;</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">;</span>
		FraseParaCifrar <span style="color: #339933;">=</span> <span style="color: #000000; font-weight: bold;">new</span> <a href="http://www.google.com/search?hl=en&amp;q=allinurl%3Astring+java.sun.com&amp;btnI=I%27m%20Feeling%20Lucky"><span style="color: #003399;">String</span></a> <span style="color: #009900;">&#91;</span>Frase1.<span style="color: #006633;">length</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">;</span>
&nbsp;
		RellenaMatriz<span style="color: #009900;">&#40;</span>FraseParaCifrar, Frase1<span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
		<span style="color: #666666; font-style: italic;">//String Cifrar[] = {&quot;h&quot;,&quot;o&quot;};</span>
		<a href="http://www.google.com/search?hl=en&amp;q=allinurl%3Astring+java.sun.com&amp;btnI=I%27m%20Feeling%20Lucky"><span style="color: #003399;">String</span></a> abecedario<span style="color: #009900;">&#91;</span><span style="color: #009900;">&#93;</span> <span style="color: #339933;">=</span> <span style="color: #009900;">&#123;</span><span style="color: #0000ff;">&quot;a&quot;</span>,<span style="color: #0000ff;">&quot;b&quot;</span>,<span style="color: #0000ff;">&quot;c&quot;</span>,<span style="color: #0000ff;">&quot;d&quot;</span>,<span style="color: #0000ff;">&quot;e&quot;</span>,<span style="color: #0000ff;">&quot;f&quot;</span>,<span style="color: #0000ff;">&quot;g&quot;</span>,<span style="color: #0000ff;">&quot;h&quot;</span>,<span style="color: #0000ff;">&quot;i&quot;</span>,<span style="color: #0000ff;">&quot;j&quot;</span>,<span style="color: #0000ff;">&quot;k&quot;</span>,<span style="color: #0000ff;">&quot;l&quot;</span>,<span style="color: #0000ff;">&quot;m&quot;</span>,<span style="color: #0000ff;">&quot;n&quot;</span>,<span style="color: #0000ff;">&quot;o&quot;</span>,<span style="color: #0000ff;">&quot;p&quot;</span>,<span style="color: #0000ff;">&quot;q&quot;</span>,<span style="color: #0000ff;">&quot;r&quot;</span>,<span style="color: #0000ff;">&quot;s&quot;</span>,<span style="color: #0000ff;">&quot;t&quot;</span>,<span style="color: #0000ff;">&quot;u&quot;</span>,<span style="color: #0000ff;">&quot;v&quot;</span>,<span style="color: #0000ff;">&quot;w&quot;</span>,<span style="color: #0000ff;">&quot;x&quot;</span>,<span style="color: #0000ff;">&quot;y&quot;</span>,<span style="color: #0000ff;">&quot;z&quot;</span><span style="color: #009900;">&#125;</span><span style="color: #339933;">;</span>
        codificar<span style="color: #009900;">&#40;</span>FraseParaCifrar, abecedario<span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
	<span style="color: #009900;">&#125;</span>
&nbsp;
	<span style="color: #000000; font-weight: bold;">private</span> <span style="color: #000000; font-weight: bold;">static</span> <span style="color: #000066; font-weight: bold;">void</span> RellenaMatriz<span style="color: #009900;">&#40;</span><a href="http://www.google.com/search?hl=en&amp;q=allinurl%3Astring+java.sun.com&amp;btnI=I%27m%20Feeling%20Lucky"><span style="color: #003399;">String</span></a><span style="color: #009900;">&#91;</span><span style="color: #009900;">&#93;</span> fraseParaCifrar, <a href="http://www.google.com/search?hl=en&amp;q=allinurl%3Astring+java.sun.com&amp;btnI=I%27m%20Feeling%20Lucky"><span style="color: #003399;">String</span></a> frase<span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
&nbsp;
		<span style="color: #000000; font-weight: bold;">for</span> <span style="color: #009900;">&#40;</span><span style="color: #000066; font-weight: bold;">int</span> i <span style="color: #339933;">=</span> <span style="color: #cc66cc;">0</span><span style="color: #339933;">;</span> i <span style="color: #339933;">&amp;</span>#<span style="color: #cc66cc;">60</span><span style="color: #339933;">;</span> frase.<span style="color: #006633;">length</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>i<span style="color: #339933;">++</span> <span style="color: #009900;">&#41;</span><span style="color: #009900;">&#123;</span>
&nbsp;
			<span style="color: #000066; font-weight: bold;">char</span> letraChar <span style="color: #339933;">=</span> frase.<span style="color: #006633;">charAt</span><span style="color: #009900;">&#40;</span>i<span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
			<a href="http://www.google.com/search?hl=en&amp;q=allinurl%3Astring+java.sun.com&amp;btnI=I%27m%20Feeling%20Lucky"><span style="color: #003399;">String</span></a> letraString <span style="color: #339933;">=</span> <a href="http://www.google.com/search?hl=en&amp;q=allinurl%3Acharacter+java.sun.com&amp;btnI=I%27m%20Feeling%20Lucky"><span style="color: #003399;">Character</span></a>.<span style="color: #006633;">toString</span><span style="color: #009900;">&#40;</span>letraChar<span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
			fraseParaCifrar<span style="color: #009900;">&#91;</span>i<span style="color: #009900;">&#93;</span> <span style="color: #339933;">=</span> letraString<span style="color: #339933;">;</span>
&nbsp;
		<span style="color: #009900;">&#125;</span>
&nbsp;
	<span style="color: #009900;">&#125;</span>
<span style="color: #000000; font-weight: bold;">private</span> <span style="color: #000000; font-weight: bold;">static</span> <a href="http://www.google.com/search?hl=en&amp;q=allinurl%3Astring+java.sun.com&amp;btnI=I%27m%20Feeling%20Lucky"><span style="color: #003399;">String</span></a> LeerMatriz<span style="color: #009900;">&#40;</span><a href="http://www.google.com/search?hl=en&amp;q=allinurl%3Astring+java.sun.com&amp;btnI=I%27m%20Feeling%20Lucky"><span style="color: #003399;">String</span></a> Frase<span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
&nbsp;
    	Scanner sc <span style="color: #339933;">=</span> <span style="color: #000000; font-weight: bold;">new</span> Scanner<span style="color: #009900;">&#40;</span><a href="http://www.google.com/search?hl=en&amp;q=allinurl%3Asystem+java.sun.com&amp;btnI=I%27m%20Feeling%20Lucky"><span style="color: #003399;">System</span></a>.<span style="color: #006633;">in</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
        <a href="http://www.google.com/search?hl=en&amp;q=allinurl%3Asystem+java.sun.com&amp;btnI=I%27m%20Feeling%20Lucky"><span style="color: #003399;">System</span></a>.<span style="color: #006633;">out</span>.<span style="color: #006633;">println</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;Introduce frase para cifrar: &quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
        Frase <span style="color: #339933;">=</span> sc.<span style="color: #006633;">nextLine</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
<span style="color: #000000; font-weight: bold;">return</span> Frase<span style="color: #339933;">;</span>
<span style="color: #009900;">&#125;</span>
&nbsp;
	<span style="color: #000000; font-weight: bold;">private</span> <span style="color: #000000; font-weight: bold;">static</span> <span style="color: #000066; font-weight: bold;">void</span> codificar<span style="color: #009900;">&#40;</span><a href="http://www.google.com/search?hl=en&amp;q=allinurl%3Astring+java.sun.com&amp;btnI=I%27m%20Feeling%20Lucky"><span style="color: #003399;">String</span></a><span style="color: #009900;">&#91;</span><span style="color: #009900;">&#93;</span> FraseParaCifrar, <a href="http://www.google.com/search?hl=en&amp;q=allinurl%3Astring+java.sun.com&amp;btnI=I%27m%20Feeling%20Lucky"><span style="color: #003399;">String</span></a><span style="color: #009900;">&#91;</span><span style="color: #009900;">&#93;</span> abecedario<span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
&nbsp;
		<span style="color: #000066; font-weight: bold;">int</span> posicion <span style="color: #339933;">=</span> <span style="color: #cc66cc;">0</span><span style="color: #339933;">;</span>
		<span style="color: #000066; font-weight: bold;">int</span> resultado<span style="color: #009900;">&#91;</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">;</span>
		resultado <span style="color: #339933;">=</span> <span style="color: #000000; font-weight: bold;">new</span> <span style="color: #000066; font-weight: bold;">int</span> <span style="color: #009900;">&#91;</span>FraseParaCifrar.<span style="color: #006633;">length</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">;</span>
		<span style="color: #000000; font-weight: bold;">for</span> <span style="color: #009900;">&#40;</span><span style="color: #000066; font-weight: bold;">int</span> i <span style="color: #339933;">=</span> <span style="color: #cc66cc;">0</span><span style="color: #339933;">;</span> i <span style="color: #339933;">&amp;</span>#<span style="color: #cc66cc;">60</span><span style="color: #339933;">;</span> abecedario.<span style="color: #006633;">length</span><span style="color: #339933;">;</span> i<span style="color: #339933;">++</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#123;</span>
&nbsp;
			<span style="color: #000000; font-weight: bold;">for</span> <span style="color: #009900;">&#40;</span><span style="color: #000066; font-weight: bold;">int</span> o <span style="color: #339933;">=</span> <span style="color: #cc66cc;">0</span><span style="color: #339933;">;</span>o <span style="color: #339933;">&amp;</span>#<span style="color: #cc66cc;">60</span><span style="color: #339933;">;</span> FraseParaCifrar.<span style="color: #006633;">length</span><span style="color: #339933;">;</span> o<span style="color: #339933;">++</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#123;</span>
&nbsp;
				<span style="color: #000000; font-weight: bold;">if</span> <span style="color: #009900;">&#40;</span>abecedario<span style="color: #009900;">&#91;</span>i<span style="color: #009900;">&#93;</span> <span style="color: #339933;">==</span> FraseParaCifrar<span style="color: #009900;">&#91;</span>o<span style="color: #009900;">&#93;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#123;</span>
					posicion <span style="color: #339933;">=</span> i<span style="color: #339933;">;</span>
					resultado<span style="color: #009900;">&#91;</span>o<span style="color: #009900;">&#93;</span><span style="color: #339933;">=</span> posicion<span style="color: #339933;">;</span>
&nbsp;
				<span style="color: #009900;">&#125;</span>
&nbsp;
			<span style="color: #009900;">&#125;</span>
&nbsp;
		<span style="color: #009900;">&#125;</span><span style="color: #000000; font-weight: bold;">for</span><span style="color: #009900;">&#40;</span><span style="color: #000066; font-weight: bold;">int</span> y <span style="color: #339933;">=</span> <span style="color: #cc66cc;">0</span><span style="color: #339933;">;</span> y <span style="color: #339933;">&amp;</span>#<span style="color: #cc66cc;">60</span><span style="color: #339933;">;</span> resultado.<span style="color: #006633;">length</span><span style="color: #339933;">;</span>y<span style="color: #339933;">++</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#123;</span>
			<a href="http://www.google.com/search?hl=en&amp;q=allinurl%3Asystem+java.sun.com&amp;btnI=I%27m%20Feeling%20Lucky"><span style="color: #003399;">System</span></a>.<span style="color: #006633;">out</span>.<span style="color: #006633;">println</span><span style="color: #009900;">&#40;</span>resultado<span style="color: #009900;">&#91;</span>y<span style="color: #009900;">&#93;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
		<span style="color: #009900;">&#125;</span>
&nbsp;
	<span style="color: #009900;">&#125;</span>
<span style="color: #009900;">&#125;</span>
&nbsp;</pre></description>
		</item>
		<item>
			<title>gowLuis on "Duda Mysql"</title>
			<link>http://www.dudasprogramacion.com/topic/duda-mysql#post-1001</link>
			<pubDate>Fri, 09 Dec 2011 20:34:50 +0000</pubDate>
			<dc:creator>gowLuis</dc:creator>
			<guid isPermaLink="false">1001@http://www.dudasprogramacion.com/</guid>
			<description><p>Bueno es la primera vez que comento una pregunta pero no he conseguido la solución a mi problema, les comentare.</p>
<p>La verdad es que no se si se pueda pero segun yo si, ya que para mi todo en la programación se puede.</p>
<p>Alguien sabe de alguna forma para que se este ejecutando un codigo (o metodo) en java cuando ocurra algún cambio en la base de datos? por así decirlo cada vez que se inserte una nueva Celda a una tabla que este mande una notificación y ejecute otro codigo para hacer X cosa?
</p></description>
		</item>
		<item>
			<title>santy.uy on "jQuery.Get error"</title>
			<link>http://www.dudasprogramacion.com/topic/jqueryget-error#post-1000</link>
			<pubDate>Wed, 30 Nov 2011 11:40:32 +0000</pubDate>
			<dc:creator>santy.uy</dc:creator>
			<guid isPermaLink="false">1000@http://www.dudasprogramacion.com/</guid>
			<description><p>Hola, como estan?</p>
<p>Estoy desarrollando una palicación en HTML5 con jQuery, usando Sync Framework para la sincronización, el cual consume un servicio que esta alojado en la en Windows Azure. </p>
<p>El problema esta cuando envio el Request al dicho servicio:</p>
<pre class="lenguaje" style="font-family:monospace;">&nbsp;
var data;
        jQuery.get(serviceUri, {},
            function (data) {
                console.log(&quot; reponse :&quot; + data);
            }
       , &quot;json&quot;);
&nbsp;</pre>
<p>El Request es el siguiente:</p>
<pre class="lenguaje" style="font-family:monospace;">&nbsp;
GET &lt;a href=&quot;http://157.56.8.203/DefaultScopeSyncService.svc/defaultscope/DownloadChanges?id=7AE7C771-0A98-4A5D-A046-430DDB0A7917&quot; rel=&quot;nofollow&quot;&gt;http://157.56.8.203/DefaultScopeSyncService.svc/defaultscope/DownloadChanges?id=7AE7C771-0A98-4A5D-A046-430DDB0A7917&lt;/a&gt; HTTP/1.1
Host: 157.56.8.203
User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:8.0) Gecko/20100101 Firefox/8.0
Accept: application/json, text/javascript, */*
Accept-Language: en-us,en;q=0.5
Accept-Encoding: gzip, deflate
Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7
Connection: keep-alive
Referer: &lt;a href=&quot;http://localhost:49427/ListSample.htm&quot; rel=&quot;nofollow&quot;&gt;http://localhost:49427/ListSample.htm&lt;/a&gt;
Origin: &lt;a href=&quot;http://localhost:49427&quot; rel=&quot;nofollow&quot;&gt;http://localhost:49427&lt;/a&gt;
&nbsp;</pre>
<p>Y la respuesta del servicio esta:</p>
<pre class="lenguaje" style="font-family:monospace;">&nbsp;
HTTP/1.1 200 OK
Content-Length: 1388
Content-Type: application/json
Server: Microsoft-IIS/7.0
SyncServiceVersion: 1.0
X-Powered-By: ASP.NET
Date: Wed, 30 Nov 2011 11:34:55 GMT
&nbsp;
{&quot;d&quot;:{&quot;__sync&quot;:{&quot;moreChangesAvailable&quot;:false,&quot;serverBlob&quot;:&quot;AAEAAAD\/\/\/\/\/AQAAAAAAAAAMAgAAAGVNaWNyb3NvZnQuU3luY2hyb25pemF0aW9uLlNlcnZpY2VzLCBWZXJzaW9uPTQuMC4wLjAsIEN1bHR1cmU9bmV1dHJhbCwgUHVibGljS2V5VG9rZW49ODk4NDVkY2Q4MDgwY2M5MQUBAAAAK01pY3Jvc29mdC5TeW5jaHJvbml6YXRpb24uU2VydmljZXMuU3luY0Jsb2IFAAAAIDxDbGllbnRLbm93bGVkZ2U+a19fQmFja2luZ0ZpZWxkIDxDbGllbnRTY29wZU5hbWU+a19fQmFja2luZ0ZpZWxkHDxJc0xhc3RCYXRjaD5rX19CYWNraW5nRmllbGQaPEJhdGNoQ29kZT5rX19CYWNraW5nRmllbGQaPE5leHRCYXRjaD5rX19CYWNraW5nRmllbGQHAQADAwIBbVN5c3RlbS5OdWxsYWJsZWAxW1tTeXN0ZW0uR3VpZCwgbXNjb3JsaWIsIFZlcnNpb249NC4wLjAuMCwgQ3VsdHVyZT1uZXV0cmFsLCBQdWJsaWNLZXlUb2tlbj1iNzdhNWM1NjE5MzRlMDg5XV1tU3lzdGVtLk51bGxhYmxlYDFbW1N5c3RlbS5HdWlkLCBtc2NvcmxpYiwgVmVyc2lvbj00LjAuMC4wLCBDdWx0dXJlPW5ldXRyYWwsIFB1YmxpY0tleVRva2VuPWI3N2E1YzU2MTkzNGUwODldXQIAAAAJAwAAAAYEAAAAJGM3NjM2YTlmLTBhOTYtNDJhOC04ZDgxLTBhNDE5NTJmOTUyYgEKCg8DAAAAkAAAAAIAAAAFAAAAAAAAAAEAAAAAAAAABQAAEAAAAALHY2qfCpZCqI2BCkGVL5UrebAhJqekSVCrBoALPwfgsQAAABgAABABKAIAAAEAAAAVAAAAAgAAAAEAAAAAAAAAAQAAAAEAAAABAAAAAAAAAQ0AAAAXAAAAAQAAABYAAAABAAMAAAAAAQAAAAAAAAAZAQAAAAAL&quot;},&quot;results&quot;:[{&quot;Id&quot;:&quot;7ae7c771-0a98-4a5d-a046-430ddb0a7917&quot;,&quot;Name&quot;:&quot;Santiago&quot;,&quot;Surname&quot;:&quot;Dalto&quot;,&quot;BirthDate&quot;:&quot;\/Date(917913600000)\/&quot;,&quot;Gender&quot;:&quot;M&quot;,&quot;__metadata&quot;:{&quot;uri&quot;:&quot;http:\/\/157.56.8.203\/DefaultScopeSyncService.svc\/Persons(Id=guid'7ae7c771-0a98-4a5d-a046-430ddb0a7917')&quot;,&quot;type&quot;:&quot;DefaultScope.Persons&quot;}}]}}
&nbsp;</pre>
<p>El problema es que el objeto data del script es siempre null, sin embargo el servicio retorna bien el resultado. Alguien sabe que me puede estar pasando?</p>
<p>Saludos y muchas gracias!
</p></description>
		</item>
		<item>
			<title>MostWanted on "Contar Checkbox"</title>
			<link>http://www.dudasprogramacion.com/topic/contar-checkbox-1#post-994</link>
			<pubDate>Wed, 23 Nov 2011 20:27:49 +0000</pubDate>
			<dc:creator>MostWanted</dc:creator>
			<guid isPermaLink="false">994@http://www.dudasprogramacion.com/</guid>
			<description><p>Me gustaría saber como contar los checkbox seleccionados, con una cantidad no fija, cuyos nombres son un numero entero que se incrementa. Estos checkbox se crean dinámicamente, por lo que no se conoce su cantidad. Alguien que me haga el favor de publicarlo algo al respecto.</p>
<p> Nota:: Puedo contar con php la cantidad de chekbox que se van creando.
</p></description>
		</item>
		<item>
			<title>jeremias10 on "abrir word desde borlan c++"</title>
			<link>http://www.dudasprogramacion.com/topic/abrir-word-desde-borlan-c#post-461</link>
			<pubDate>Fri, 28 May 2010 16:18:22 +0000</pubDate>
			<dc:creator>jeremias10</dc:creator>
			<guid isPermaLink="false">461@http://www.dudasprogramacion.com/</guid>
			<description><p>alguien me podria decir como abro word o otra aplicacion desde c++, necestio un ejemplo para acerlo<br />
gracias
</p></description>
		</item>
		<item>
			<title>Pajeril on "validacion de datos (alfa-numerico) c++"</title>
			<link>http://www.dudasprogramacion.com/topic/validacion-de-datos-alfa-numerico-c#post-877</link>
			<pubDate>Wed, 09 Feb 2011 23:15:05 +0000</pubDate>
			<dc:creator>Pajeril</dc:creator>
			<guid isPermaLink="false">877@http://www.dudasprogramacion.com/</guid>
			<description><p>Holas, bueno tengo una duda sobre como validar los datos ke se ingresa cuando se programa con c++, basicamente lo ke kiero es ke mi programa solo acepte numeros o letras , segun sea el caso, logicamente necesito usar un try/catch, pero como hago lo de la validacion de datos?....y a ke librerias debo invocar?....bueno gracias por la atencion....:)
</p></description>
		</item>
		<item>
			<title>webdamage on "time clock Keico fingerpass mod fpc-301"</title>
			<link>http://www.dudasprogramacion.com/topic/time-clock-keico-fingerpass-mod-fpc-301#post-992</link>
			<pubDate>Tue, 15 Nov 2011 13:13:57 +0000</pubDate>
			<dc:creator>webdamage</dc:creator>
			<guid isPermaLink="false">992@http://www.dudasprogramacion.com/</guid>
			<description><p>hello<br />
I have a problem with a biometric time clock<br />
Keico brand fingerpass mod fpc-301, I have to develop a java application that communicates with the clock by a com-server and I have the SDK for biometric clock model,<br />
if someone can help me thanks<br />
all suggestions are coming<br />
from already thank you very much
</p></description>
		</item>
		<item>
			<title>pequis23 on "Creacion de aplicacion en java"</title>
			<link>http://www.dudasprogramacion.com/topic/creacion-de-aplicacion-en-java#post-981</link>
			<pubDate>Mon, 24 Oct 2011 21:35:16 +0000</pubDate>
			<dc:creator>pequis23</dc:creator>
			<guid isPermaLink="false">981@http://www.dudasprogramacion.com/</guid>
			<description><p>Hola, buenas tardes tengo una duda sobre la creacion de una aplicacion en java dada la siguiente matriz para ordenar las filas en funcion de los apellidos, agradeceria mucho su ayuda sobre este tema,..<br />
0758963214	Jose	Burneo<br />
1785479632	Maria	Abad<br />
1754821647	Juan	Rivas<br />
1106987951	Diego	Castillo</p>
<p>Es decir debo ejecutar el algoritmo de ordenamiento de la matriz y debería quedar asi,..</p>
<p>1785479632	Maria	Abad<br />
0758963214	Jose	Burneo<br />
1106987951	Diego	Castillo<br />
1754821647	Juan	Rivas
</p></description>
		</item>

	</channel>
</rss>

