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:
...
If i make it static, can i still modify it? (Like setting it to null, etc...)
I want to be able to just type a class name and then the object to access it.
Basically kinda like this:
GL10 gl = ObjectHandeler.gl;
[Please note that ObjectHandeler is a class]
Is there...
Im stupid, I forgot to call the load() method in the texture object.
I have followed a tutorial on how to display an image in OpenGL, and I first had to make a square and then texture it. I have tried
gl.glColor4f(0f,0f,0f,1f); and that works, I can see the square....
My code in the OP had ContinuousAudioDataStream and I wanted it to play from the jar. But never mind I think this thread is solved because I came up with something similar but it reads the files off...
The nvm was for playing the sound/song. Now i have to loop it. I tried next to nothing because I don't know what to type in the search box. I searched for "java play sound and loop" but that had...
There is no problem, I need to know how to loop it thats all.
Is there any1 that can help me?
So is there any way i can loop the sound/song?
Nvm, i found out how to play the sound/song, now how do I loop it?
This is my code so far:
package net.nivangerow.Ball;
import sun.audio.*;
import java.io.*;
public class SoundManager {...
Sorry I cant do this live person stuff, im scared about that. Also I can't play football with you because I dont know where you live so yeah.
And you don't know the cause of the error? Im gonna...
package net.nivangerow.Ball;
import sun.audio.*;
import java.io.*;
public class SoundManager {
public SoundManager(String music)
{
AudioStream as;
AudioPlayer ap = AudioPlayer.player;...
Bump help please D:
Sorry for the bump but I really need help :( please...
With this code:
package net.nivangerow.Ball;
import sun.audio.*;
import java.io.*;
public class SoundManager {
public SoundManager(String music)
Thanks ill try that and report back.
Im sorry that I am being a real noob right now, but I don't get what you want me to do with the instance thing...
Do you mean I should make a static object of the ClassLoader class?