Here you can find the source of igualarFormularios(JFrame destino, JFrame origen)
public static void igualarFormularios(JFrame destino, JFrame origen)
//package com.java2s; //License from project: Open Source License import javax.swing.JFrame; public class Main { public static void igualarFormularios(JFrame destino, JFrame origen) { destino.setExtendedState(origen.getExtendedState()); if (origen.getExtendedState() == JFrame.NORMAL) { destino.setSize(origen.getSize()); destino.setLocation(origen.getLocation()); }/*from w w w.j av a 2 s .c o m*/ } }