Search:

Type: Posts; User: nivangerow

Search: Search took 0.14 seconds.

  1. Replies
    13
    Views
    4,432

    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,432

    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,432

    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,432

    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,432

    Re: Display a JTextField inside a JPanel

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

    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,432

    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:


    ...
Results 1 to 7 of 7