In my application I have 1 jar file which I imported in my project. Now I want to access one method of the class (jar file) which contains arguments Graphics(g). I want this method to be accessed in the startApp() of my application, but I can't directly call this method, because Graphics(g) is not supported. Please help me.
Code flow:
// 1.class
public void drawscreen(Graphics g)
{
}
// 2.class
public void startApp()
{
1.class.drawscreen()--->here graphics is not supported.
}