Place the same image in several jframe

0

I have a program with about 10 jframe, and I have to put in all a logo, which consists of a title and an image. I thought to create an object (I do not know if jpanel, jframe ..) and add it to the jframe of the program, but I do not know how it is done. I use netbeans to program, I would like to do this from the design part of netbeans, to be able to place the logo to my liking

    
asked by hugoboss 29.05.2017 в 15:14
source

1 answer

0

You can create a visual class that inherits from JPanel, then open it in visual mode and add the title JLabel and the image JLabel. Then you create an instance of this new class for each JFrame and add it to each one.

    
answered by 31.05.2017 в 06:14