Graphics object

heyi used the command getGraphics() of a panel in the constructor and few errors occured durning runtime.what is this happening :\?
[152 byte] By [Aviva] at [2007-10-2 3:19:20]
# 1
getGraphics returns null since the component isn't visible on the screen yet.check out a UI tutorial and see the paint and paintComponent methods
tjacobs01a at 2007-7-15 21:46:47 > top of Java-index,Other Topics,Java Game Development...