I am creating different frames for my GUI(Netbeans drag and drop) and in that i want to keep some buttons(sort of menu bar) visible in all the frames but the problem is when i copy the main frame and paste it,those buttons are there in the new frame with new names.So, i have to write the same code everytime.Is there any other easy approach for doing this.
Share
JToolBaris ideal for this, as it can float above the frame.Actionlets you encapsulate the code conveniently.FileMenuis a basic example that combines the two.