24 marzo 2011

#{ Tip para combobox }

0 comentarios
EntityManager em = Arqueo.getInstancia().getEntityManager();
String q = "SELECT N.nombre FROM Nombre N, EntidadArqueologica E WHERE N.entidadArqueologicaId=E.idEntidadArqueologica AND E.plantilla=true";
nombrePlantilla.removeAllItems();
ArrayList result = (ArrayList) em.createQuery(q).getResultList();
for(String itemResult : result){
    nombrePlantilla.addItem(itemResult);
} 
18 marzo 2011

#{ Validacion Numeros textField }

0 comentarios
private void TEXFIELDFocusLost(java.awt.event.FocusEvent evt) {                                               
 String TEXTOTEXFIELD = TEXFIELD.getText();
 try{
  //PASO POR AQUI SI ERAN NUMEROS TODOS
  int CONVERTIDO_EN_NUMEROS_TXTFIELD = Integer.parseInt(TEXTOTEXFIELD);
  javax.swing.JOptionPane.showMessageDialog(null,"Si eran números!");
 }catch(Exception e)
  //PASO POR AQUI CUANDO "NO" HABIAN SOLO NUMEROS
  javax.swing.JOptionPane.showMessageDialog(null,"Error: "+e.getMessage());
 }
}              
16 marzo 2011

#{ De String array a ArrayList }

0 comentarios
http://www.coderanch.com/t/379449/java/java/String-array-arraylist

#{ Katamari Hack }

1 comentarios
Copiar el siguiente código en la barra de direcciones, luego configurar y por último a entretenerse:


(funciona mejor en chrome or firefox 4)


http://kathack.com/
10 marzo 2011

#{ CSS layouts y JS APIs }

0 comentarios
http://www.forosdelweb.com/f53/hacer-que-div-tenga-misma-altura-que-div-contenedor-870534/

http://www.comocrearunsitioweb.com/maquetacion-css-divs-capas
http://www.comocrearunsitioweb.com/maquetando-pagina-web-css
http://stopdesign.com/archive/2003/09/03/absolute.html
http://vagabundia.blogspot.com/2010/01/despejando-dudas-la-propiedad-position.html

http://www.forosdelweb.com/f53/problema-div-con-porcentaje-888122/
http://www.forosdelweb.com/f53/problema-con-div-contenedor-771553/


  http://vandelaydesign.com/blog/design/css-layout-tools/


        http://www.maxdesign.com.au/articles/css-layouts/


        2011/3/8  <.com>

            http://www.w3schools.com/css/pr_pos_overflow.asp


            2011/3/8  <.com>

                http://notasweb.com/articulo/css/centrar-capa-en-horizontal-y-en-vertical.html
                http://www.programacionweb.net/articulos/articulo/?num=461
                http://vagabundia.blogspot.com/2010/04/dos-metodos-para-alinear-verticalmente.html
                http://vagabundia.blogspot.com/2010/04/tablas-si-o-tablas-no.html

                http://code.google.com/intl/es-ES/apis/libraries/devguide.html
                http://jqueryui.com/demos/tabs/#mouseover

                2011/3/8  <.com>

                    http://stackoverflow.com/questions/395485/is-there-any-ide-for-fast-drag-and-drop-php-development

#{ JSON }

0 comentarios
http://www.estadobeta.com/2006/05/11/json/
http://tarjuccino.com/tutoriales/programacion-web/introduccion-a-json/
http://blog.eldelweb.com/vp-16-416-0/Uso-practico-de-AJAX-y-JSON.html
http://www.jourmoly.com.ar/trabajando-con-ajax-json-y-mootools/
http://sentidoweb.com/2007/01/19/lista-de-ejemplos-para-jquery.php
http://www.reach1to1.com/sandbox/jquery/testform.html
 
Buffer de Código | © Design by DheTemplate.com and Theme 2 Blog

Find more free Blogger templates at DheTemplate.com - Daily Updates Free Blogger Templates