image in JPanel
hello sir here i am to ask about how can i import an image in JPanel....
You've marked your question as "Solved", so I can only assume that you have found your solution and don't need our help. Regardless, welcome to the forum!
sir still i did'nt get answer of that ques please send me a simple coding of JPanel with image in background and a JButton........
Originally Posted by Fubarable
thanx in advance sir......
This question has to be one of the most asked questions in forum history. Search the forum or the web for a solution and you will get your answer faster.
We're not a "send me the code" service. My suggestion is to check out the Sun Swing tutorials on adding images to JLabel and displaying the JLabel as one way to display an image. The other is to paint it in the JPanel's paintComponent method. JavaRanch has a small lesson on this: Background Image On JPanel
Originally Posted by poojarkg