Ver Mensaje Individual
  #14 (permalink)  
Antiguo 03/02/2013, 18:10
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

ahora si me dejaste sin ideas porque la ventana a la fabrico dicho panel que puse tiene el siguiente código:

package institutomymaster.vistas.interfaz;
import java.awt.GridLayout;
import javax.swing.JPanel;
public class frmMantenimiento extends javax.swing.JFrame
{
private String accion;
private String tipo;
private JPanel objpanel;
public frmMantenimiento(String xaccion,String xtipo)
{
initComponents();
accion=xaccion;
tipo=xtipo;
objpanel= FachadaVentanas.getInstance().fabricarPanelMant(ac cion, tipo);
this.superPanel.removeAll();
this.superPanel.add(objpanel);
this.superPanel.setLayout(new GridLayout());
this.superPanel.updateUI();
this.setTitle(accion +" de "+tipo);

}

cómo podremos adaptarlo a los eventos del panel????
espero sus respuestas.