I originally made a complex GUI in JFrame Form by the form editor. There are several Jpanels inside the frame.
Now I am thinking of reusing some of the JPanels in other JFrames. I know it is possible to copy and paste the JPanel, but what I really want to do is factoring out the JPanel to make it a class. Is it possible to do it in Netbeans?
EDIT: Thanks for the advices, it was really helpful, but not solving my problem. I still need to factor out the panel. Say if I have a Panel with several child panels inside. (eg: tabbed panel) I would like to design each of the child panel separately instead of doing them all together in a single class. That's my understanding of OOP. I did not do it at the first place because I was not familiar with netbeans nor I was an good designer. Now I realize I need to reuse some of the child panels. Am I able to factor out the code for each panel and make it a class without redoing the work? I used GridbagLayout.