Wednesday, June 3, 2009

JAVA How do I show images in classes other than main applet class?

JAVA How do I show images in classes other than main applet class?

Okay so heres what im doing. Our instructor told us that for the game we are making we have to make a seperate GUI class. Heres how I have it: GAMEPLAY class: GUI.ShowInterfacethis.getGraphics this loadingScreen Also in this class: URL base GUI.loadingScreen getImagebase images/loadingscreen.jpg GUI class: Image loadingScreen public static void DisplayInterfaceGraphics g ImageObserver obs String room ifroom.equalsloadingScreen g.drawImageloadingScreen 0 0 obs

Asked by Andrew P about Programming Design


No comments:

Post a Comment