I need to draw some graphics into a frame(drawRect, drawLine, drawPolygon). I am doing this in an APPLICATION. This requires a Graphics object. I have tried Graphics g= someComponent.getGraphics(); but this does not work. I get a nullPointerException when I run the program. The window frame appears, but I get no graphics. I need to know how to initialize the Graphics object. I have had several people tell me to use a paint method, but this does not instantiate the Graphics object.