Ver Mensaje Individual
  #8 (permalink)  
Antiguo 24/10/2011, 20:26
javierdosa_777
 
Fecha de Ingreso: septiembre-2011
Mensajes: 22
Antigüedad: 12 años, 7 meses
Puntos: 0
Respuesta: mostrar 4 horas de diferentes lugares usando hilos... y poder arrastrarlos

tengo esta clase de la cual me muestra los 4 relojes... pero con iwal hora... quisiera saber como hacerle para quitarle o agregarle mas horas...

private void jButton1ActionPerformed(java.awt.event.ActionEvent evt) {
System.exit(0);/****Boton Cerrar***/
}

private void formWindowOpened(java.awt.event.WindowEvent evt) {

hora = new Reloj.Hora();/***Inicializar la variable hora***/
hora.setBounds(290, 25, 150, 30);/*(Ubicacion en eje x, Ubicacion en eje y, Ancho, Alto)*/
hora.setFont(new Font("Trebuchet MS",java.awt.Font.BOLD, 20));/*Cambiamos la fuente, estilo y tamaño*/
this.add(hora);/*La agregamos al JFrame*/
hora2 = new Reloj.Hora();/***Inicializar la variable hora***/
hora2.setBounds(200, 5, 100, 30);/*(Ubicacion en eje x, Ubicacion en eje y, Ancho, Alto)*/
hora2.setFont(new Font("Trebuchet MS",java.awt.Font.BOLD, 20));/*Cambiamos la fuente, estilo y tamaño*/
this.add(hora2);/*La agregamos al JFrame*/
hora3 = new Reloj.Hora();/***Inicializar la variable hora***/
hora3.setBounds(110, 25, 150, 30);/*(Ubicacion en eje x, Ubicacion en eje y, Ancho, Alto)*/
hora3.setFont(new Font("Trebuchet MS",java.awt.Font.BOLD, 20));/*Cambiamos la fuente, estilo y tamaño*/
this.add(hora3);/*La agregamos al JFrame*/
hora4 = new Reloj.Hora();/***Inicializar la variable hora***/
hora4.setBounds(20, 5, 100, 30);/*(Ubicacion en eje x, Ubicacion en eje y, Ancho, Alto)*/
hora4.setFont(new Font("Trebuchet MS",java.awt.Font.BOLD, 20));/*Cambiamos la fuente, estilo y tamaño*/
this.add(hora4);/*La agregamos al JFrame*/

}