Do you mean this: How to set background image in Java? - Stack Overflow
He is just drawing an image and I am doing that as well. Is there any way to change Z positions? Am I missing something?
Type: Posts; User: nivangerow
Do you mean this: How to set background image in Java? - Stack Overflow
He is just drawing an image and I am doing that as well. Is there any way to change Z positions? Am I missing something?
I think that I do. I want the JTextField on top of the drawn images. How do I do that? I need to change it's Z position, but how?
The thing is that that is the code. I have just found out that the reason why I cant see the JTextField is because I am drawing images onto the JPanel using the paint() method. That seems to paint...
This is my code, but the thing is that it works. In the actual program I have my JPanel in a separate class but I dont think that makes a difference.
import java.awt.BorderLayout;
import...
Ok im creating it.
Well that "snip" is basically my code. Just put it in a JFrame.
Hello, I use a JPanel to draw all my graphics and I need to get some user input so I thought that I should add a JTextField.
I have tried to add the JTextField but it just wont show up:
...