Ver Mensaje Individual
  #7 (permalink)  
Antiguo 27/01/2013, 10:27
Avatar de detective_jd
detective_jd
 
Fecha de Ingreso: abril-2011
Ubicación: Salto
Mensajes: 437
Antigüedad: 13 años
Puntos: 6
Respuesta: Adaptar largo y ancho de un jframe al de un jpanel

Muchisimas gracias me funcionó de maravillas me quedó así el botón:

JFrame ventana = (JFrame) SwingUtilities.getWindowAncestor(this.btnvolver);
ventana.setVisible(false);

gracias a tí ahora puedo avanzar con el invento que estoy haciendo.
Nuevamente gracias