Results 1 to 2 of 2
  1. #1
    veejayjayvee is offline Member
    Join Date
    Dec 2014
    Posts
    1
    Rep Power
    0

    Default Problem with g.drawImage

    Hi, I was doing an application to paint a simple flag.. On my part A, I was able to draw a flag. Unfortunately on Part B, it seems that I was still able to retrieve the correct values but the g.drawImage(img, 0, 0, null) line does not display the component I'm trying to display.

    I'm also having problems with jPanel_DrawingArea.repaint() as it does not display the drawing immediately, so I changed it to jPanel_DrawingArea.paintImmediately(iX, iY, iWidth, iHeight). But the paintImmediately() method does not display the desired output. I have attached the FLAGS.txt file.

    Can anyone help me please?? Badly needed it..
    Attached Files Attached Files

  2. #2
    pj6444 is offline Senior Member
    Join Date
    Jan 2013
    Posts
    168
    Rep Power
    7

    Default Re: Problem with g.drawImage

    Please post your code using the [CODE] [/ CODE] tags. Some of the people on this forum may not have the ability to download file, so we would appreciate it if you put these files in your post. Thank you

Similar Threads

  1. Trouble With drawImage()
    By Prime624 in forum New To Java
    Replies: 18
    Last Post: 04-15-2013, 10:51 AM
  2. Replies: 4
    Last Post: 10-14-2012, 10:16 PM
  3. Problem with drawImage
    By matevos in forum AWT / Swing
    Replies: 1
    Last Post: 08-06-2012, 10:44 PM
  4. DrawImage with transparency ?
    By mrhid6 in forum AWT / Swing
    Replies: 2
    Last Post: 10-01-2011, 11:58 PM
  5. drawImage im 13 plz help
    By pseudohawtcakes in forum New To Java
    Replies: 3
    Last Post: 05-17-2011, 08:07 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •