Ver originalJDialog dialogo = (JDialog) Class.forName("javax.swing.JDialog").newInstance(); Dialog otroDialgo = (Dialog)Class.forName("java.awt.Dialog").newInstance();