elhacker.net cabecera Bienvenido(a), Visitante. Por favor Ingresar o Registrarse
¿Perdiste tu email de activación?.

 

 


Tema destacado: AIO elhacker.NET 2021 Compilación herramientas análisis y desinfección malware


  Mostrar Mensajes
Páginas: 1 2 3 4 5 6 [7] 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 ... 79
61  Programación / Java / Re: Postear en un foro SMF desde Java en: 5 Diciembre 2011, 02:11 am
aajaja lo que pasa es que no habia notado que estaba en visibilidad privada :xD
62  Programación / Java / Re: Postear en un foro SMF desde Java en: 4 Diciembre 2011, 22:30 pm
Con httpclient de apache es muy facil, aqui te dejo este codido para que tengas una base

http://jleyer.wordpress.com/2011/07/30/loguease-en-un-foro-smf/
63  Programación / Programación C/C++ / Re: calculadora + interrogatorio en: 1 Diciembre 2011, 23:05 pm
es una pregunta algo rara :xD
64  Programación / Programación C/C++ / Re: Ayuda con matrices String en: 1 Diciembre 2011, 23:02 pm
Código
  1. char *jugadores[]={"uy","ay","ey"};
65  Programación / Java / Re: averiaguar numeros repetidos en un array en: 30 Noviembre 2011, 02:35 am
Ando de buenas :xD usalo asi _rvr(array,0, 1);

Código
  1. public static void _rvr(int array[],int firstIndex,int secondIndex){
  2. if(!(secondIndex==array.length)){
  3. if(array[firstIndex]==array[secondIndex])array[secondIndex]=(int) Math.floor(Math.random()*10);
  4. secondIndex++;
  5. _rvr(array,firstIndex,secondIndex);
  6. }else {
  7. firstIndex++;
  8. if(firstIndex==array.length-1)return;
  9. _rvr(array,firstIndex,firstIndex+1);
  10. }
  11. }
  12.  
66  Programación / Java / Re: Matriz de N dimension, como imprimir vertice inferior derecho ? en: 30 Noviembre 2011, 01:41 am
Código
  1.   public void imprimirVerticesMatriz() {
  2.       System.out.println("Vertice Superior Izquierdo   "+matriz[0][0]);
  3.       System.out.println("Vertice Superior Derecho    "+matriz[0][matriz[0].length-1]);
  4.       System.out.println("Vertice inferior izquierdo     "+matriz[matriz.length-1][0]);
  5.       System.out.println("Vertic inferior derecho     "+matriz[matriz.length-1][matriz[0].length-1]);
  6.   }
67  Programación / Java / Re: Sockets + Android (ayuda) en: 29 Noviembre 2011, 23:05 pm
:http://android-er.blogspot.com/2011/01/simple-communication-using.html
:http://thinkandroid.wordpress.com/2010/03/27/incorporating-socket-programming-into-your-applications/
68  Programación / Java / Re: botones en java en: 29 Noviembre 2011, 22:50 pm
Con esto aplicas la interfaz del sistema a tu aplicacion dependiendo el SO en el que se ejecuta la aplicacion

Código
  1. try{
  2. UIManager.setLookAndFeel(UIManager.getSystemLookAndFeelClassName());
  3. }catch (Exception e) {
  4. // TODO: handle exception
  5. }

si le quieres colocar la de windows:
Código
  1. try {
  2.      UIManager.setLookAndFeel("com.sun.java.swing.plaf.windows.WindowsLookAndFeel");
  3.    } catch (Exception e) {
  4.      e.printStackTrace();
  5.    }

con esto puedes ver cuales tienes disponibles:

Código
  1. for(LookAndFeelInfo look:UIManager.getInstalledLookAndFeels()) System.out.println(look);
69  Programación / Java / Re: Que errir tiene este codigo? en: 29 Noviembre 2011, 22:40 pm
el metodo show y  reshape estan deprocadas se usa es setVisible, y setBounds

y no te muestra nada por que no estas agregando el panel campos al jframe
70  Programación / Java / Re: Eliminar Fila De Jtable(Jtabla Sin Model) en: 29 Noviembre 2011, 04:57 am
si no vas a utilizar ningun layout tienes que especificar la posicion del scrollPane y no del jtable, ya que este se encuentra en el scrollpane, y solo tienes que agregar el scrollpane al contenedor principal mas no el jtable
Páginas: 1 2 3 4 5 6 [7] 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 ... 79
WAP2 - Aviso Legal - Powered by SMF 1.1.21 | SMF © 2006-2008, Simple Machines