I have made java application in netbeans. In that i have three different frames with a lot of things in it with code. i have to use similar frames in the program. So i want to copy them. but the problem is that if i copy it, the code doesn't gets copied and so i have to manually copy the code and as the labels and buttons names get changed it is tedious to replace them in the code. So i want a solution like, if i make many applications and then integrate them or if, if i can duplicate that in the same program. Note: i have to make tens of copies of the frames, so cant do it manually
I have a main frame, which loads on opening the program. Then opens a menue frame and after that MAIN FRAME, SEE FRAME, BLANK FRAME. All those in capital are to be duplicated. Each of them have a lot of things. for example: blank has 3 buttons, a textfield and a label; Main has a jpanel having 3 labels two buttons and one jpanel in itself which has 3 textfields and 3 labels. See is also like this. Added this on the request of a comment.
See this:
In the program [jFrame] opens first