Search:

Type: Posts; User: copeg

Search: Search took 0.09 seconds.

  1. Replies
    13
    Views
    5,726

    Re: why paintComponent method is not invoked?

    You did not add any println statements in there. Add these, recompile, and run and you should see these lines being printed to the console. These will prove one way or another whether paintComponent...
  2. Replies
    13
    Views
    5,726

    Re: why paintComponent method is not invoked?

    Please surround your code with the tags, it makes it much easier to read and help troubleshoot.
    Some tips:
    1) f.show is deprecated, you should use JFrame.setVisible(boolean b)
    2)...
Results 1 to 2 of 2