Right-click the package in which you want to save the file for a new window. Go to "New -> Other" and select "WindowBuilder -> Swing Designer -> JDialog". Write a name for the class of the new window. This will bring up the editor, select the “Design” tab at the bottom of the window. Now you can customize this new window.
To open this window from the main JFrame, you need to do the following:
MyNewWindowClass newWindow = new MyNewWindowClass(); newWindow.setVisible(true);
source share