javaswingnetbeansnetbeans-platformmatisse

Convert JDialog to JPanel in Netbeans


I spent a long time creating a nice Dialog using Netbeans (Matisse), and now I realise that I want it as JPanel instead.

Is there any way of converting the Dialog to Panel in Netbeans. The blasted GUI editor does not allow me to modify any of the code.


Solution

  • Just open navigator in design mode in jdialog, copy components and paste in jpanel view. Like in below image.

    enter image description here

    As always @MadProgrammer recommends, if you don't add directly to the jdialog and instead of a custom container (like a jpanel), then it's easy to put in another components :D