This is my code and it dosent drawthe image or text or a line. Seems to me its ok but I do not know why its not working. Please help me.
Public void Flipp(){
Graphics2D g;
JFrame f = new JFrame();
f.setVisible(true);
f.setSize(100,200)
BufferImage img = new BuffeImage ( 100, 200,BufferedImage.TYPE_INT_RGB);
int w = img.getWidth();
int h = img.getHeight();
g = img.createGraphics();
g.drawString("helooooooooooo", 5, 5); // THIS NOT working
g.drawImage(img, 0, 0, w, h, 0, h, w, 0, null); // THIS NOT working
f.paint(g); // NEED Help
ImageIcon im = new ImageIcon(img);
f.setIcon(im);
}