Adding an image to an exsisting JPanel inside of a JFrame?

You can use a JLabel to store your image read from file or from a buffer.

You can use a JLabel to store your image read from file or from a buffer: ImageIcon image = new ImageIcon("path_to_image"); //or ImageIcon image = new ImageIcon (data) //where data is byte data then create your JLabel : JLabel label = new JLabel(image) To decide how to position your image add your JLabel to a JPanel with the desired LayoutManager.

Perfect, JLabel actually works. I added it to my JPanel, only thing now is it makes the entire panel a button! Will figure it out, thanks.

– Cal May 13 at 13:00.

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions