change the JDialog to JPanel without any functions