U can get the graphics handler using the getGraphics factory methodand u can use it anywhere in ur applicationGraphics g=getGraphics();U can use this handler anywhere within ur application.preferred that scope ofg should be there.