hi all. i am a new user in this site and newbie in java world. i have a problem with my swing application. thats why i am here to find out the problem with you. i have a JPanel on which i draw an image. to do that at first i take the Graphics object of the JPanel and then draw image on this graphics object.
my code is like belo
Graphics g = jPanel.getGraphics(); g.drawImage(parameters);
the code works fine. but if i resize the JPanel or minimize the window, all drawn image get vanished. please someone tell me how to solve this issue. thank you.