Original Post
I am wondering how to call my method which is using the (Graphics Gr) object in a seperate class, for instance I have my game loop class "MainGameLoop.java" how can I call the (Graphics Gr) method into the game loop from the class "MainRenderHandler.java" and also how do I use a different method instead of paintComponent is there a way to create a custom one such as Draw(Graphics Gr) instead?
EDIT: Here's my game classes;
MainClassHandler: "http://pastebin.com/whBSrfii"
MainGameLoop: "http://pastebin.com/kvhRfWqW"
MainJFrameConfig: "http://pastebin.com/ZEYX8UXc"
MainRenderHandler: "http://pastebin.com/f3iQJ3BK"
EDIT: Here's my game classes;
MainClassHandler: "http://pastebin.com/whBSrfii"
MainGameLoop: "http://pastebin.com/kvhRfWqW"
MainJFrameConfig: "http://pastebin.com/ZEYX8UXc"
MainRenderHandler: "http://pastebin.com/f3iQJ3BK"