Search:

Type: Posts; User: nivangerow

Page 1 of 4 1 2 3 4

Search: Search took 0.08 seconds.

  1. Replies
    13
    Views
    4,409

    Re: Display a JTextField inside a JPanel

    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?
  2. Replies
    13
    Views
    4,409

    Re: Display a JTextField inside a JPanel

    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?
  3. Replies
    13
    Views
    4,409

    Re: Display a JTextField inside a JPanel

    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...
  4. Replies
    13
    Views
    4,409

    Re: Display a JTextField inside a JPanel

    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...
  5. Replies
    13
    Views
    4,409

    Re: Display a JTextField inside a JPanel

    Ok im creating it.
  6. Replies
    13
    Views
    4,409

    Re: Display a JTextField inside a JPanel

    Well that "snip" is basically my code. Just put it in a JFrame.
  7. Replies
    13
    Views
    4,409

    Display a JTextField inside a JPanel

    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:


    ...
  8. Replies
    3
    Views
    1,747

    Re: How do I access an Object from anywhere?

    If i make it static, can i still modify it? (Like setting it to null, etc...)
  9. Replies
    3
    Views
    1,747

    How do I access an Object from anywhere?

    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...
  10. Replies
    1
    Views
    2,470

    Re: OpenGL Texture won't draw

    Im stupid, I forgot to call the load() method in the texture object.
  11. Replies
    1
    Views
    2,470

    OpenGL Texture won't draw

    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....
  12. Re: Getting audio stream to play from jar file instead of system directory?

    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...
  13. Re: Getting audio stream to play from jar file instead of system directory?

    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...
  14. Re: Getting audio stream to play from jar file instead of system directory?

    There is no problem, I need to know how to loop it thats all.
  15. Re: Getting audio stream to play from jar file instead of system directory?

    Is there any1 that can help me?
  16. Re: Getting audio stream to play from jar file instead of system directory?

    So is there any way i can loop the sound/song?
  17. Re: Getting audio stream to play from jar file instead of system directory?

    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 {...
  18. Re: Getting audio stream to play from jar file instead of system directory?

    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...
  19. Re: Getting audio stream to play from jar file instead of system directory?

    help please!
  20. Re: Getting audio stream to play from jar file instead of system directory?

    package net.nivangerow.Ball;
    import sun.audio.*;
    import java.io.*;

    public class SoundManager {
    public SoundManager(String music)
    {
    AudioStream as;
    AudioPlayer ap = AudioPlayer.player;...
  21. Re: Getting audio stream to play from jar file instead of system directory?

    Bump help please D:
  22. Re: Getting audio stream to play from jar file instead of system directory?

    Sorry for the bump but I really need help :( please...
  23. Re: Getting audio stream to play from jar file instead of system directory?

    With this code:



    package net.nivangerow.Ball;
    import sun.audio.*;
    import java.io.*;

    public class SoundManager {
    public SoundManager(String music)
  24. Re: Getting audio stream to play from jar file instead of system directory?

    Thanks ill try that and report back.
  25. Re: Getting audio stream to play from jar file instead of system directory?

    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?
Results 1 to 25 of 76
Page 1 of 4 1 2 3 4