Skip to main content
gamedev.net
🔒 Locked

Java images?

Started by JinixVomitorium 0 replies 1.4k views
Original Post
JinixVomitorium
JinixVomitorium

What is wrong with this?

public void paint(Graphics g) {

guiLayout = getImage(getCodeBase(), "gui.png");

//Object .paints
g.drawImage(guiLayout, 500, 300, this);

}

As far as I can tell the code is correct, there are no errors and the applet runs, but it doesnt display the image...

I've tried several methods to display the image, its weird that none are working now when they worked yesterday with a different image. -____-

add me on skype, i need some new associates for coding. skype: daniel.lamonds c++, Visual basic, fortran, html/5, css, php,java script, sql, others......

Topic Locked

This topic has been locked by a moderator. New replies are not allowed.

Sign in to reply to this topic.