That did it for me, they are being drawn!
Type: Posts; User: nivangerow
That did it for me, they are being drawn!
I have just experimented with backgrounds (Color.BLACK), etc..
And I have set a red background to the JPanel and a green background to the frame itself. And I see green and i should actually see...
Shouldnt it work with eclipse though?
I have tried this: (its slightly edited)
package net.nivangerow.umadbro;
import java.awt.*;
import java.awt.event.*;
import javax.swing.*;
public class Panel extends JPanel implements...
K, ive just refreshed it. Still no success.
Help! I answered all your questions, can you help me now?
Are you still there?
Here is the full filepath and it still doesnt display:
/Users/nivangerow/Documents/workspace/U MAD BRO/src/net/nivangerow/umadbro/background.png
Also there is an error if i use any escape...
I just tried it, still doesnt display...
Sorry, im a newb on these forums. Cant I access the file if it is in the same directory as my java files (i use eclipse, i put the images in my workspace)? Like in HTML and CSS...
Help please, im frustrated and I want it to work! Whats wrong with it?
My background for my game isn't displaying at all. I use a mac, do I have to do something different? Heres my Panel class:
package net.nivangerow.umadbro;
import java.awt.*;
import...