1. sun.awt.RepaintArea.paint (java.Lang.NullPointerException) stackoverflow.comI haven't posted any code because I don't even know where to begin. The exception shown below occurs twice after I call setVisible(true) on my JFrame and then never again. That's ... |
2. NullPointerException when trying to paint java-forums.orgI have a little program i'm workin on, and it keeps complaining about nullPointerExceptions. Also, every once in a while, the program just draws a white screen instead of what i want it to print. Exception in thread "main" java.lang.NullPointerException at Cell.draw(InitClass.java:206) at MyGrid.drawCells(InitClass.java:125) at MainClass. |
3. Graphics Giving me NullPointerException in my swings program forums.oracle.comOk let me re-specify my problem. I want to accept an image, calculate its histogram and then draw the histogram on an image (i start by creating a blank image of size 320 by 240). Then i want to put that image using imageIcon onto my panel. Please tell me how to go about doing this. I am still a java ... |