This is similar to this question, except the code is already written.
I have
JFrame
JTabbedPane
JPanel X
<...>
JPanel Y
<...>
JPanel Z
<...>
all defined in the same class, but I want to move each panel into its own .java file. I really don't want to manually copy-paste from the underlying .form and .java files if I don't have to. Each panel is mostly decoupled from the others already, which is why I want to create separate files for each.
What is the best way to split this into four separate classes (1 JFrame, 3 JPanels) using NetBeans so that it will move all of its autogenerated code correctly?