Search:

Type: Posts; User: Melawe

Search: Search took 0.08 seconds.

  1. Replies
    8
    Views
    1,656

    Re: odd message from Component.getGraphics()

    I think I found a workaround, might be messy code, but worth a test.
  2. Replies
    8
    Views
    1,656

    Re: odd message from Component.getGraphics()

    The problem with the paintComponent() is I can't use it in an if-else statement. The if-else statment checks what key was pressed, and ignores it if it is a certain key.
  3. Replies
    8
    Views
    1,656

    Re: odd message from Component.getGraphics()

    I want to get the graphics object associated with the canvas object, then call its drawString() method. So if its named graph, I can call graph.drawString().
  4. Replies
    8
    Views
    1,656

    Re: odd message from Component.getGraphics()

    I was trying to get the Graphics object associated with a Canvas object, then use it's drawString method. I'm making a program that handles key events and then draws them on a Canvas object. One...
  5. Replies
    8
    Views
    1,656

    odd message from Component.getGraphics()

    I used this code:


    System.out.println(comp.getGraphics());


    Result:
    ...
Results 1 to 5 of 5