Question: jframe how to add image?
Answer: A JFrame is like a window (except that it's called a JFrame, not a “window”). The line. JFrame frame = new JFrame(); ...  An ImageIcon object is a picture. At the root of the program's project directory, there is a file named androidBook.jpg. ...  You need a place to put the icon. You can put it on something called a JLabel.